chore: document accent palette config

Followup to #749
This commit is contained in:
Michael Aaron Murphy 2025-02-27 18:13:09 +01:00
parent 324b8c1622
commit b4f928d3c0
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
3 changed files with 62 additions and 0 deletions

View file

@ -6,6 +6,10 @@ The settings application for the [COSMIC desktop environment][cosmic-epoch].
Translation files may be found in the [i18n directory](./i18n). New translations may copy the [English (en) localization](./i18n/en) of the project and rename `en` to the desired [ISO 639-1 language code][iso-codes]. Translations may be submitted through GitHub as an issue or pull request. Submissions by email or other means are also acceptable; with the preferred name and email to associate with the changes.
## Distributors
The accent palettes on the Appearance settings page are configurable through the cosmic-config directory at `/usr/share/cosmic/com.system76.CosmicSettings/v1/`. One at `accent_palette_dark`, and another at `accent_palette_light`. Examples can be found at [resources/accent_palette_dark.ron](./resources/accent_palette_dark.ron) and [resources/accent_palette_light.ron](./resources/accent_palette_light.ron). This can be copied locally to `~/.config/cosmic/com.system76.CosmicSettings/v1/` for testing, and then move to `/usr/share/cosmic` for packaging.
## Build
### Dependencies

View file

@ -0,0 +1,29 @@
// Example dark accent palette
[
// Blue
(red: 0.3882353, green: 0.81568627, blue: 0.87450981, alpha: 1.0),
// Indigo
(red: 0.63137255, green: 0.75294118, blue: 0.92156863, alpha: 1.0),
// Purple
(red: 0.90588235, green: 0.61176471, blue: 0.99607843, alpha: 1.0),
// Pink
(red: 1.0, green: 0.61176471, blue: 0.69411765, alpha: 1.0),
// Red
(red: 0.99215686, green: 0.63137255, blue: 0.62745098, alpha: 1.0),
// Orange
(red: 1.0, green: 0.67843137, blue: 0.0, alpha: 1.0),
// Yellow
(red: 0.96862745, green: 0.87843137, blue: 0.38431373, alpha: 1.0),
// Green
(red: 0.57254902, green: 0.81176471, blue: 0.61176471, alpha: 1.0),
// Warm Grey
(red: 0.79215686, green: 0.72941176, blue: 0.70588235, alpha: 1.0)
]

View file

@ -0,0 +1,29 @@
// Example light accent palette
[
// Blue
(red: 0.0, green: 0.32156863, blue: 0.35294118, alpha: 1.0),
// Indigo
(red: 0.18039216, green: 0.28627451, blue: 0.42745098, alpha: 1.0),
// Purple
(red: 0.40784314, green: 0.12941176, blue: 0.48627451, alpha: 1.0),
// Pink
(red: 0.52549020, green: 0.01568627, blue: 0.22745098, alpha: 1.0),
// Red
(red: 0.47058824, green: 0.16078431, blue: 0.18039216, alpha: 1.0),
// Orange
(red: 0.38431373, green: 0.25098039, blue: 0.0, alpha: 1.0),
// Yellow
(red: 0.32549020, green: 0.28235294, blue: 0.0, alpha: 1.0),
// Green
(red: 0.09411765, green: 0.33333333, blue: 0.16078431, alpha: 1.0),
// Warm Grey
(red: 0.33333333, green: 0.27843137, blue: 0.25882353, alpha: 1.0)
]