fix(desktop): title HUD windows Hermes HUD
The floating HUD inherited the default Hermes title from index.html. Set it explicitly in main and the renderer so the OS window label matches the mode.
This commit is contained in:
@@ -676,6 +676,7 @@ const BOOT_FAKE_STEP_MS = (() => {
|
||||
})()
|
||||
|
||||
const APP_NAME = process.env.HERMES_DESKTOP_APP_NAME || 'Hermes'
|
||||
const HUD_WINDOW_TITLE = `${APP_NAME} HUD`
|
||||
const TITLEBAR_HEIGHT = 34
|
||||
const MACOS_TRAFFIC_LIGHTS_HEIGHT = 14
|
||||
|
||||
@@ -9377,6 +9378,7 @@ function spawnHudWindow(sessionId, profile) {
|
||||
...hudBounds(),
|
||||
minWidth: 380,
|
||||
minHeight: 160,
|
||||
title: HUD_WINDOW_TITLE,
|
||||
frame: false,
|
||||
transparent: true,
|
||||
// NOT resizable. A transparent frameless window on Windows keeps a
|
||||
|
||||
@@ -39,6 +39,10 @@ if (import.meta.env.MODE !== 'production' || import.meta.env.VITE_PERF_PROBE ===
|
||||
|
||||
const winParam = new URLSearchParams(window.location.search).get('win')
|
||||
|
||||
if (winParam === 'hud') {
|
||||
document.title = 'Hermes HUD'
|
||||
}
|
||||
|
||||
if (winParam === 'overlay') {
|
||||
void import('./app/pet-overlay/overlay-root').then(({ mountPetOverlay }) => mountPetOverlay())
|
||||
} else if (winParam === 'quick') {
|
||||
|
||||
Reference in New Issue
Block a user