Desktop: Add fullscreen window mode (#3625)

This commit is contained in:
Timon
2026-01-19 16:32:03 +00:00
committed by GitHub
parent fd0addf61c
commit 07fbcd489c
20 changed files with 195 additions and 153 deletions
+7 -2
View File
@@ -107,9 +107,11 @@ export class SendUIMetadata extends JsMessage {
readonly nodeTypes!: FrontendNodeType[];
}
export class SendShortcutF11 extends JsMessage {
export class SendShortcutFullscreen extends JsMessage {
@Transform(({ value }: { value: ActionShortcut }) => value || undefined)
readonly shortcut!: ActionShortcut | undefined;
@Transform(({ value }: { value: ActionShortcut }) => value || undefined)
readonly shortcutMac!: ActionShortcut | undefined;
}
export class SendShortcutAltClick extends JsMessage {
@@ -335,6 +337,8 @@ export class WindowPointerLockMove extends JsMessage {
readonly y!: number;
}
export class WindowFullscreen extends JsMessage {}
// Rust enum `Key`
export type KeyRaw = string;
// Serde converts a Rust `Key` enum variant into this format with both the `Key` variant name (called `RawKey` in TS) and the localized `label` for the key
@@ -1666,7 +1670,7 @@ export const messageMakers: Record<string, MessageMaker> = {
DisplayEditableTextboxTransform,
DisplayRemoveEditableTextbox,
SendUIMetadata,
SendShortcutF11,
SendShortcutFullscreen,
SendShortcutAltClick,
SendShortcutShiftClick,
TriggerAboutGraphiteLocalizedCommitDate,
@@ -1734,6 +1738,7 @@ export const messageMakers: Record<string, MessageMaker> = {
UpdateMaximized,
UpdateFullscreen,
WindowPointerLockMove,
WindowFullscreen,
UpdatePropertiesPanelLayout,
UpdatePropertiesPanelState,
UpdateStatusBarHintsLayout,