fix(bt): better looking auto-connect checkbox

This commit is contained in:
Lemmy
2026-03-12 12:29:31 -04:00
parent 9d142fbaf3
commit 9cc017a899
2 changed files with 6 additions and 5 deletions
+4 -2
View File
@@ -13,9 +13,11 @@ RowLayout {
property bool hovering: false
property color activeColor: Color.mPrimary
property color activeOnColor: Color.mOnPrimary
property int baseSize: Style.baseWidgetSize * 0.7
property int baseSize: root.defaultSize
property real labelSize: Style.fontSizeL
readonly property int defaultSize: Style.baseWidgetSize * 0.7
signal toggled(bool checked)
signal entered
signal exited
@@ -41,7 +43,7 @@ RowLayout {
Layout.margins: Style.borderS
implicitWidth: Math.round(root.baseSize)
implicitHeight: Math.round(root.baseSize)
radius: Style.iRadiusXS
radius: Style.iRadiusXS * (root.baseSize / root.defaultSize)
color: root.checked ? root.activeColor : Color.mSurface
border.color: Color.mOutline
border.width: Style.borderS