mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-02 18:42:04 +00:00
NCheckbox: add scaling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user