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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user