Add theme preference with Light/Dark/System selection#71
Open
Add theme preference with Light/Dark/System selection#71
Conversation
- Add "theme" field to config with "system" as default - Add Preferences submenu under Settings menu with Theme option - Implement Light, Dark, and System (Default) theme selections - Apply theme immediately on selection using Qt palette - Persist theme preference across restarts - Add 12 new tests for theme functionality (65 total tests pass) Co-authored-by: JustinUhr <56878072+JustinUhr@users.noreply.github.com>
- Add theme validation in LeidenToEpiDocConverter.__init__() - Add theme validation in set_theme() method with logging - Add theme validation in apply_theme() function with logging - Use consistent display names matching menu labels in status messages - Improve test_theme.py with more meaningful tests: - Better validation tests that check both valid and invalid inputs - Color specification tests that verify theme color values - Display name tests that verify UI labels Co-authored-by: JustinUhr <56878072+JustinUhr@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add option to change theme with user preferences
Add theme preference with Light/Dark/System selection
Jan 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds user preference for light/dark mode theme selection under Settings → Preferences → Theme.
Changes
Config persistence
themefield in config file with values:"light","dark","system"(default)Theme application
apply_theme()function sets QtQPalettecolors for light/dark modesMenu structure
QActionGroupScreenshots
Dark Theme
Light Theme
Tests
14 new tests in
test_theme.pycovering persistence, validation, backward compatibility, and color specifications. All 67 tests pass.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
esm.ubuntu.com/usr/lib/apt/methods/https /usr/lib/apt/methods/https(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.