Dynamize manifest.json with configurable options

This commit is contained in:
David Pearson
2025-04-20 10:00:17 -04:00
parent 1cf4f520f8
commit 333d40ed4f
5 changed files with 64 additions and 14 deletions

View File

@@ -268,6 +268,9 @@ branding:
<p>Powered by <a href="https://github.com/glanceapp/glance">Glance</a></p>
logo-url: /assets/logo.png
favicon-url: /assets/logo.png
app-name: "My Dashboard"
app-icon-url: "/assets/app-icon.png"
app-bg-color: "#151519"
```
### Properties
@@ -279,6 +282,9 @@ branding:
| logo-text | string | no | G |
| logo-url | string | no | |
| favicon-url | string | no | |
| app-name | string | no | Glance |
| app-icon-url | string | no | |
| app-bg-color | string | no | #151519 |
#### `hide-footer`
Hides the footer when set to `true`.
@@ -295,6 +301,15 @@ Specify a URL to a custom image to use instead of the "G" found in the navigatio
#### `favicon-url`
Specify a URL to a custom image to use for the favicon.
#### `app-name`
Specify the name of the web app shown in browser tab and PWA. Defaults to "Glance".
#### `app-icon-url`
Specify URL for PWA and browser tab icon (512x512 PNG). Defaults to Glance icon if not set.
#### `app-bg-color`
Specify background color for PWA. Must be a valid CSS color. Defaults to "#151519".
## Theme
Theming is done through a top level `theme` property. Values for the colors are in [HSL](https://giggster.com/guide/basics/hue-saturation-lightness/) (hue, saturation, lightness) format. You can use a color picker [like this one](https://hslpicker.com/) to convert colors from other formats to HSL. The values are separated by a space and `%` is not required for any of the numbers.