aboutsummaryrefslogtreecommitdiff
path: root/src/widget/augment/Highlighter.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget/augment/Highlighter.qml')
-rw-r--r--src/widget/augment/Highlighter.qml24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/widget/augment/Highlighter.qml b/src/widget/augment/Highlighter.qml
new file mode 100644
index 0000000..53f308c
--- /dev/null
+++ b/src/widget/augment/Highlighter.qml
@@ -0,0 +1,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
+ }
+ }
+ }
+}