You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kando comes with a few icon themes pre-installed. You can select them in the icon picker in the menu editor.
30
+
Here's a list of the built-in icon themes:
24
31
25
32
1.[Simple Icons](https://simpleicons.org) (Plain & Colored): A set of icons for popular brands.
26
33
2.[Material Symbols Rounded](https://fonts.google.com/icons): An icon set for common actions and objects.
27
34
3. Base64 / URL: This allows you to use any icon from the web or your local file system by providing a Base64-encoded string or a URL.
28
35
4. Emojis: This allows you to use any emoji as an icon.
29
36
5. Kando's own icons: Kando comes with a few icons which are used per default for new menu items.
30
37
38
+
The Simple Icons, the Material Symbols, and Kando's own icons are set up in such a way that they will change their color automatically based on the used menu theme.
39
+
You can learn how to make your own icons behave like this further below!
40
+
31
41
## <Iconname="solar:gallery-minimalistic-bold-duotone"class="inline-icon" /> Adding Your Own Icon Theme
32
42
33
43
To add your own icons to Kando, follow these steps:
34
44
35
45
<Steps>
36
46
37
-
1. Create a directory for your icon theme inside the `icon-themes` directory. You can give it any name you like. Where this directory is located depends on your operating system:
47
+
1.**Create an icon-theme directory** for your icon theme inside the `icon-themes` directory. You can give it any name you like. Where this directory is located depends on your operating system:
38
48
39
49
<TabssyncKey="os">
40
50
<TabItemlabel="Windows"icon="seti:windows">
@@ -82,19 +92,91 @@ To add your own icons to Kando, follow these steps:
82
92
83
93
4. Select your icon theme in the icon-theme dropdown in the icon picker in Kando's menu editor.
## <Iconname="solar:lightbulb-minimalistic-bold-duotone"class="inline-icon" /> Suggestions for Icon Sets
99
+
### Make Icon-Colors Adaptive
100
+
101
+
<Asidetype="note">
102
+
Your icons need to be SVG files for this to work because this relies on the [`currentColor`](https://echobind.com/post/currentcolor-css-property-with-svg) SVG-feature.
103
+
Recoloring icons will not work with PNG or other raster formats.
104
+
</Aside>
105
+
106
+
Per default, SVG icons will be displayed in their original color.
107
+
However, especially for monochrome icons, it is often desirable to change the color of the icons based on the menu theme.
108
+
109
+
The basic idea is to set the `fill` or `stroke` attributes of the shapes in your SVG files to `currentColor`.
110
+
Usually, SVG files have a fixed color set for these (like `fill="red"` or `stroke="#ff6677"`), however, the special variable `currentColor` can be used instead.
111
+
112
+
**This means, you will need to edit your SVG files and change the `fill` attribute of the shapes to `currentColor`.**
113
+
Here are some examples, the corresponding SVG code is shown in the tabs below the images.
114
+
115
+
Image | Name | Explanation
116
+
--- | --- | ---
117
+
<divstyle="position: absolute"><Fragmentset:html={exampleSVGFixed} /></div> | red.svg | This is how most SVG files will look like by default. The `fill` attribute is set to a fixed color (in this case, red). This means the icon will always be red, regardless of the menu theme. You can change the color theme of this website to see that the icon does not change its color.
118
+
<divstyle="position: absolute"><Fragmentset:html={exampleSVGCurrent} /></div> | current.svg | If you use `currentColor` as the value for the `fill` attribute, the icon will ba adaptive! **Try changing the color theme of this website!** The icon will switch between light and dark colors automatically.
119
+
<divstyle="position: absolute"><Fragmentset:html={exampleSVGMixed} /></div> | mixed.svg | You can also mix adaptive and fixed colors in your SVG files. In this example, the fill color will adapt to the menu theme, while the stroke color will always be red.
0 commit comments