1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-15 10:12:07 -04: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,15 +64,20 @@ 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
height: 35
Row {
anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.spacingM spacing: Theme.spacingM
DankIcon { DankIcon {
@@ -89,13 +94,11 @@ DankModal {
font.weight: Font.Medium font.weight: Font.Medium
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
} }
Item {
width: parent.width - 175
height: 1
} }
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
} }