blob: 53f308cffde1839e021571a8e662f30cc5318aa5 (
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 = settings.highlighter.focusColor }
function unfocus() { bar.color = settings.highlighter.defaultColor }
Rectangle {
id: bar
anchors.fill: parent
opacity: 0
color: settings.highlighter.defaultColor
Behavior on opacity {
NumberAnimation {
duration: 300
easing.type: Easing.OutCubic
}
}
}
}
|