1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

feat: Night Mode Automation

This commit is contained in:
purian23
2025-08-28 21:37:05 -04:00
parent 48a78c39e2
commit 324d6c13b4
5 changed files with 585 additions and 56 deletions

View File

@@ -921,6 +921,40 @@ Item {
anchors.verticalCenter: parent.verticalCenter
}
StyledRect {
width: 60
height: 32
radius: Theme.cornerRadius
color: Theme.surfaceVariant
border.color: Theme.outline
border.width: 1
StyledText {
text: "Clear"
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText
anchors.centerIn: parent
}
StateLayer {
stateColor: Theme.error
cornerRadius: parent.radius
onClicked: {
console.log("PersonalizationTab: Clearing location coordinates via UI")
SessionData.setLatitude(0.0);
SessionData.setLongitude(0.0);
latitudeField.text = "";
longitudeField.text = "";
// Also call the service clear function
if (typeof globalThis !== 'undefined' && globalThis.clearNightModeLocation) {
globalThis.clearNightModeLocation();
}
}
}
anchors.verticalCenter: parent.verticalCenter
}
}
}