diff --git a/docs/configuration.md b/docs/configuration.md index bf3ba45..c42b04d 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -212,6 +212,12 @@ icon: auto-invert sh:glance-dark # with a selfh.st icon This expects the icon to be black and will automatically invert it to white when using a dark theme. +If there is no `.svg` version available for a `selfh.st` or `Dashboard` icon, then you can add the image extension of the format you wish to use. +```yaml +icon: sh:glance.png # use the .png version of the icon +icon: sh:glance.webp # use the .webp version of the icon +``` + ## Config schema For property descriptions, validation and autocompletion of the config within your IDE, @not-first has kindly created a [schema](https://github.com/not-first/glance-schema). Massive thanks to them for this, go check it out and give them a star! diff --git a/docs/images/themes/neon-pink.png b/docs/images/themes/neon-pink.png new file mode 100644 index 0000000..1744f70 Binary files /dev/null and b/docs/images/themes/neon-pink.png differ diff --git a/docs/themes.md b/docs/themes.md index e8d939c..35e6806 100644 --- a/docs/themes.md +++ b/docs/themes.md @@ -104,6 +104,17 @@ theme: negative-color: 12 77 52 ``` +### Neon Pink +![screenshot](images/themes/neon-pink.png) +```yaml +theme: + background-color: 240 27 11 + contrast-multiplier: 1.5 + primary-color: 321 100 71 + positive-color: 165 78 51 + negative-color: 360 100 71 +``` + ## Light ### Catppuccin Latte diff --git a/internal/glance/config-fields.go b/internal/glance/config-fields.go index c89af99..f01e179 100644 --- a/internal/glance/config-fields.go +++ b/internal/glance/config-fields.go @@ -216,7 +216,7 @@ func newCustomIconField(value string) customIconField { basename = icon } - if ext != "svg" && ext != "png" { + if ext != "svg" && ext != "png" && ext != "webp" { ext = "svg" }