-
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.
Notifications: Don't display 'acknowledge all' after clicking 'silenc…
…e alarm' Fixes #1348
- Loading branch information
1 parent
66ed44b
commit a25aaab
Showing
3 changed files
with
56 additions
and
24 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
** Copyright (C) 2024 Victron Energy B.V. | ||
** See LICENSE.txt for license information. | ||
*/ | ||
|
||
import QtQuick | ||
import Victron.VenusOS | ||
|
||
Button { | ||
id: root | ||
|
||
property alias contentItemChildren: row.children | ||
|
||
anchors { | ||
right: parent ? parent.rightSideRow.right : undefined | ||
verticalCenter: parent.verticalCenter | ||
} | ||
parent: !!Global.pageManager ? Global.pageManager.statusBar : undefined | ||
leftPadding: Theme.geometry_silenceAlarmButton_horizontalPadding | ||
rightPadding: Theme.geometry_silenceAlarmButton_horizontalPadding | ||
height: Theme.geometry_notificationsPage_snoozeButton_height | ||
radius: Theme.geometry_button_radius | ||
opacity: enabled ? 1 : 0 | ||
Behavior on opacity { OpacityAnimator { duration: Theme.animation_toastNotification_fade_duration } } | ||
|
||
contentItem: Row { | ||
id: row | ||
|
||
anchors.verticalCenter: parent.verticalCenter | ||
spacing: Theme.geometry_notificationsPage_snoozeButton_spacing | ||
} | ||
} |
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