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
+6 -6
View File
@@ -35,12 +35,12 @@ RowLayout {
Rectangle {
id: box
implicitWidth: Math.round(root.baseSize * scaling)
implicitHeight: Math.round(root.baseSize * scaling)
radius: Style.radiusXS * scaling
implicitWidth: Math.round(root.baseSize)
implicitHeight: Math.round(root.baseSize)
radius: Style.radiusXS
color: root.checked ? root.activeColor : Color.mSurface
border.color: Color.mOutline
border.width: Math.max(1, Style.borderS * scaling)
border.width: Math.max(1, Style.borderS)
Behavior on color {
ColorAnimation {
@@ -57,10 +57,10 @@ RowLayout {
NIcon {
visible: root.checked
anchors.centerIn: parent
anchors.horizontalCenterOffset: -1 * scaling
anchors.horizontalCenterOffset: -1
icon: "check"
color: root.activeOnColor
pointSize: Math.max(Style.fontSizeXS, root.baseSize * 0.5) * scaling
pointSize: Math.max(Style.fontSizeXS, root.baseSize * 0.5)
font.weight: Style.fontWeightBold
}