-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add StatusBarAlarmIndicator to the StatusBar
Part of #1492
- Loading branch information
1 parent
e1f6245
commit 81e6171
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -265,4 +265,6 @@ Rectangle { | |
onClicked: Global.screenBlanker.setDisplayOff() | ||
} | ||
} | ||
|
||
StatusBarAlarmIndicator { } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
** Copyright (C) 2023 Victron Energy B.V. | ||
** See LICENSE.txt for license information. | ||
*/ | ||
|
||
import QtQuick | ||
import Victron.VenusOS | ||
|
||
Rectangle { | ||
|
||
width: parent.width | ||
height: 5 | ||
color: Theme.color_critical | ||
opacity: Global.notifications.alarm ? 1 : 0 | ||
|
||
Behavior on opacity { | ||
OpacityAnimator { | ||
duration: Theme.animation_page_fade_duration | ||
} | ||
} | ||
} |