Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions emain/emain-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,13 @@ async function getAppMenu(

const devToolsAccel = unamePlatform === "darwin" ? "Option+Command+I" : "Alt+Shift+I";
const isBuilderWindowFocused = focusedBuilderWindow != null;
let fullscreenOnLaunch = false;
try {
const fullConfig = await RpcApi.GetFullConfigCommand(ElectronWshClient);
fullscreenOnLaunch = fullConfig?.settings["window:fullscreenonlaunch"];
} catch (e) {
console.error("Error fetching fullscreen launch config:", e);
}
const viewMenu: Electron.MenuItemConstructorOptions[] = [
{
label: isBuilderWindowFocused ? "Reload Window" : "Reload Tab",
Expand Down Expand Up @@ -290,6 +297,27 @@ async function getAppMenu(
visible: false,
acceleratorWorksWhenHidden: true,
},
{
label: "Launch On Full Screen",
submenu: [
{
label: "On",
type: "radio",
checked: fullscreenOnLaunch,
click: () => {
RpcApi.SetConfigCommand(ElectronWshClient, { "window:fullscreenonlaunch": true });
},
},
{
label: "Off",
type: "radio",
checked: !fullscreenOnLaunch,
click: () => {
RpcApi.SetConfigCommand(ElectronWshClient, { "window:fullscreenonlaunch": false });
},
},
],
},
{
type: "separator",
},
Expand Down
6 changes: 6 additions & 0 deletions emain/emain-window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,12 @@ export class WaveBrowserWindow extends BaseWindow {
}

super(winOpts);
const fullscreenOnLaunch = fullConfig?.settings["window:fullscreenonlaunch"];
if (fullscreenOnLaunch) {
this.once("show", () => {
this.setFullScreen(true);
});
}
this.actionQueue = [];
this.waveWindowId = waveWindow.oid;
this.workspaceId = waveWindow.workspaceid;
Expand Down
2 changes: 1 addition & 1 deletion frontend/app/view/term/term-model.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2025, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0

import { Block } from "@/app/block/block";

import { BlockNodeModel } from "@/app/block/blocktypes";
import { waveEventSubscribe } from "@/app/store/wps";
import { RpcApi } from "@/app/store/wshclientapi";
Expand Down
1 change: 1 addition & 0 deletions frontend/types/gotypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,7 @@ declare global {
"widget:*"?: boolean;
"widget:showhelp"?: boolean;
"window:*"?: boolean;
"window:fullscreenonlaunch"?: boolean;
"window:transparent"?: boolean;
"window:blur"?: boolean;
"window:opacity"?: number;
Expand Down
1 change: 1 addition & 0 deletions pkg/wconfig/defaultconfig/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"window:magnifiedblockopacity": 0.6,
"window:magnifiedblocksize": 0.9,
"window:magnifiedblockblurprimarypx": 10,
"window:fullscreenonlaunch": false,
"window:magnifiedblockblursecondarypx": 2,
"window:confirmclose": true,
"window:savelastwindow": true,
Expand Down
1 change: 1 addition & 0 deletions pkg/wconfig/metaconsts.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const (
ConfigKey_WidgetShowHelp = "widget:showhelp"

ConfigKey_WindowClear = "window:*"
ConfigKey_WindowFullscreenOnLaunch = "window:fullscreenonlaunch"
ConfigKey_WindowTransparent = "window:transparent"
ConfigKey_WindowBlur = "window:blur"
ConfigKey_WindowOpacity = "window:opacity"
Expand Down
1 change: 1 addition & 0 deletions pkg/wconfig/settingsconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ type SettingsType struct {
WidgetShowHelp *bool `json:"widget:showhelp,omitempty"`

WindowClear bool `json:"window:*,omitempty"`
WindowFullscreenOnLaunch bool `json:"window:fullscreenonlaunch,omitempty"`
WindowTransparent bool `json:"window:transparent,omitempty"`
WindowBlur bool `json:"window:blur,omitempty"`
WindowOpacity *float64 `json:"window:opacity,omitempty"`
Expand Down
3 changes: 3 additions & 0 deletions schema/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@
"window:*": {
"type": "boolean"
},
"window:fullscreenonlaunch": {
"type": "boolean"
},
"window:transparent": {
"type": "boolean"
},
Expand Down