mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-28 14:07:47 -04:00
- 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
44 lines
1.3 KiB
QML
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);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|