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>
14 lines
372 B
QML
14 lines
372 B
QML
import QtQuick
|
|
import "../../components"
|
|
import "../../services"
|
|
// Caffeine on the bar: keeps the system awake while lit.
|
|
BarToggle {
|
|
property var entry: ({})
|
|
objectName: "caffeineModule"
|
|
tip: "Caffeine"
|
|
glyph: CaffeineService.active ? "" : ""
|
|
on: CaffeineService.active
|
|
bare: entry.bare === true
|
|
onClicked: CaffeineService.toggle()
|
|
}
|