Repository navigation
fix(ui): preserve Inter font on theme/settings updates and dock layout on fullscreen exit - #72
Merged
Conversation
…ut on fullscreen exit
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.
Summary
Ubuntu Sans 11) on theme switches and Settings updates:app.setStyleSheet("QTableView { ... }")inapply_theme()with a native class paletteapp.setPalette(table_palette, "QTableView"), keepingapp.styleSheet()empty so Qt does not wrapQFusionStyleinQStyleSheetStyle(which caused Qt 6.11 repolish to stamp system fonts ontoQMenuBar,QTreeWidget,QTableWidget, andQLabel).ActionManager.open_settings()soswitch_theme()only runs whentheme_modeactually changed.MainWindow.showEvent().restore_dock_layout(),reset_layout(), and debounced dock layout edits (dockLocationChanged,topLevelChanged,visibilityChanged, dock resize/move), and guard_restore_normal_state()withrestoring_layout = True.tests/core/test_theme.pyandtests/core/test_workbench.py.Verification
uv run ruff check .— passeduv run ruff format --check .— passed (317 files already formatted)uv run pyright—0 errors, 0 warningsQT_QPA_PLATFORM=offscreen uv run pytest—669 passed, 272 subtests passedInter 10across all 5 themes + Settings +QTableWidget#3a3a3aselection highlight, and pixel-exact dock restoration across maximize and fullscreen roundtrips.