Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

πŸ“ Docs with icon color usage

Alicia Sykes30bc88d65fb5
diff --git a/docs/configuring.md b/docs/configuring.md
index 5dc28671..6f4c4741 100644
--- a/docs/configuring.md
+++ b/docs/configuring.md
@@ -283,7 +283,8 @@ For more info, see the **[Authentication Docs](/docs/authentication.md)**
**`pingCheckInterval`** | `number` | _Optional_ | The number of seconds between checks. The value will override `appConfig.pingCheckInterval` so you can adjust the ping interval per host. Defaults to `appConfig.pingCheckInterval`, falls back to `0`
**`pingCheckCount`** | `number` | _Optional_ | The number of ping ICMP packets sent to the host per check. The value will override `appConfig.pingCheckCount` so you can decide to send a different number of ping ICMP packets per host. Defaults to `appConfig.pingCheckCount`, falls back to `0`
**`pingCheckTimeout`** | `number` | _Optional_ | The number of milliseconds to wait for a ping to complete. The value will override `appConfig.pingCheckTimeout` so you can adjust the timeout per host. Defaults to `appConfig.pingCheckTimeout`, falls back to `0`
-**`color`** | `string` | _Optional_ | An optional color for the text and font-awesome icon to be displayed in. Note that this will override the current theme and so may not display well
+**`color`** | `string` | _Optional_ | An optional color for the text and icon to be displayed in. Note that this will override the current theme and so may not display well
+**`iconColor`** | `string` | _Optional_ | An optional color for just the icon, overriding `color`. Applies to Font Awesome, Simple Icons and Material Design icons
**`rel`** | `string` | _Optional_ | The value of the `rel` attribute for the link. Useful for specifying the relationship between the target link/document and Dashy. Defaults to `noopener noreferrer`
**`backgroundColor`** | `string` | _Optional_ | An optional background fill color for the that given item. Again, this will override the current theme and so might not display well against the background
**`provider`** | `string` | _Optional_ | The name of the provider for a given service, useful for when including hosted apps. In some themes, this is visible under the item name
diff --git a/docs/icons.md b/docs/icons.md
index dd33be9a..5e201412 100644
--- a/docs/icons.md
+++ b/docs/icons.md
@@ -14,6 +14,7 @@ Both sections and items can have an icon, which is specified using the `icon` at
- [Local Icons](#local-icons)
- [Using a Default Icon](#default-icon)
- [No Icon](#no-icon)
+- [Icon Color](#icon-color)
<p align="center">
@@ -199,6 +200,18 @@ If you don't wish for a given item or section to have an icon, just leave out th
---
+## Icon Color
+
+Font Awesome, Simple Icons and Material Design icons take on the item's `color`. To color just the icon, set `iconColor` to a hex code or color name:
+
+```yaml
+- title: GitHub
+ icon: si-github
+ iconColor: '#ffa500'
+```
+
+---
+
## Icon Collections and Resources
The following websites provide good-quality, free icon sets. To use any of these icons, either copy the link to the raw icon (it should end in `.svg` or `.png`) and paste it as your `icon`, or download and save the icons in `/user-data/item-icons` / mapped Docker volume. Full credit to the authors, please see the licenses for each service for usage and copyright information.
diff --git a/docs/theming.md b/docs/theming.md
index a71aa8e0..6db90e89 100644
--- a/docs/theming.md
+++ b/docs/theming.md
@@ -129,6 +129,7 @@ Some UI components have a color option, that can be set in the config file, to f
- `section.color` - Custom color for a given section
- `item.color` - Font and icon color for a given item
+- `item.iconColor` - Icon color for a given item, overriding `item.color`
- `item.backgroundColor` - Background color for a given icon
## Typography