Merge pull request #852 from gan-of-culture/main

fix: add .webp as overwrite option for icons + docs
dev
Svilen Markov 2025-10-26 14:39:31 +07:00 committed by GitHub
commit 0ae8e77afd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 18 additions and 1 deletions

@ -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!

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

@ -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

@ -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"
}