diff options
Diffstat (limited to 'src/widget/Highlighter.qml')
-rw-r--r-- | src/widget/Highlighter.qml | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/widget/Highlighter.qml b/src/widget/Highlighter.qml index b2db7f6..53f308c 100644 --- a/src/widget/Highlighter.qml +++ b/src/widget/Highlighter.qml @@ -1,18 +1,10 @@ import QtQuick 2.0 -import Qt.labs.settings 1.0 Item { - property Settings settings : Settings { - category: "highlighter" - - property string defaultColor : "#909636" - property string focusColor : "#352F6A" - } - - function select() { bar.opacity = 1 } - function deselect() { bar.opacity = 0 } - function focus() { bar.color = settings.focusColor } - function unfocus() { bar.color = settings.defaultColor } + 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 @@ -20,7 +12,7 @@ Item { anchors.fill: parent opacity: 0 - color: settings.defaultColor + color: settings.highlighter.defaultColor Behavior on opacity { NumberAnimation { |