v0.69.0: dark mode, with its own grays and a tint per mode
This commit is contained in:
@@ -294,6 +294,15 @@ persistence) → GUI (Qt widgets that read the manager and connect to its signal
|
||||
The laser page draws the rig (`gui/laser_diagram.py`, textbook line art
|
||||
through the renderer's own `_rotation`); it labels distance, angles and
|
||||
dot size, so those sliders show no number.
|
||||
**Dark mode** (Round 101, Preferences › Appearance): `theme.mode(prefs)`
|
||||
picks a whole palette (`_dark_palette`, every role) in dark, or the
|
||||
base palette plus overrides in light. Each mode has its own gray sliders
|
||||
(dark's are `dark_<key>`, light keeps the original keys) and a tint
|
||||
(`tint_color`/`tint_level`, `dark_…`): the gray's lightness with the
|
||||
tint's hue at level × its saturation, on every surface but text. Paint
|
||||
surfaces with `theme.surface(prefs, key)`, glyphs with
|
||||
`theme.icon_gray()` and button text with `theme.text_color()` — a
|
||||
hardcoded black/#4A4A4A vanishes in dark. The highlight is shared.
|
||||
The highlight swatches can be repainted with a color picker:
|
||||
`highlight_palette` overrides a slot, and `theme.highlight_color` reads
|
||||
through `theme.highlight_palette`, so nothing else needs to know.
|
||||
|
||||
Reference in New Issue
Block a user