fix(cosmic-theme): menu bar text contrast

This makes selection colors more KDE-like than COSMIC.
This commit is contained in:
Adil Hanney 2026-03-23 00:35:53 +00:00
parent 9f330cb56a
commit 490090878b
No known key found for this signature in database
2 changed files with 6 additions and 4 deletions

View file

@ -49,8 +49,9 @@ impl Theme {
base: self.background.component.base, base: self.background.component.base,
window: self.background.base, window: self.background.base,
shadow: darkest, shadow: darkest,
highlight: self.background.component.selected, // selection colors are swapped to fix menu bar contrast
highlighted_text: self.background.component.selected_text, highlight: self.background.component.selected_text,
highlighted_text: self.background.component.selected,
link: self.link_button.on, link: self.link_button.on,
link_visited: self.link_button.on.mix(self.secondary.component.base, 0.2), link_visited: self.link_button.on.mix(self.secondary.component.base, 0.2),
alternate_base: self.background.base.mix(self.accent.base, 0.05), alternate_base: self.background.base.mix(self.accent.base, 0.05),

View file

@ -65,8 +65,9 @@ impl Theme {
// selected text and items // selected text and items
let selection_colors = { let selection_colors = {
let selected = self.background.component.selected; // selection colors are swapped to fix menu bar contrast
let selected_text = self.background.component.selected_text; let selected = self.background.component.selected_text;
let selected_text = self.background.component.selected;
IniColors { IniColors {
background_alternate: selected.mix(bg, 0.5), background_alternate: selected.mix(bg, 0.5),
background_normal: selected, background_normal: selected,