mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-24 16:08:12 +08:00
Desktop: Add fullscreen window mode (#3625)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user