mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-05 03:30:03 +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
|
||||||
|
|||||||
@@ -626,10 +626,10 @@ Loader {
|
|||||||
spacing: 6 * scaling
|
spacing: 6 * scaling
|
||||||
visible: passwordInput.text.length > 0
|
visible: passwordInput.text.length > 0
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
model: passwordInput.text.length
|
model: passwordInput.text.length
|
||||||
|
|
||||||
NIcon {
|
NIcon {
|
||||||
icon: "circle-filled"
|
icon: "circle-filled"
|
||||||
pointSize: Style.fontSizeS * scaling
|
pointSize: Style.fontSizeS * scaling
|
||||||
|
|||||||
Reference in New Issue
Block a user