Qt-Scaling: first cleanup pass

This commit is contained in:
ItsLemmy
2025-10-12 08:23:24 -04:00
parent d5d654e010
commit f4b27380c3
135 changed files with 1562 additions and 1811 deletions
+8 -9
View File
@@ -14,7 +14,6 @@ import qs.Widgets
NBox {
id: root
property real scaling: 1.0
property string uptimeText: "--"
RowLayout {
@@ -22,21 +21,21 @@ NBox {
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.margins: Style.marginM * scaling
spacing: Style.marginM * scaling
anchors.margins: Style.marginM
spacing: Style.marginM
NImageCircled {
width: Style.baseWidgetSize * 1.25 * scaling
height: Style.baseWidgetSize * 1.25 * scaling
width: Style.baseWidgetSize * 1.25
height: Style.baseWidgetSize * 1.25
imagePath: Settings.data.general.avatarImage
fallbackIcon: "person"
borderColor: Color.mPrimary
borderWidth: Math.max(1, Style.borderM * scaling)
borderWidth: Math.max(1, Style.borderM)
}
ColumnLayout {
Layout.fillWidth: true
spacing: Style.marginXXS * scaling
spacing: Style.marginXXS
NText {
text: Quickshell.env("USER") || "user"
font.weight: Style.fontWeightBold
@@ -46,13 +45,13 @@ NBox {
text: I18n.tr("system.uptime", {
"uptime": uptimeText
})
pointSize: Style.fontSizeS * scaling
pointSize: Style.fontSizeS
color: Color.mOnSurfaceVariant
}
}
RowLayout {
spacing: Style.marginS * scaling
spacing: Style.marginS
Layout.alignment: Qt.AlignRight | Qt.AlignVCenter
Item {
Layout.fillWidth: true