Panels: improvements

- slightly smaller and more homogenous sizing
- better look for battery panel (icons)
This commit is contained in:
ItsLemmy
2025-11-06 23:14:48 -05:00
parent df73582ae8
commit fc3db67def
9 changed files with 52 additions and 25 deletions
+5 -2
View File
@@ -12,13 +12,16 @@ import qs.Modules.MainScreen
SmartPanel {
id: root
preferredWidth: 420 * Style.uiScaleRatio
preferredWidth: Math.round(340 * Style.uiScaleRatio)
preferredHeight: 500 * Style.uiScaleRatio
panelContent: Rectangle {
color: Color.transparent
property real contentPreferredHeight: Math.min(preferredHeight, Math.max(240, mainColumn.implicitHeight + Style.marginL * 2))
ColumnLayout {
id: mainColumn
anchors.fill: parent
anchors.margins: Style.marginL
spacing: Style.marginM
@@ -92,7 +95,7 @@ SmartPanel {
NIcon {
icon: "bluetooth-off"
pointSize: 64
pointSize: 48
color: Color.mOnSurfaceVariant
Layout.alignment: Qt.AlignHCenter
}