dcontent: some tweaks

This commit is contained in:
2 * r + 2 * t 2025-07-26 15:45:19 +10:00
parent 449ca9dbda
commit bc7919263d
2 changed files with 10 additions and 16 deletions

View file

@ -20,17 +20,13 @@ Item {
implicitWidth: implicitHeight * Config.dcontent.sizes.ratio implicitWidth: implicitHeight * Config.dcontent.sizes.ratio
implicitHeight: screen.height * Config.dcontent.sizes.heightMult implicitHeight: screen.height * Config.dcontent.sizes.heightMult
GridLayout { RowLayout {
anchors.fill: parent anchors.fill: parent
rows: 2 spacing: 0
columns: 2
rowSpacing: 0
columnSpacing: 0
StyledRect { StyledRect {
Layout.fillHeight: true Layout.fillHeight: true
Layout.rowSpan: 2
topLeftRadius: Appearance.rounding.normal topLeftRadius: Appearance.rounding.normal
bottomLeftRadius: Appearance.rounding.normal bottomLeftRadius: Appearance.rounding.normal
@ -44,13 +40,6 @@ Item {
} }
} }
StyledRect {
Layout.fillWidth: true
implicitHeight: 50
topRightRadius: Appearance.rounding.normal
color: Colours.palette.m3surfaceContainer
}
Item { Item {
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
@ -66,6 +55,7 @@ Item {
StyledRect { StyledRect {
anchors.fill: parent anchors.fill: parent
color: Colours.palette.m3surfaceContainer color: Colours.palette.m3surfaceContainer
topRightRadius: Appearance.rounding.normal
bottomRightRadius: Appearance.rounding.normal bottomRightRadius: Appearance.rounding.normal
layer.enabled: true layer.enabled: true
@ -88,7 +78,6 @@ Item {
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
anchors.margins: Appearance.padding.normal anchors.margins: Appearance.padding.normal
anchors.topMargin: 0
anchors.leftMargin: 0 anchors.leftMargin: 0
radius: Appearance.rounding.small radius: Appearance.rounding.small
} }

View file

@ -26,7 +26,7 @@ Item {
when: root.expanded when: root.expanded
PropertyChanges { PropertyChanges {
layout.spacing: Appearance.spacing.small / 2 layout.spacing: Appearance.spacing.small
menuIcon.opacity: 0 menuIcon.opacity: 0
menuIconExpanded.opacity: 1 menuIconExpanded.opacity: 1
menuIcon.rotation: 180 menuIcon.rotation: 180
@ -50,7 +50,7 @@ Item {
Item { Item {
Layout.fillWidth: true Layout.fillWidth: true
Layout.bottomMargin: Appearance.spacing.small / 2 Layout.bottomMargin: Appearance.spacing.large * 2
implicitHeight: Math.max(menuIcon.implicitHeight, menuIconExpanded.implicitHeight) + Appearance.padding.normal * 2 implicitHeight: Math.max(menuIcon.implicitHeight, menuIconExpanded.implicitHeight) + Appearance.padding.normal * 2
StateLayer { StateLayer {
@ -82,6 +82,11 @@ Item {
} }
} }
NavItem {
icon: "network_manage"
label: "network"
}
NavItem { NavItem {
icon: "settings_bluetooth" icon: "settings_bluetooth"
label: "bluetooth" label: "bluetooth"