Keep the keyboard input-source icon visible

The hiding boundary sat right of the input-source indicator, so the
hamburger took the slot where the language icon had been. Move the
boundary left of it so the language icon stays, with the hamburger still
at the left edge.

💘 Generated with Crush

Assisted-by: Crush:deepseek-v4.1-flash
This commit is contained in:
2026-09-27 10:44:39 +08:00
parent ccc172d218
commit 6f55861be7
4 changed files with 13 additions and 17 deletions
+6 -5
View File
@@ -313,14 +313,15 @@ final class MenuBarHider: ObservableObject {
// The boundary between "hidden" and "kept" falls just left of Wi-Fi at
// ~250, so the other apps hide while Apple's Wi-Fi/Clock/Battery/Control
// Center/Spotlight stay visible. `debug.spacerPos` overrides the seed.
// The boundary sits just left of Now Playing, so every Control Center
// item stays visible while the apps hide. It must stay *above* the
// hamburger's preferred position (see AppDelegate) for the hamburger to
// remain on the visible side. `debug.spacerPos` overrides the seed.
// The boundary sits just left of the input-source indicator, so every
// system item (input source, Now Playing, Wi-Fi, …) stays visible while
// the apps hide. It must stay *above* the hamburger's preferred position
// (see AppDelegate) for the hamburger to remain on the visible side.
// `debug.spacerPos` overrides the seed.
if let override = UserDefaults.standard.object(forKey: "debug.spacerPos") as? Double {
UserDefaults.standard.set(override, forKey: key)
} else if UserDefaults.standard.object(forKey: key) == nil {
UserDefaults.standard.set(300.0, forKey: key)
UserDefaults.standard.set(330.0, forKey: key)
}
let item = NSStatusBar.system.statusItem(withLength: 0)
item.autosaveName = name