More conversion of Row/Column to Layout

This commit is contained in:
ItsLemmy
2025-09-28 20:49:57 -04:00
parent 7f3842ddbf
commit b2688e9100
4 changed files with 11 additions and 12 deletions
+2 -2
View File
@@ -239,7 +239,7 @@ Item {
property real scrollX: 0
x: scrollX
Row {
RowLayout {
spacing: 50 * scaling // Gap between text copies
NText {
@@ -358,4 +358,4 @@ Item {
}
}
}
}
}
+2 -2
View File
@@ -269,7 +269,7 @@ Item {
property real scrollX: 0
x: scrollX
Row {
RowLayout {
spacing: 50 * scaling // Gap between text copies
NText {
@@ -385,4 +385,4 @@ Item {
}
}
}
}
}
+7 -7
View File
@@ -243,7 +243,7 @@ Variants {
Item {
anchors.fill: parent
Row {
RowLayout {
anchors.left: parent.left
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
@@ -254,7 +254,7 @@ Variants {
icon: root.getIcon()
color: root.getIconColor()
font.pointSize: Style.fontSizeXL * root.scaling
anchors.verticalCenter: parent.verticalCenter
Layout.alignment: Qt.AlignVCenter
Behavior on color {
ColorAnimation {
@@ -266,11 +266,11 @@ Variants {
// Progress bar with calculated width
Rectangle {
width: Math.round(220 * root.scaling)
Layout.preferredWidth: Math.round(220 * root.scaling)
height: panel.barThickness
radius: Math.round(panel.barThickness / 2)
color: Color.mSurfaceVariant
anchors.verticalCenter: parent.verticalCenter
Layout.alignment: Qt.AlignVCenter
Rectangle {
anchors.left: parent.left
@@ -301,10 +301,10 @@ Variants {
color: Color.mOnSurface
font.pointSize: Style.fontSizeS * root.scaling
font.family: Settings.data.ui.fontFixed
anchors.verticalCenter: parent.verticalCenter
Layout.alignment: Qt.AlignVCenter
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter
width: Math.round(50 * root.scaling)
Layout.preferredWidth: Math.round(50 * root.scaling)
}
}
}
@@ -541,4 +541,4 @@ Variants {
}
}
}
}
}
@@ -23,7 +23,6 @@ ColumnLayout {
settings.autoHide = valueAutoHide
settings.showIcon = valueShowIcon
settings.scrollingMode = valueScrollingMode
console.log(JSON.stringify(settings))
return settings
}