1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -05:00

layout adjustments

This commit is contained in:
bbedward
2025-09-09 22:41:33 -04:00
parent 35ea621a17
commit 5bb489f3c4
2 changed files with 13 additions and 11 deletions

View File

@@ -8,7 +8,9 @@ Card {
id: root
Row {
anchors.centerIn: parent
anchors.left: parent.left
anchors.leftMargin: Theme.spacingL
anchors.verticalCenter: parent.verticalCenter
spacing: Theme.spacingL
Item {

View File

@@ -22,23 +22,23 @@ Item {
height: 180
}
// UserInfo - top middle (extend to weather)
UserInfoCard {
x: parent.width * 0.25 - Theme.spacingM
y: 0
width: SettingsData.weatherEnabled ? parent.width * 0.5 : parent.width * 0.75 + Theme.spacingM
height: 100
}
// Weather - top right (narrower)
// Weather - top middle-left (narrower)
WeatherOverviewCard {
x: SettingsData.weatherEnabled ? parent.width * 0.75 : 0
x: SettingsData.weatherEnabled ? parent.width * 0.25 - Theme.spacingM : 0
y: 0
width: SettingsData.weatherEnabled ? parent.width * 0.25 : 0
height: 100
visible: SettingsData.weatherEnabled
}
// UserInfo - top middle-right (extend when weather disabled)
UserInfoCard {
x: SettingsData.weatherEnabled ? parent.width * 0.5 : parent.width * 0.25 - Theme.spacingM
y: 0
width: SettingsData.weatherEnabled ? parent.width * 0.5 : parent.width * 0.75
height: 100
}
// SystemMonitor - middle left (narrow and shorter)
SystemMonitorCard {
x: 0