mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 08:58:36 +00:00
launcher: the chosen button of a row (Profile, FG mode...) is violet with white text
A player's screenshot did not show that FSR was the frame generation mode: the chosen segment was a raised grey (#2c2940) with a faint edge on a #1b1829 card, too close to the others. It is now filled with a deeper shade of the switches' violet (#7c3aed, white text at 5.7:1; the switches' #8b5cf6 gives 4.2) with white text, as an "on" switch; greyed, the same violet dimmed, as a greyed "on" switch. Unchosen buttons are unchanged. Tests: 106 OK. Real window (AMD card stubbed, Series X, FSR): Profile, Mode, Picture in the window and Ray tracing show their choice in violet. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -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")."""
|
||||
|
||||
Reference in New Issue
Block a user