mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-21 09:05:10 -07:00
The home-tab buttons' gradient over the static theme background was hardcoded, and accent-derived fallbacks could not be themed or edited: QPalette's role set is closed, so any application-specific color has to live in Cockatrice's own palette layer. - Add an AppColor::Role enum (AccentStrong / AccentSoft) stored on PaletteConfig and round-tripped from palette-<scheme>.toml under a new [AppColors] section. - Cache the applied app colors in ThemeManager and expose appColor(Role) with a palette-accent-derived fallback; emit paletteChanged() from applyStyleAndPalette so previews, scheme switches and OS dark mode repaint palette-driven widgets. - Fill both app roles in PaletteGenerator::fromAccent and surface them as a dedicated section in the palette editor. - Drive the home-tab buttons from appColor() whenever the background source is the theme (any theme, not just built-ins). - Ship AccentStrong / AccentSoft values in the Fusion and Default default palettes so the static home-tab buttons keep their classic greens.
67 lines
2 KiB
TOML
67 lines
2 KiB
TOML
[Palette]
|
|
WindowText = #ffffffff
|
|
Button = #ff383838
|
|
Light = #ff737373
|
|
Midlight = #ff525252
|
|
Dark = #ff161616
|
|
Mid = #ff252525
|
|
Text = #ffffffff
|
|
BrightText = #ffb4dd8b
|
|
ButtonText = #ffffffff
|
|
Base = #ff2b2b2b
|
|
Window = #ff1c1c1c
|
|
Shadow = #ff000000
|
|
HighlightedText = #ff000000
|
|
Link = #ffcde4b6
|
|
LinkVisited = #ff99d999
|
|
AlternateBase = #ff242424
|
|
ToolTipBase = #ffffffdc
|
|
ToolTipText = #ff000000
|
|
PlaceholderText = #6effffff
|
|
|
|
[Palette.Disabled]
|
|
WindowText = #ff9d9d9d
|
|
Button = #ff1c1c1c
|
|
Light = #ff737373
|
|
Midlight = #ff525252
|
|
Dark = #ff161616
|
|
Mid = #ff252525
|
|
Text = #ff9d9d9d
|
|
BrightText = #ffb4dd8b
|
|
ButtonText = #ff787878
|
|
Base = #ff1c1c1c
|
|
Window = #ff1c1c1c
|
|
Shadow = #ff000000
|
|
HighlightedText = #ff9d9d9d
|
|
Link = #ff308cc6
|
|
LinkVisited = #ffb450ff
|
|
AlternateBase = #ff242424
|
|
ToolTipBase = #ffffffdc
|
|
ToolTipText = #ff000000
|
|
PlaceholderText = #46ffffff
|
|
|
|
[Palette.Inactive]
|
|
WindowText = #ffffffff
|
|
Button = #ff383838
|
|
Light = #ff737373
|
|
Midlight = #ff525252
|
|
Dark = #ff161616
|
|
Mid = #ff252525
|
|
Text = #ffffffff
|
|
BrightText = #ffb4dd8b
|
|
ButtonText = #ffffffff
|
|
Base = #ff2b2b2b
|
|
Window = #ff1c1c1c
|
|
Shadow = #ff000000
|
|
HighlightedText = #ffffffff
|
|
Link = #ffcde4b6
|
|
LinkVisited = #ff99d999
|
|
AlternateBase = #ff242424
|
|
ToolTipBase = #ffffffdc
|
|
ToolTipText = #ff000000
|
|
PlaceholderText = #6effffff
|
|
|
|
|
|
[AppColors]
|
|
AccentStrong = #ff148c3c
|
|
AccentSoft = #ff78c850
|