They were written down five times: ThemeProfileModel.js for QML, looks.lua for the compositor, and again in panama-theme-apps and panama-lock. The GNOME accent-name mapping was a sixth list. Adding a ninth accent meant editing all of them, and the file most likely to be missed was the lock screen, which fails silently -- the machine locks in last season's colour and nothing says why. panama-theme-apps admitted it in a comment: "there is no shared source between QML and a shell script". config/palette.json is that source now. looks.lua reads it through a new prefs.readJson, which uses the same never-raise parser the settings store uses, so an unreadable palette costs the accent colours and never the compositor config. The two shell generators read it through scripts/panama-palette, which also carries the hex-to-rgb conversion hyprlock needs and the GNOME member lookup. QML keeps its table, because a .js module imported into QML cannot read a file. That is still a copy, so the palette contract compares the two value by value -- every accent, every field -- and fails on any disagreement. Verified by planting a wrong hex and watching it name the exact field. The adwaita contract used to check the shell's own copy of the GNOME mapping. It now checks that the shell resolves through the palette, and fails if that copy ever grows back.
71 lines
1.6 KiB
JSON
71 lines
1.6 KiB
JSON
{
|
|
"_comment": "Generated-by-hand source of truth for every consumer outside QML. See config/dot/quickshell/config/PALETTE.md.",
|
|
"default": "blue",
|
|
"accents": {
|
|
"blue": {
|
|
"dark": "82aaff",
|
|
"darkSecondary": "b172b0",
|
|
"light": "2e7de9",
|
|
"lightSecondary": "9854f1",
|
|
"label": "Prism blue",
|
|
"gnome": "blue"
|
|
},
|
|
"orchid": {
|
|
"dark": "c099ff",
|
|
"darkSecondary": "fca7ea",
|
|
"light": "7847bd",
|
|
"lightSecondary": "9854f1",
|
|
"label": "Orchid",
|
|
"gnome": "purple"
|
|
},
|
|
"teal": {
|
|
"dark": "86e1fc",
|
|
"darkSecondary": "82aaff",
|
|
"light": "007197",
|
|
"lightSecondary": "2e7de9",
|
|
"label": "Teal",
|
|
"gnome": "teal"
|
|
},
|
|
"green": {
|
|
"dark": "c3e88d",
|
|
"darkSecondary": "86e1fc",
|
|
"light": "587539",
|
|
"lightSecondary": "007197",
|
|
"label": "Green",
|
|
"gnome": "green"
|
|
},
|
|
"amber": {
|
|
"dark": "ffc777",
|
|
"darkSecondary": "ff966c",
|
|
"light": "8c6c3e",
|
|
"lightSecondary": "b15c00",
|
|
"label": "Amber",
|
|
"gnome": "yellow"
|
|
},
|
|
"orange": {
|
|
"dark": "ff966c",
|
|
"darkSecondary": "ff757f",
|
|
"light": "b15c00",
|
|
"lightSecondary": "c64343",
|
|
"label": "Orange",
|
|
"gnome": "orange"
|
|
},
|
|
"rose": {
|
|
"dark": "ff757f",
|
|
"darkSecondary": "c099ff",
|
|
"light": "f52a65",
|
|
"lightSecondary": "9854f1",
|
|
"label": "Rose",
|
|
"gnome": "red"
|
|
},
|
|
"slate": {
|
|
"dark": "828bb8",
|
|
"darkSecondary": "82aaff",
|
|
"light": "6172b0",
|
|
"lightSecondary": "2e7de9",
|
|
"label": "Slate",
|
|
"gnome": "slate"
|
|
}
|
|
}
|
|
}
|