Repository navigation
fix(workspace): persist all keys a color scheme writes - #690
Open
FlorianFranzen wants to merge 1 commit into
Open
FlorianFranzen wants to merge 1 commit into
FlorianFranzen wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With
overrideConfig,lib/colorscheme.nixmarks the keys an applied color scheme writes to kdeglobals as persistent. That list had gaps:"regroundPositive") meantForegroundPositivewas never kept.kcms/colors/colorsapplicator.cppin plasma-workspace) also writesColors:Complementary,Colors:Header,[Colors:Header][Inactive], the title bar colors inWM, andcontrastandframeContrastinKDE.A rebuild removed these keys, so a running session lost them until the next login, when Plasma re-applies the scheme because
ColorSchemeHashis gone too.ColorSchemeHashstays 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.contrastor aWMcolor throughconfigFiletogether withcolorSchemeorlookAndFeelnow fails activation, asColors:*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
overrideConfigandworkspace.colorSchemeset. Before the fix, the groups above and everyForegroundPositiveare removed; after it, they are all kept.