small component patches + code cleanup
This commit is contained in:
@@ -9,22 +9,14 @@ ModuleChip {
|
||||
id: root
|
||||
|
||||
width: statsLayout.implicitWidth + 20
|
||||
height: Cfg.Config.moduleHeight
|
||||
color: t.statsBg
|
||||
radius: panelRadius
|
||||
border.color: t.statsBorder
|
||||
border.width: borderWidth
|
||||
chipColor: t.statsBg
|
||||
chipBorderColor: t.statsBorder
|
||||
|
||||
Behavior on width {
|
||||
NumberAnimation { duration: 250; easing.type: Easing.OutCubic }
|
||||
}
|
||||
|
||||
property bool expanded: Cfg.Config.statsStartExpanded
|
||||
property bool hovered: false
|
||||
|
||||
HoverHandler {
|
||||
onHoveredChanged: root.hovered = hovered
|
||||
}
|
||||
|
||||
TapHandler {
|
||||
onTapped: {
|
||||
|
||||
Reference in New Issue
Block a user