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>
21 lines
726 B
QML
21 lines
726 B
QML
import QtQuick
|
|
import "../../components"
|
|
import "../../services"
|
|
// Night Light on the bar. Shows the provider's acknowledged state; while
|
|
// only the bar watches, the state is polled slowly.
|
|
BarToggle {
|
|
property var entry: ({})
|
|
readonly property var info: SystemService.state.nightLight || ({
|
|
available: false
|
|
})
|
|
objectName: "nightLightModule"
|
|
tip: "Night Light"
|
|
glyph: ""
|
|
on: !!info.enabled
|
|
bare: entry.bare === true
|
|
enabled: !!info.available && !SystemService.acting
|
|
onClicked: SystemService.action("nightLight", !info.enabled, false)
|
|
Component.onCompleted: SystemService.nightLightWatchers++
|
|
Component.onDestruction: SystemService.nightLightWatchers--
|
|
}
|