-
-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UI] Frameless window option (with theme support) (#3066)
* Add frameless window app setting * Extract titlebar options from custom theme * Set titlebar overlay options from theme selector * Make sidebar draggable on frameless windows * Fix dead code error * Add preliminary support for Linux * Add proper safety checks * Remove default titlebar height to let platform decide * Custom WindowControls component for frameless windows * Fix broken tests * Replace isFramless IPC method with injected property * Prevent overlay controls from covering up content * Deal with macOS overlay controls being on the left * Fix for non-native overlay controls * Set window.isFrameless regardless of method used * Use correct theme variables for window controls * Change default window controls height to 39px * Remove line checked in by mistake * Use native overlay controls only on platforms that support it * Add 'fullscreen' class to App element when window is in fullscreen mode * Don't apply frameless fix if window is fullscreen * Fix window controls not appearing on Linux * Use more traditional icons for maximize/restore * Remove camel-case dependecy * Replace `getWindowProps()` by `isFrameless()` * Add experimental feature notification * Change tooltip to "Restore window" when maximized * Don't show frameless window option in Steam Deck Game Mode * Fix window controls scrolling with content * Make WindowControls close button respect exitToTray setting --------- Co-authored-by: Etaash Mathamsetty <[email protected]>
- Loading branch information
1 parent
ada9cdb
commit d02a705
Showing
26 changed files
with
414 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
:root { | ||
--titlebar-height: 40px; | ||
--titlebar-color: #1a1b1c; | ||
--titlebar-symbol-color: #fafbfc; | ||
} |
This file contains 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 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 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 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 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 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 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 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.