Skip to content

Commit b4f928d

Browse files
committed
chore: document accent palette config
Followup to #749
1 parent 324b8c1 commit b4f928d

File tree

3 files changed

+62
-0
lines changed

3 files changed

+62
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The settings application for the [COSMIC desktop environment][cosmic-epoch].
66

77
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.
88

9+
## Distributors
10+
11+
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.
12+
913
## Build
1014

1115
### Dependencies

resources/accent_palette_dark.ron

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Example dark accent palette
2+
[
3+
// Blue
4+
(red: 0.3882353, green: 0.81568627, blue: 0.87450981, alpha: 1.0),
5+
6+
// Indigo
7+
(red: 0.63137255, green: 0.75294118, blue: 0.92156863, alpha: 1.0),
8+
9+
// Purple
10+
(red: 0.90588235, green: 0.61176471, blue: 0.99607843, alpha: 1.0),
11+
12+
// Pink
13+
(red: 1.0, green: 0.61176471, blue: 0.69411765, alpha: 1.0),
14+
15+
// Red
16+
(red: 0.99215686, green: 0.63137255, blue: 0.62745098, alpha: 1.0),
17+
18+
// Orange
19+
(red: 1.0, green: 0.67843137, blue: 0.0, alpha: 1.0),
20+
21+
// Yellow
22+
(red: 0.96862745, green: 0.87843137, blue: 0.38431373, alpha: 1.0),
23+
24+
// Green
25+
(red: 0.57254902, green: 0.81176471, blue: 0.61176471, alpha: 1.0),
26+
27+
// Warm Grey
28+
(red: 0.79215686, green: 0.72941176, blue: 0.70588235, alpha: 1.0)
29+
]

resources/accent_palette_light.ron

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// Example light accent palette
2+
[
3+
// Blue
4+
(red: 0.0, green: 0.32156863, blue: 0.35294118, alpha: 1.0),
5+
6+
// Indigo
7+
(red: 0.18039216, green: 0.28627451, blue: 0.42745098, alpha: 1.0),
8+
9+
// Purple
10+
(red: 0.40784314, green: 0.12941176, blue: 0.48627451, alpha: 1.0),
11+
12+
// Pink
13+
(red: 0.52549020, green: 0.01568627, blue: 0.22745098, alpha: 1.0),
14+
15+
// Red
16+
(red: 0.47058824, green: 0.16078431, blue: 0.18039216, alpha: 1.0),
17+
18+
// Orange
19+
(red: 0.38431373, green: 0.25098039, blue: 0.0, alpha: 1.0),
20+
21+
// Yellow
22+
(red: 0.32549020, green: 0.28235294, blue: 0.0, alpha: 1.0),
23+
24+
// Green
25+
(red: 0.09411765, green: 0.33333333, blue: 0.16078431, alpha: 1.0),
26+
27+
// Warm Grey
28+
(red: 0.33333333, green: 0.27843137, blue: 0.25882353, alpha: 1.0)
29+
]

0 commit comments

Comments
 (0)