1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-29 16:02:51 -05:00

better settings

This commit is contained in:
bbedward
2025-08-20 00:30:52 -04:00
parent b688bbfe83
commit 61c26f6c70
2 changed files with 32 additions and 25 deletions

View File

@@ -64,38 +64,41 @@ DankModal {
Column { Column {
anchors.fill: parent anchors.fill: parent
anchors.leftMargin: Theme.spacingM anchors.leftMargin: Theme.spacingL
anchors.rightMargin: Theme.spacingM anchors.rightMargin: Theme.spacingL
anchors.topMargin: Theme.spacingM anchors.topMargin: Theme.spacingM
anchors.bottomMargin: Theme.spacingXL anchors.bottomMargin: Theme.spacingXL
spacing: Theme.spacingS spacing: 0
// Header row with title and close button // Header row with title and close button
Row { Item {
width: parent.width width: parent.width
spacing: Theme.spacingM height: 35
DankIcon { Row {
name: "settings" anchors.left: parent.left
size: Theme.iconSize
color: Theme.primary
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} spacing: Theme.spacingM
StyledText { DankIcon {
text: "Settings" name: "settings"
font.pixelSize: Theme.fontSizeXLarge size: Theme.iconSize
color: Theme.surfaceText color: Theme.primary
font.weight: Font.Medium anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenter: parent.verticalCenter }
}
Item { StyledText {
width: parent.width - 175 text: "Settings"
height: 1 font.pixelSize: Theme.fontSizeXLarge
color: Theme.surfaceText
font.weight: Font.Medium
anchors.verticalCenter: parent.verticalCenter
}
} }
DankActionButton { DankActionButton {
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
circular: false circular: false
iconName: "close" iconName: "close"
iconSize: Theme.iconSize - 4 iconSize: Theme.iconSize - 4
@@ -108,7 +111,7 @@ DankModal {
// Main content with side navigation // Main content with side navigation
Row { Row {
width: parent.width width: parent.width
height: parent.height - 65 height: parent.height - 60
spacing: 0 spacing: 0
// Left sidebar navigation // Left sidebar navigation
@@ -117,7 +120,7 @@ DankModal {
property int currentIndex: 0 property int currentIndex: 0
width: 220 width: 270
height: parent.height height: parent.height
color: Theme.surfaceContainer color: Theme.surfaceContainer
radius: Theme.cornerRadius radius: Theme.cornerRadius
@@ -436,8 +439,8 @@ DankModal {
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
anchors.leftMargin: Theme.spacingM anchors.leftMargin: 0
anchors.rightMargin: Theme.spacingM anchors.rightMargin: Theme.spacingS
anchors.bottomMargin: Theme.spacingM anchors.bottomMargin: Theme.spacingM
anchors.topMargin: 0 anchors.topMargin: 0
color: "transparent" color: "transparent"
@@ -546,6 +549,11 @@ DankModal {
} }
} }
Item {
width: parent.width
height: 5
}
// Footer // Footer
Row { Row {
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter

View File

@@ -120,7 +120,6 @@ Singleton {
function fetchWeather() { function fetchWeather() {
// Only fetch if someone is consuming the data and weather is enabled // Only fetch if someone is consuming the data and weather is enabled
if (root.refCount === 0 || !SettingsData.weatherEnabled) { if (root.refCount === 0 || !SettingsData.weatherEnabled) {
return return
} }