Skip to content

fix(workspace): persist all keys a color scheme writes - #690

Open
FlorianFranzen wants to merge 1 commit into
nix-community:trunkfrom
FlorianFranzen:fix/colorscheme-persistent-keys
Open

FlorianFranzen wants to merge 1 commit into
nix-community:trunkfrom
FlorianFranzen:fix/colorscheme-persistent-keys

Conversation

@FlorianFranzen

@FlorianFranzen FlorianFranzen commented Nov 5, 2026 •

Copy link
Copy Markdown

With overrideConfig, lib/colorscheme.nix marks the keys an applied color scheme writes to kdeglobals as persistent. That list had gaps:

  • A typo ("regroundPositive") meant ForegroundPositive was never kept.
  • Plasma's color applicator (kcms/colors/colorsapplicator.cpp in plasma-workspace) also writes Colors:Complementary, Colors:Header, [Colors:Header][Inactive], the title bar colors in WM, and contrast and frameContrast in KDE.

A rebuild removed these keys, so a running session lost them until the next login, when Plasma re-applies the scheme because ColorSchemeHash is gone too. ColorSchemeHash stays non-persistent on purpose: #176 removed it because a matching hash stops the scheme being applied.

Note: because persistent keys can't carry a value, setting KDE.contrast or a WM color through configFile together with colorScheme or lookAndFeel now fails activation, as Colors:* keys already do. { value = 4; persistent = false; } opts out.

Tested: I put Breeze Dark's color groups into kdeglobals, then ran the activation script from a home configuration with overrideConfig and workspace.colorScheme set. Before the fix, the groups above and every ForegroundPositive are removed; after it, they are all kept.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant