Cockatrice/cockatrice/themes/Fusion/palette-default-dark.toml
Lukas Brübach 03684bf41d
[Client] Add [AppColors] application palette roles
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
2026-09-12 18:00:28 +02:00

73 lines
2.2 KiB
TOML

[Palette]
WindowText = #ffffffff
Button = #ff3c3c3c
Light = #ff787878
Midlight = #ff5a5a5a
Dark = #ff1e1e1e
Mid = #ff282828
Text = #ffffffff
BrightText = #ff00f652
ButtonText = #ffffffff
Base = #ff2d2d2d
Window = #ff1e1e1e
Shadow = #ff000000
Highlight = #ff148c3c
HighlightedText = #ffffffff
Link = #ff00f652
LinkVisited = #ff00d346
AlternateBase = #ff353535
ToolTipBase = #ff3c3c3c
ToolTipText = #ffd4d4d4
PlaceholderText = #80ffffff
Accent = #ff00d346
[Palette.Disabled]
WindowText = #ff9d9d9d
Button = #ff3c3c3c
Light = #ff787878
Midlight = #ff5a5a5a
Dark = #ff1e1e1e
Mid = #ff282828
Text = #ff9d9d9d
BrightText = #ff00f652
ButtonText = #ff9d9d9d
Base = #ff1e1e1e
Window = #ff1e1e1e
Shadow = #ff000000
Highlight = #ff148c3c
HighlightedText = #ffffffff
Link = #ff308cc6
LinkVisited = #ffff00ff
AlternateBase = #ff353535
ToolTipBase = #ffffffdc
ToolTipText = #ff000000
PlaceholderText = #80ffffff
Accent = #ff9d9d9d
[Palette.Inactive]
WindowText = #ffffffff
Button = #ff3c3c3c
Light = #ff787878
Midlight = #ff5a5a5a
Dark = #ff1e1e1e
Mid = #ff282828
Text = #ffffffff
BrightText = #ff00f652
ButtonText = #ffffffff
Base = #ff2d2d2d
Window = #ff1e1e1e
Shadow = #ff000000
Highlight = #ff1e1e1e
HighlightedText = #ffffffff
Link = #ff00f652
LinkVisited = #ff00d346
AlternateBase = #ff353535
ToolTipBase = #ff3c3c3c
ToolTipText = #ffd4d4d4
PlaceholderText = #80ffffff
Accent = #ff1e1e1e
[AppColors]
AccentStrong = #ff148c3c
AccentSoft = #ff78c850