Repository navigation
feat(appearance): optional separate theme for the menu bar - #63
Merged
CristianOlivera1 merged 2 commits intoNov 24, 2026
Merged
Conversation
…tation#54) The menu bar, its panels and the menus opened from it can take a theme of their own. Settings -> Appearance gains a 'Same theme for the menu bar' switch (on by default) and a second theme picker when it is off. The new menuBarAppearance preference is null by default, so existing configurations keep sharing the dock's theme. Refs crafter-station#54
|
@giacfalk is attempting to deploy a commit to the Crafter Station Team on Vercel. A member of the Team first needs to authorize it. |
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.
Closes #54.
What changes
The menu bar, its panels and the menus opened from it (such as the input language menu) can have a theme of their own, separate from the dock's.
New preference:
menuBarAppearance, anAppearanceornull. It defaults tonull, which means the menu bar uses the dock'sappearance. Existing configurations are therefore unchanged. An unknown theme name from a newer version reads asauto, as it does forappearance.Implementation notes
appearance.rskeeps a second atomic,MENU_BAR_CHOICE. It holds the valueu8::MAXwhile the menu bar shares the dock's theme.appearance::menu_bar()resolves the menu bar's look, andmenu_bar_light()gives the light/dark flag for menus opened from the bar.menubar.rsnow builds itsLookfromappearance::menu_bar(). Its material, light and glass flags are part of the look, so a change redraws the bar through the existingApp::refreshpath.appearance.Testing
cargo fmt --all --check,cargo clippy --workspace --all-targets -- -D warningsandcargo test --workspaceall pass.null, round trip, and an unknown theme reading asauto.appearance: encoding of the menu bar's own choice versus the shared one, for every theme.pnpm testpasses 22 tests. The new one covers:menuBarAppearance, and the dock picker saves onlyappearance.null.pnpm buildpasses.null, and the running bar returns to Aurora at once. Settings then goes back to a single "Theme" picker with the original hint.Note: this PR and #62 both add lines under
## [Unreleased]inCHANGELOG.mdand new keys to the i18n files. Whichever merges second will need a small rebase.