make NSpinBox border width not hardcoded

This commit is contained in:
Never Gude 2025-09-06 22:00:38 +02:00
parent b03f877c27
commit 1311192235

View file

@ -44,7 +44,7 @@ RowLayout {
radius: height * 0.5 // Fully rounded like toggle
color: Color.mSurfaceVariant
border.color: root.hovering ? Color.mPrimary : Color.mOutline
border.width: 1
border.width: Math.max(1, Style.borderS * scaling)
Behavior on border.color {
ColorAnimation {