ColorScheme: reducing overall height by using a more compact NCollapsible

This commit is contained in:
ItsLemmy
2025-10-02 18:01:17 -04:00
parent 21c0b2f042
commit b525a53c8b
2 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -217,6 +217,7 @@ ColumnLayout {
ColorSchemeService.applyScheme(Settings.data.colorSchemes.predefinedScheme)
}
}
Layout.bottomMargin: Style.marginL * scaling
}
// Color Schemes Grid
@@ -415,7 +416,6 @@ ColumnLayout {
Layout.fillWidth: true
Layout.topMargin: Style.marginXL * scaling
Layout.bottomMargin: Style.marginXL * scaling
visible: Settings.data.colorSchemes.useWallpaperColors
}
// Matugen template toggles organized by category
+4 -5
View File
@@ -21,7 +21,7 @@ ColumnLayout {
Rectangle {
id: headerContainer
Layout.fillWidth: true
Layout.preferredHeight: headerContent.implicitHeight + (Style.marginL * scaling * 2)
Layout.preferredHeight: headerContent.implicitHeight + (Style.marginM * scaling * 2)
// Material 3 style background
color: root.expanded ? Color.mSecondary : Color.mSurfaceVariant
@@ -75,7 +75,7 @@ ColumnLayout {
RowLayout {
id: headerContent
anchors.fill: parent
anchors.margins: Style.marginL * scaling
anchors.margins: Style.marginM * scaling
spacing: Style.marginM * scaling
// Expand/collapse icon with rotation animation
@@ -102,17 +102,16 @@ ColumnLayout {
}
// Header text content - properly contained
ColumnLayout {
RowLayout {
Layout.fillWidth: true
Layout.alignment: Qt.AlignVCenter
spacing: Style.marginXXS * scaling
spacing: Style.marginL * scaling
NText {
text: root.label
pointSize: Style.fontSizeL * scaling
font.weight: Style.fontWeightSemiBold
color: root.expanded ? Color.mOnSecondary : Color.mOnSurface
Layout.fillWidth: true
wrapMode: Text.WordWrap
Behavior on color {