More UI tweaking.

This commit is contained in:
Black Hat
2018-09-10 16:22:45 +08:00
parent f66e62d499
commit 17aa5cbf16
4 changed files with 34 additions and 17 deletions

View File

@@ -8,12 +8,13 @@ import "qrc:/js/util.js" as Util
ItemDelegate {
property var page
readonly property bool selected: stackView.currentItem === page
property color highlightColor: Material.accent
Rectangle {
width: selected ? 4 : 0
height: parent.height
color: Material.accent
color: highlightColor
Behavior on width {
PropertyAnimation { easing.type: Easing.InOutCubic; duration: 200 }