fix(desktop): remove titlebar inset in fullscreen (#38793)
This commit is contained in:
parent
09afffeead
commit
a9afed0515
8 changed files with 48 additions and 92 deletions
|
|
@ -25,6 +25,7 @@ import { initI18n, t } from "./i18n"
|
|||
import { initializationData, initializationReady } from "./initialization"
|
||||
import { DesktopFirstLaunchOnboarding } from "./onboarding"
|
||||
import { resetZoom, setPinchZoomEnabled, webviewZoom, zoomIn, zoomOut } from "./webview-zoom"
|
||||
import { windowFullscreen } from "./window-fullscreen"
|
||||
import { availableStartupServer, readyWslConnections } from "./wsl/connections"
|
||||
import "./styles.css"
|
||||
import { Splash } from "@opencode-ai/ui/logo"
|
||||
|
|
@ -294,6 +295,8 @@ const createPlatform = (windowState: DesktopWindowState): Platform => {
|
|||
|
||||
webviewZoom,
|
||||
|
||||
windowFullscreen,
|
||||
|
||||
getPinchZoomEnabled: () => window.api.getPinchZoomEnabled(),
|
||||
|
||||
setPinchZoomEnabled,
|
||||
|
|
|
|||
8
packages/desktop/src/renderer/window-fullscreen.ts
Normal file
8
packages/desktop/src/renderer/window-fullscreen.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { createSignal } from "solid-js"
|
||||
|
||||
const [windowFullscreen, setWindowFullscreen] = createSignal(false)
|
||||
|
||||
window.api.onWindowFullscreenChanged(setWindowFullscreen)
|
||||
void window.api.getWindowFullscreen().then(setWindowFullscreen)
|
||||
|
||||
export { windowFullscreen }
|
||||
Loading…
Add table
Add a link
Reference in a new issue