aboutsummaryrefslogtreecommitdiff
path: root/qml/Highlighter.qml
blob: 8d42054eedaf21e8ae3ab89076cc1af6576a3596 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import QtQuick 2.0

Item {
	function select()   { bar.opacity = 1         }
	function deselect() { bar.opacity = 0         }
	function focus()    { bar.color   = "#352F6A" }
	function unfocus()  { bar.color   = "#909636" }

	Rectangle {
		id: bar

		anchors.fill: parent

		opacity: 0
		color: "#909636"

		Behavior on opacity {
			NumberAnimation {
				duration: 300
				easing.type: Easing.OutCubic
			}
		}
	}
}