Repository navigation
Conversation
This branch has not been deployed
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.
Description
Fixes #11539.
On Windows, Tabby can create a window before it can read the native-frame preference in an encrypted configuration. Electron then draws its minimize, maximize, and close buttons over the page. After unlock, the renderer used the native-frame layout and put toolbar actions underneath those buttons.
When the preference is native, the renderer now checks whether the running Windows window actually has a visible controls overlay. In that case it reserves the existing thin-frame space and drag region. Side and bottom tab layouts use their existing title bar.
I tested the affected Angular template bindings and component logic in Windows Electron 43.7.0 BrowserWindows using the project's startup frame selection, synthetic configuration, and an isolated profile. In a 900-pixel window the overlay began at x=763. Before the change the toolbar button extended to x=900 and the spacer was 0 pixels. After the change its right edge was x=762, the spacer was 138 pixels, and the drag region was active. Eight comparisons covered encrypted and plain configurations, native/thin/full frames, and top/side/bottom tabs. The fixture exercised the persisted configuration shape with a stand-in vault. It did not automate the unlock dialog.
All 95 unit tests and 31 SSH tests passed. Repository lint, the core TypeScript check, and declaration builds for all bundled plugins passed. The core webpack build completed on both the base and this branch with the same 42 warning headings.
AI Usage
Codex prepared the change and ran the verification.