Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use animated and 50% transparent visual bell
Taken from literm
  • Loading branch information
elros34 committed Aug 23, 2018
1 parent 8769f81 commit e389354
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions qml/Main.qml
Expand Up @@ -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
Expand Down Expand Up @@ -236,8 +249,7 @@ Item {

Timer {
id: bellTimer

interval: 80
interval: 120
}

Connections {
Expand Down

0 comments on commit e389354

Please sign in to comment.