MirrorBar+ 9: hide battery, volume and wifi

Part of MirrorBar+ 9 (bar color, logo shapes, clock size and bold, hide battery, volume and wifi).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JW57ZsfD68JfyDt93j58v9
This commit is contained in:
2026-11-12 22:38:22 +00:00
co-authored by Claude Sonnet 5.5
parent c80267f81f
commit fc1d82d790
+11 -3
View File
@@ -110,11 +110,19 @@ func trayItemsAt(x, clientH int32) []trayItem {
case trayClock:
w = clockWidth()
case trayBattery:
if battPct < 0 {
continue // this PC has no battery
if battPct < 0 || !showBattery {
continue // this PC has no battery, or it was turned off in the settings
}
w = px(36)
case trayVolume, trayWifi:
case trayVolume:
if !showVolume {
continue
}
w = px(36)
case trayWifi:
if !showWifi {
continue
}
w = px(36)
case trayWeather:
if !showWeather {