Files
DankMaterialShell/quickshell/Modules/ControlCenter/Widgets/NightModeTile.qml
T
purian23 19abc7dc96 feat(island): state pulses, mic, privacy & duo status glyph activities
- caps lock, power profile, idle inhibitor and charging pulse in the island
- microphone mute and volume as a level transient
- privacy slot while mic, camera or screen share is in use
- duo battery style: arc around the network glyph with signal dots
2026-10-03 15:28:06 -04:00

44 lines
1.3 KiB
QML

import QtQuick
import qs.Common
import qs.Services
import qs.Widgets
CcTile {
id: root
iconName: NightModeService.nightModeEnabled ? "nightlight" : "dark_mode"
title: I18n.tr("Night mode")
active: NightModeService.nightModeEnabled || false
available: NightModeService.automationAvailable
onClicked: NightModeService.toggleNightMode()
expandedContent: Component {
Column {
spacing: Theme.spacingS
StyledText {
width: parent.width
text: I18n.tr("Color Temperature", "Color Temperature")
color: root.contentColor
font.pixelSize: Theme.fontSizeMedium
elide: Text.ElideRight
}
DankSlider {
width: parent.width
minimum: 1000
maximum: 6000
step: 100
unit: "K"
Accessible.name: I18n.tr("Color Temperature", "Color Temperature")
value: SessionData.nightModeTemperature
onSliderValueChanged: newValue => {
SessionData.setNightModeTemperature(newValue);
if (SessionData.nightModeHighTemperature < newValue)
SessionData.setNightModeHighTemperature(newValue);
}
}
}
}
}