Fix SettingCheckbox so it displays correctly

This commit is contained in:
Arjen Hiemstra 2016-05-11 17:10:11 +02:00
parent 2b479e5651
commit d4b5cd519b

View file

@ -12,9 +12,10 @@ SettingItem
{ {
id: base id: base
MouseArea contents: MouseArea
{ {
id: control id: control
anchors.fill: parent
property bool checked: property bool checked:
{ {
@ -48,7 +49,7 @@ SettingItem
{ {
return UM.Theme.getColor("setting_control_disabled") return UM.Theme.getColor("setting_control_disabled")
} }
if(base.containsMouse || base.activeFocus) if(control.containsMouse || control.activeFocus)
{ {
return UM.Theme.getColor("setting_control_highlight") return UM.Theme.getColor("setting_control_highlight")
} }