mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-09 21:36:13 +00:00
Qt-Scaling: first cleanup pass
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user