keep the dark theme when windows is in light mode #44
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/rpatty-dev--PercyStar!44
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/44/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@asm512 on GitHub · 2026-11-22 20:21 UTC · original
asm512:dark-theme-light-mode→main· +14 −0 · 1 files · 1 commits · merged 2026-11-22 21:36 UTCWith Windows in light mode the app was close to unreadable: dark grey text on the dark purple panels.
setup_styleinstalls the palette withctx.set_visuals, which in egui 0.31 only changes the style of the current theme. At startup that is the dark one, then egui follows the system theme and switches to its stock light style (dark text) on top of the app's dark backgrounds.The fix pins the theme to dark before the palette is set.
Testing
cargo test --release: 102 pass.vehicle_texture_layers_togglefails withPERCYSTAR_LEVELS_RPFset, on main without this change as well (22 textured materials, the test expects 19).@rpatty-dev on GitHub · 2026-11-22 21:36 UTC · original
Merged and verified (cargo test --release: 120 passed). Thanks for fixing Windows light-mode theme handling!