Add bar spots beside the notch, and Caffeine and Night Light modules
Notch mode gets two more module lists, notch.innerLeft and notch.innerRight: spots right beside the notch at the same distance on both sides. They follow the notch's edges as it springs wider for media, never draw pills (plugins and the tray drop theirs there), and fade out while the notch is open or widened. Picking a module for one of the four side spots in Settings -> Notch moves it there from the others. Caffeine and Night Light are now bar modules too; Night Light polls its state every 30 s while only the bar watches it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3f0e31b116
commit
bc197339fa
12 files changed
+169
-13
No files matched your search
@@ -21,7 +21,9 @@ Singleton {
|
||||
clock: Qt.resolvedUrl("../bar/modules/ClockModule.qml"),
|
||||
tray: Qt.resolvedUrl("../bar/modules/TrayModule.qml"),
|
||||
system: Qt.resolvedUrl("../bar/modules/SystemModule.qml"),
|
||||
volume: Qt.resolvedUrl("../bar/modules/VolumeModule.qml")
|
||||
volume: Qt.resolvedUrl("../bar/modules/VolumeModule.qml"),
|
||||
caffeine: Qt.resolvedUrl("../bar/modules/CaffeineModule.qml"),
|
||||
nightLight: Qt.resolvedUrl("../bar/modules/NightLightModule.qml")
|
||||
})
|
||||
// Installed plugin bar widgets are modules named "plugin:<id>".
|
||||
function isPlugin(id) { return String(id).startsWith("plugin:"); }
|
||||
@@ -33,7 +35,7 @@ Singleton {
|
||||
activeWindow: "Windows", cava: "Visualizer", clock: "Clock", cpu: "CPU", cpuTemperature: "CPU temp",
|
||||
gpu: "GPU", gpuTemperature: "GPU temp", networkThroughput: "Network", nowPlaying: "Now playing",
|
||||
ram: "Memory", settings: "Settings", storage: "Storage", system: "System", tray: "Tray",
|
||||
volume: "Volume", workspaces: "Workspaces"
|
||||
volume: "Volume", workspaces: "Workspaces", caffeine: "Caffeine", nightLight: "Night Light"
|
||||
})
|
||||
function title(id) { return isPlugin(id) ? PluginService.title(String(id).slice(7)) : titles[id] || id; }
|
||||
// Per-module options edited from the cog on each card in Settings → Bar.
|
||||
|
||||
Reference in new issue
Block a user