From e38935424d8ef6da1abd66f9b5cfe138f5ea619d Mon Sep 17 00:00:00 2001 From: elros34 Date: Tue, 12 Jun 2018 14:30:01 +0200 Subject: [PATCH] Use animated and 50% transparent visual bell Taken from literm --- qml/Main.qml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/qml/Main.qml b/qml/Main.qml index fe0ee90..15107d6 100644 --- a/qml/Main.qml +++ b/qml/Main.qml @@ -87,7 +87,20 @@ Item { property int scrollBarWidth: 6*window.pixelRatio anchors.fill: parent - color: bellTimer.running ? "#ffffff" : bgcolor + color: bgcolor + + Rectangle { + id: bellTimerRect + visible: opacity > 0 + opacity: bellTimer.running ? 0.5 : 0.0 + anchors.fill: parent + color: "#ffffff" + Behavior on opacity { + NumberAnimation { + duration: bellTimer.interval + } + } + } Lineview { id: lineView @@ -236,8 +249,7 @@ Item { Timer { id: bellTimer - - interval: 80 + interval: 120 } Connections {