1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-07 14:05:38 -05:00

Settings globally, refactor some menus

This commit is contained in:
bbedward
2025-07-12 14:33:50 -04:00
parent f61ee93484
commit db05496dca
17 changed files with 1100 additions and 70 deletions

View File

@@ -28,7 +28,7 @@ Rectangle {
spacing: Theme.spacingS
Text {
text: Qt.formatTime(root.currentDate, "h:mm AP")
text: Prefs.use24HourClock ? Qt.formatTime(root.currentDate, "H:mm") : Qt.formatTime(root.currentDate, "h:mm AP")
font.pixelSize: Theme.fontSizeMedium
color: Theme.surfaceText
font.weight: Font.Medium

View File

@@ -36,7 +36,6 @@ PanelWindow {
property string weatherCode: ""
property int weatherTemp: 0
property int weatherTempF: 0
property bool useFahrenheit: false
property string osLogo: ""
property string networkStatus: "disconnected"
property string wifiSignalStrength: "good"
@@ -204,7 +203,6 @@ PanelWindow {
weatherCode: topBar.weatherCode
weatherTemp: topBar.weatherTemp
weatherTempF: topBar.weatherTempF
useFahrenheit: topBar.useFahrenheit
onClicked: {
if (topBar.shellRoot) {
@@ -312,11 +310,6 @@ PanelWindow {
}
}
}
// Power Button
PowerButton {
anchors.verticalCenter: parent.verticalCenter
}
}
}
}

View File

@@ -9,7 +9,6 @@ Rectangle {
property string weatherCode: ""
property int weatherTemp: 0
property int weatherTempF: 0
property bool useFahrenheit: false
signal clicked()
@@ -49,7 +48,7 @@ Rectangle {
}
Text {
text: (useFahrenheit ? weatherTempF : weatherTemp) + "°"
text: (Prefs.useFahrenheit ? weatherTempF : weatherTemp) + "°" + (Prefs.useFahrenheit ? "F" : "C")
font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceText
font.weight: Font.Medium