Repository navigation
feat(ui): custom themes as JSON files, and an interface scale #1151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
2dcffb8
UI: themes as files, an interface scale, and Settings > Theme
Wolren 7c2b090
docs(ui): the theme reference is the shipped Light file, comments kep…
Wolren 465e129
fix(ui): one control for brightness, in Settings > Theme
Wolren 4282f55
fix(ui): a platform that reports no theme cannot be followed
Wolren 41658cc
fix(ui): the zoom keys and the menu share one interface scale
Wolren 3c6842f
docs(ui): the Settings preference list names the theme
Wolren 4f210f8
fix(ui): theme state survives a reload, and the menu owns the scale
Wolren 33c2d94
fix(ui): themes keep their brightness, their sizes and the scale they…
Wolren 81b4613
test(ui): a file that sets its own brightness draws in that mode
Wolren a516e1e
fix(ui): the theme folder is read the way the rest of the app reads f…
Wolren 67d364b
fix(ui): a theme file is opened only when it is a file, and the butto…
Wolren a0599c6
fix(ui): the chosen theme keeps its name until its file loads again
Wolren 27e174d
fix(ui): say what the theme reader changed, and name the theme drawn
Wolren 85c3801
fix(ui): the review notes, and one notice for a failed action
Wolren d09a55c
fix(ui): a symlinked theme file reloads when its target changes
Wolren 6fd28e0
fix(ui): one file per theme name, and the picker says what it changed
Wolren 9dd2f64
Update crates/ui-egui/src/theme.rs
Wolren 8c97e7c
fix(ui): a theme file with no name takes its file name
Wolren 7f355f3
fix(themes): preserve source files and safe theme loading
Mavrick-F 78e7f9f
fix(themes): preserve saved appearance and roll back failed imports
Mavrick-F e06e7f0
fix(themes): hide desktop commands on web and invalidate reloaded looks
Mavrick-F ff5911b
fix(themes): preserve filename ownership and integrate main
Mavrick-F 53806ec
fix(themes): preserve interrupted saves and reject malformed brightness
Mavrick-F a19e5aa
fix(themes): permit save retries and retain system brightness fallback
Mavrick-F 17dd550
docs(themes): explain discovery of a newly created folder
Mavrick-F 71a9d88
fix(themes): reject malformed selectors and reserve Windows device stems
Mavrick-F 0eaf09d
fix(themes): report numeric adjustments and incomplete save state
Mavrick-F bf31a1a
fix(themes): integrate main and preserve incomplete-save retry errors
Mavrick-F e4bb92e
fix(themes): reject repeated colour keys and integrate upstream cleanup
Mavrick-F 39201a2
fix(themes): report each explicit load and integrate upstream export …
Mavrick-F fef91d0
fix(themes): select the saved language before startup theme reads
Mavrick-F 0d60168
fix(ui-shot): load custom themes before split-showcase commands
Mavrick-F e723997
fix(themes): refuse the desktop theme picker in browser commands
Mavrick-F File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug (confidence about 80%): Command Search lists two entries that do nothing in the browser build.
command_available(chrome.rs:663-665, not in this diff) only hidesui.checkUpdateandui.mcpRelayon the web. Command Search (chrome.rs:996) filters everyUI_COMMANDSentry through it, so "Load a Theme from File…" (ui.themeLoad, this line) and "Reload Themes" (ui.themeReload, next line) are offered in the browser.On wasm,
dialogs::pick_openreturnsNone(dialogs.rs:1832).ui.themeLoadthen returnsOk(Value::Null)with no notice, so the user sees nothing happen.docs/themes.mdsays the browser does not offer Load a Theme from File…, and the menu already hides both items there (if folder).Adding both ids to the web exclusion in
command_availablekeeps Command Search in step with the menu and the docs:A test that
command_available("ui.themeLoad", true)is false, and stays true on desktop, would cover it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in e06e7f0. The shared command-availability filter now excludes both theme-file loading and reloading on the web, so Command Search and shortcut lists match the menu. The existing web-row regression checks both commands remain available on desktop and are absent on web even with saved bindings. Targeted regressions, full CI, locked wasm and all hooks passed. I am integrating newer main before landing.