NCheckbox: add scaling

This commit is contained in:
Ly-sec 2025-08-28 14:26:13 +02:00
parent f10280c8bb
commit f932d580af

View file

@ -12,7 +12,7 @@ RowLayout {
property bool checked: false
property bool hovering: false
// Smaller default footprint than NToggle
property int baseSize: Math.max(Style.baseWidgetSize * 0.8, 14)
property int baseSize: Math.max(Style.baseWidgetSize * 0.8, Math.round(14 / scaling))
signal toggled(bool checked)
signal entered