small component patches + code cleanup
This commit is contained in:
@@ -9,7 +9,7 @@ ModuleChip {
|
||||
property var launcher: null
|
||||
|
||||
readonly property bool launcherActive: !!launcher && launcher.isOpen
|
||||
readonly property bool isHovered: hoverHandler.hovered
|
||||
readonly property bool isHovered: hovered
|
||||
|
||||
property real spinTarget: 0
|
||||
|
||||
@@ -26,16 +26,12 @@ ModuleChip {
|
||||
width: Cfg.Config.logoIconSize * 2 + 4
|
||||
height: parent.height
|
||||
|
||||
color: isHovered ? t.logoBgHover : t.logoBg
|
||||
radius: panelRadius
|
||||
|
||||
border.color: launcherActive ? t.logoBorderActive : t.logoBorder
|
||||
border.width: borderWidth
|
||||
|
||||
Behavior on color { ColorAnimation { duration: 250 } }
|
||||
Behavior on border.color { ColorAnimation { duration: 250 } }
|
||||
|
||||
HoverHandler { id: hoverHandler }
|
||||
chipColor: t.logoBg
|
||||
chipColorHovered: t.logoBgHover
|
||||
chipBorderColor: t.logoBorder
|
||||
chipBorderColorHovered: t.logoBorderActive
|
||||
popupOpen: launcherActive
|
||||
chipAnimDuration: 250
|
||||
|
||||
TapHandler {
|
||||
onTapped: {
|
||||
|
||||
Reference in New Issue
Block a user