Compare commits

...

8 Commits

Author SHA1 Message Date
Svilen Markov 784bf53425
Merge pull request #842 from ralphocdol/monitor-compact-with-icon
Added icon support for compact
2025-10-26 14:40:44 +07:00
Svilen Markov 0ae8e77afd
Merge pull request #852 from gan-of-culture/main
fix: add .webp as overwrite option for icons + docs
2025-10-26 14:39:31 +07:00
gan-of-culture f0993274a8 Merge branch 'main' of culture.github.com:gan-of-culture/glance 2025-10-23 00:49:00 +07:00
gan-of-culture 6045f4ec78 add .webp as overwrite option for icons + docs 2025-10-23 00:48:29 +07:00
gan-of-culture 6718a74304 add .webp as overwrite option for icons + docs 2025-10-23 00:44:54 +07:00
Svilen Markov 36d5ae023f
Merge pull request #848 from fullmetalsheep/main
feat(themes): Add theme 'Neon Pink'
2025-10-17 14:18:26 +07:00
fullmetalsheep 478c08f6a7 feat(themes): Add theme 'Neon Pink' 2025-10-17 10:53:25 +07:00
Ralph Ocdol a863ecbbf7 Added icon support for compact 2025-10-10 22:16:58 +07:00
5 changed files with 22 additions and 2 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"
}

@ -2,7 +2,7 @@
{{ define "widget-content" }}
{{ if not (and .ShowFailingOnly (not .HasFailing)) }}
<ul class="dynamic-columns list-gap-8">
<ul class="dynamic-columns list-gap-10">
{{ range .Sites }}
{{ if and $.ShowFailingOnly (eq .StatusStyle "ok" ) }}{{ continue }}{{ end }}
<div class="flex items-center gap-12">
@ -21,6 +21,9 @@
{{ end }}
{{ define "site" }}
{{ if .Icon.URL }}
{{ .Icon.ElemWithClass "square-20" }}
{{ end }}
<a class="size-title-dynamic color-highlight text-truncate block grow" href="{{ .URL | safeURL }}" {{ if not .SameTab }}target="_blank"{{ end }} rel="noreferrer">{{ .Title }}</a>
{{ if not .Status.TimedOut }}<div>{{ .Status.ResponseTime.Milliseconds | formatNumber }}ms</div>{{ end }}
{{ if eq .StatusStyle "ok" }}