Use ButtonFocus and ButtonHover in PC3 CheckIndicator

This commit is contained in:
Noah Davis 2020-08-20 19:40:46 -04:00
parent 7574eee24e
commit c31edc876b

View File

@ -17,6 +17,11 @@ PlasmaCore.FrameSvgItem {
implicitHeight: implicitWidth
opacity: control.enabled ? 1 : 0.6
Private.ButtonShadow {
anchors.fill: parent
showShadow: !control.pressed
}
PlasmaCore.SvgItem {
svg: PlasmaCore.Svg {
id: checkmarkSvg
@ -47,9 +52,14 @@ PlasmaCore.FrameSvgItem {
}
}
}
Private.ButtonShadow {
z: -1
Private.ButtonFocus {
anchors.fill: parent
state: control.activeFocus ? "focus" : (control.hovered ? "hover" : "shadow")
showFocus: control.activeFocus && !control.pressed
}
Private.ButtonHover {
anchors.fill: parent
showHover: control.hovered && !control.pressed
}
}