aboutsummaryrefslogtreecommitdiffstats
path: root/sysui
diff options
context:
space:
mode:
authorGrigorii Zimin <gzimin@luxoft.com>2020-03-02 07:48:40 +0300
committerGrigorii Zimin <gzimin@luxoft.com>2020-03-04 10:58:02 +0000
commit225dcefc572c779ab9580227a24f3234ef415bed (patch)
tree14b1a47f508019f523e234a9c3444fb7e654f31c /sysui
parenta107926dee46d1e944c3c28cb6071b24b3c4d600 (diff)
[notifications] add opacity=0 for "closed" state
this patch 'hides' panel when it is closed, it's important when window size is not correspond to the default aspect ratio Change-Id: I6151868990759f79842fc42b88a91ad9c1717719 Reviewed-by: Egor Nemtsev <enemtsev@luxoft.com>
Diffstat (limited to 'sysui')
-rw-r--r--sysui/notification/NotificationCenter.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysui/notification/NotificationCenter.qml b/sysui/notification/NotificationCenter.qml
index 1dcb8c96..34bd0399 100644
--- a/sysui/notification/NotificationCenter.qml
+++ b/sysui/notification/NotificationCenter.qml
@@ -94,6 +94,14 @@ Item {
visible: false
}
PropertyChanges {
+ target: notificationCenterBg
+ opacity: 0.0
+ }
+ PropertyChanges {
+ target: notificationLabelOnBG
+ opacity: 0.0
+ }
+ PropertyChanges {
target: notificationListItem
opacity: 0.0
visible: false
@@ -130,6 +138,7 @@ Item {
id: notificationCenterBg
anchors.fill: parent
color: Style.offMainColor
+ Behavior on opacity { DefaultNumberAnimation { } }
}
Timer {
@@ -200,6 +209,7 @@ Item {
}
Label {
+ id: notificationLabelOnBG
anchors.centerIn: parent
visible: opacity > 0.0
opacity: (root.notificationModel.count === 0) ? 1.0 : 0.0