diff --git a/tools/leonida_launcher.py b/tools/leonida_launcher.py index 9027317c5..80519ef77 100644 --- a/tools/leonida_launcher.py +++ b/tools/leonida_launcher.py @@ -1623,6 +1623,7 @@ MUTED = "#a9a6bd" FAINT = "#7d7a93" DISABLED = "#5c596f" VIOLET = "#8b5cf6" +VIOLET_DEEP = "#7c3aed" # a chosen segment: white text on it at 5.7:1 (VIOLET gives 4.2) PINK = "#ec4899" ON_ACCENT = "#ffffff" OK = "#4cc38a" @@ -1791,13 +1792,16 @@ def run_gui() -> int: chosen = value == current live = self.live(value) label.configure(cursor="hand2" if live else "arrow") - bg = RAISED if chosen else PANEL - edge = EDGE if chosen and live else bg - if live: - fg = TEXT if chosen else MUTED + # The choice in the switches' violet with white text, as an "on" switch: a raised grey was too close + # to the others to read on a screenshot (players could not tell FSR was chosen). Greyed, the same violet + # dimmed, as a greyed "on" switch. + if chosen: + bg = VIOLET_DEEP if live else blend(VIOLET_DEEP, PANEL, 0.55) + fg = ON_ACCENT if live else TEXT else: - fg = FAINT if chosen else DISABLED - label.configure(bg=bg, fg=fg, highlightbackground=edge, highlightcolor=edge) + bg = PANEL + fg = MUTED if live else DISABLED + label.configure(bg=bg, fg=fg, highlightbackground=bg, highlightcolor=bg) class Tip: """The longer text of an option, shown when the pointer rests on it ("Hover any option for what it does")."""