Repository navigation
fix(desktop): show themed title-bar control icons and space the menu button - #5830
Merged
Jocs merged 2 commits intoOct 21, 2026
Merged
Conversation
…button The window-control icons (minimize/maximize/close) are only visible in dark themes because each theme recolours their SVG. marktext#5739 changed the icon wrapper from a div to a span, so all 30 theme rules that target .frameless-titlebar-button > div > svg stopped matching and the icons fell back to the base black fill, invisible on a dark title bar. Point the rules at the element the template renders, and give .left-toolbar a gap so the document statistics no longer sit flush against the application-menu button. Closes marktext#5828
Member
|
@Dopetaiga Please paste some screenshots about this PR. |
Member
|
No need to add test. |
Jocs
approved these changes
Oct 21, 2026
Contributor
Author
OK,I will remeber this on fututre work |
Contributor
Author
Screenshots from the Windows CI build of this branch (dracula theme, custom title bar):
The document statistics no longer touch the application-menu button.
Window controls are now white on the dark title bar.
|
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 #5828
Summary
Fixes both items in #5828.
Dark-theme window controls rendered black. Each bundled theme recolours the minimize/maximize/close SVG through
#5739 (commit
1d9222d) changed the icon container inside those buttons from<div>to<span>for accessibility, so all 30 theme rules stopped matching. The SVGs fell through to the base.frameless-titlebar-button svg { fill: #000000; }intitleBar/index.vue, which is invisible on a dark title bar. This change points every theme rule at the element the template now renders.Word count sat flush against the application-menu button.
.left-toolbaris a flex row with nogap, so the document-statistics trigger touched the menu button. Addedgap: 8pxto the toolbar.Type of change
Test plan
No new tests are included, as requested in review; this change only updates CSS selectors and spacing.
Validation after review:
pnpm run lint— 0 errors (existing warnings remain).vue-tsc --noEmitusing the desktop configuration with pre-existing, untracked multi-root work excluded — passed. The standardpnpm run typecheckis blocked locally by those unrelated untracked files.pnpm run dev— main and preload compiled; renderer development server and Electron app launched on macOS.Notes for reviewers
graphite.theme.cssandulysses.theme.cssnever had this rule (both are light themes that rely on the base black fill), so they are intentionally left untouched.Prettier wants to reformat unrelated parts of
titleBar/index.vue(the file predates the current print width settings), so it was left alone to keep the diff to the one CSS declaration.pnpm format:checkis not currently clean ondevelopfor that file either.By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.