mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-05 19:45:51 +00:00
TopCard: more layout changes
This commit is contained in:
@@ -97,17 +97,11 @@ NBox {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NDivider {
|
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.topMargin: Style.marginS * scaling
|
|
||||||
Layout.bottomMargin: Style.marginXS * scaling
|
|
||||||
}
|
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: utilitiesRow
|
id: utilitiesRow
|
||||||
spacing: Style.marginM * scaling
|
|
||||||
Layout.alignment: Qt.AlignVCenter
|
Layout.alignment: Qt.AlignVCenter
|
||||||
Layout.topMargin: -(Style.marginXS * scaling)
|
Layout.topMargin: Style.marginM * scaling
|
||||||
|
Layout.bottomMargin: Style.marginM * scaling
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
// Left group - Media & Display
|
// Left group - Media & Display
|
||||||
@@ -115,7 +109,7 @@ NBox {
|
|||||||
color: Color.mSurface
|
color: Color.mSurface
|
||||||
radius: Style.radiusM * scaling
|
radius: Style.radiusM * scaling
|
||||||
Layout.preferredHeight: Style.baseWidgetSize * 1.2 * scaling
|
Layout.preferredHeight: Style.baseWidgetSize * 1.2 * scaling
|
||||||
Layout.fillWidth: true
|
Layout.preferredWidth: childrenRect.width + (Style.marginS * scaling * 2)
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
@@ -177,12 +171,17 @@ NBox {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Spacer
|
||||||
|
Item {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
|
|
||||||
// Center group - Network & Caffeine
|
// Center group - Network & Caffeine
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: Color.mSurface
|
color: Color.mSurface
|
||||||
radius: Style.radiusM * scaling
|
radius: Style.radiusM * scaling
|
||||||
Layout.preferredHeight: Style.baseWidgetSize * 1.2 * scaling
|
Layout.preferredHeight: Style.baseWidgetSize * 1.2 * scaling
|
||||||
Layout.fillWidth: true
|
Layout.preferredWidth: childrenRect.width + (Style.marginS * scaling * 2)
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
@@ -240,12 +239,17 @@ NBox {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Spacer
|
||||||
|
Item {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
}
|
||||||
|
|
||||||
// Right group - Power Profiles
|
// Right group - Power Profiles
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: Color.mSurface
|
color: Color.mSurface
|
||||||
radius: Style.radiusM * scaling
|
radius: Style.radiusM * scaling
|
||||||
Layout.preferredHeight: Style.baseWidgetSize * 1.2 * scaling
|
Layout.preferredHeight: Style.baseWidgetSize * 1.2 * scaling
|
||||||
Layout.fillWidth: true
|
Layout.preferredWidth: childrenRect.width + (Style.marginS * scaling * 2)
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|||||||
Reference in New Issue
Block a user