gui: gate the macOS overlay layout to macOS

Shell injects the OS; Windows/Linux keep the native title bar with no traffic-light insets.
Thin scrollbars on Windows/Linux so panels stop losing width to classic scrollbars.
This commit is contained in:
Rohit C Prasad
2026-07-21 23:16:40 -07:00
parent f6ad97274d
commit 628b6a82d3
6 changed files with 62 additions and 3 deletions
+4 -1
View File
@@ -577,7 +577,10 @@ pub fn run() {
let http = format!("http://127.0.0.1:{port}");
let ws = format!("ws://127.0.0.1:{port}");
// Debug-format yields a quoted JS string literal.
let inject = format!("window.__COWORKER_HTTP__={http:?};window.__COWORKER_WS__={ws:?};");
let inject = format!(
"window.__COWORKER_HTTP__={http:?};window.__COWORKER_WS__={ws:?};window.__OCW_PLATFORM__={:?};",
std::env::consts::OS
);
tauri::Builder::default()
// MUST be the first plugin: when a second launch happens (e.g. the user relaunches