Skip to content

Commit

Permalink
More declarative visual bell
Browse files Browse the repository at this point in the history
  • Loading branch information
pvuorela committed Jun 8, 2016
1 parent 7617b68 commit 00c1c2b
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions qml/Main.qml
Expand Up @@ -110,7 +110,7 @@ Item {

anchors.fill: parent
objectName: "window"
color: bgcolor
color: bellTimer.running ? "#ffffff" : bgcolor

NotifyWin {
id: aboutDialog
Expand Down Expand Up @@ -329,16 +329,11 @@ Item {
id: bellTimer

interval: 80
onTriggered: {
window.color = window.bgcolor;
}
}

Connections {
target: util
onVisualBell: {
window.visualBell();
}
onVisualBell: bellTimer.start()
onGestureNotify: {
textNotify.text = msg;
textNotifyAnim.enabled = false;
Expand Down Expand Up @@ -475,12 +470,6 @@ Item {
errorDialog.state = "visible"
}

function visualBell()
{
bellTimer.start();
window.color = "#ffffff"
}

function setOrientationLockMode(stringMode)
{
util.setSettingsValue("ui/orientationLockMode", stringMode);
Expand Down

0 comments on commit 00c1c2b

Please sign in to comment.