mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-25 11:56:11 -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. # Conflicts: # cockatrice/src/interface/widgets/general/home_widget.cpp
73 lines
2.2 KiB
TOML
73 lines
2.2 KiB
TOML
[Palette]
|
|
WindowText = #ff000000
|
|
Button = #fff0f0f0
|
|
Light = #ffffffff
|
|
Midlight = #ffe3e3e3
|
|
Dark = #ffa0a0a0
|
|
Mid = #ffa0a0a0
|
|
Text = #ff000000
|
|
BrightText = #ffffffff
|
|
ButtonText = #ff000000
|
|
Base = #ffffffff
|
|
Window = #fff0f0f0
|
|
Shadow = #ff696969
|
|
Highlight = #ff148c3c
|
|
HighlightedText = #ffffffff
|
|
Link = #ff0d5f28
|
|
LinkVisited = #ff08401b
|
|
AlternateBase = #ffe9e7e3
|
|
ToolTipBase = #ffffffdc
|
|
ToolTipText = #ff000000
|
|
PlaceholderText = #80000000
|
|
Accent = #ff107532
|
|
|
|
[Palette.Disabled]
|
|
WindowText = #ff787878
|
|
Button = #fff0f0f0
|
|
Light = #ffffffff
|
|
Midlight = #fff7f7f7
|
|
Dark = #ffa0a0a0
|
|
Mid = #ffa0a0a0
|
|
Text = #ff787878
|
|
BrightText = #ffffffff
|
|
ButtonText = #ff787878
|
|
Base = #fff0f0f0
|
|
Window = #fff0f0f0
|
|
Shadow = #ff000000
|
|
Highlight = #ff148c3c
|
|
HighlightedText = #ffffffff
|
|
Link = #ff0000ff
|
|
LinkVisited = #ffff00ff
|
|
AlternateBase = #fff7f7f7
|
|
ToolTipBase = #ffffffdc
|
|
ToolTipText = #ff000000
|
|
PlaceholderText = #80000000
|
|
Accent = #ff787878
|
|
|
|
[Palette.Inactive]
|
|
WindowText = #ff000000
|
|
Button = #fff0f0f0
|
|
Light = #ffffffff
|
|
Midlight = #ffe3e3e3
|
|
Dark = #ffa0a0a0
|
|
Mid = #ffa0a0a0
|
|
Text = #ff000000
|
|
BrightText = #ffffffff
|
|
ButtonText = #ff000000
|
|
Base = #ffffffff
|
|
Window = #fff0f0f0
|
|
Shadow = #ff696969
|
|
Highlight = #fff0f0f0
|
|
HighlightedText = #ff000000
|
|
Link = #ff0d5f28
|
|
LinkVisited = #ff08401b
|
|
AlternateBase = #ffe9e7e3
|
|
ToolTipBase = #ffffffdc
|
|
ToolTipText = #ff000000
|
|
PlaceholderText = #80000000
|
|
Accent = #fff0f0f0
|
|
|
|
|
|
[AppColors]
|
|
AccentStrong = #ff148c3c
|
|
AccentSoft = #ff78c850
|