ControlCenter: new layout with all shortcuts on top for quicker access.

This commit is contained in:
ItsLemmy
2025-10-06 23:27:08 -04:00
parent 7989bcf93b
commit 6ae8db3068
11 changed files with 380 additions and 295 deletions
+8 -28
View File
@@ -11,7 +11,7 @@ NPanel {
id: root
preferredWidth: 460
preferredHeight: 734
preferredHeight: 688
panelKeyboardFocus: true
// Positioning
@@ -36,21 +36,22 @@ NPanel {
width: parent.width - (2 * content.cardSpacing)
spacing: content.cardSpacing
// Cards (consistent inter-card spacing via ColumnLayout spacing)
ProfileCard {
// Top Card: profile + utilities
TopCard {
Layout.fillWidth: true
Layout.preferredHeight: Math.max(64 * scaling)
Layout.preferredHeight: Math.max(124 * scaling)
}
// Weather
WeatherCard {
Layout.fillWidth: true
Layout.preferredHeight: Math.max(220 * scaling)
Layout.preferredHeight: Math.max(196 * scaling)
}
// Middle section: media + stats column
// Media + stats column
RowLayout {
Layout.fillWidth: true
Layout.preferredHeight: Math.max(310 * scaling)
Layout.preferredHeight: Math.max(304 * scaling)
spacing: content.cardSpacing
// Media card
@@ -65,27 +66,6 @@ NPanel {
Layout.fillHeight: true
}
}
// Bottom actions (two grouped rows of round buttons)
RowLayout {
Layout.fillWidth: true
Layout.preferredHeight: Math.max(60 * scaling)
spacing: content.cardSpacing
// Power Profiles switcher
PowerProfilesCard {
Layout.fillWidth: true
Layout.fillHeight: true
spacing: content.cardSpacing
}
// Utilities buttons
UtilitiesCard {
Layout.fillWidth: true
Layout.fillHeight: true
spacing: content.cardSpacing
}
}
}
}
}