aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEgor Nemtsev <enemtsev@luxoft.com>2019-02-04 15:23:18 +0300
committerBramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>2019-02-05 13:51:52 +0000
commitaa58c9c3c02f59a0ffbdfe93ce23e4b75d5ba2fd (patch)
tree10bb499b32d0fdeeec49394d47b6afcc16f5176c
parentd2987582fd476bb77f722d7beceec20f6217c57f (diff)
[notification] fix handler losing touch/mouse interaction. change style
Change-Id: I1caff515617af529df5f83d93a09a5c901fe7eb5 Reviewed-by: Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com>
-rw-r--r--sysui/notification/NotificationHandle.qml49
1 files changed, 25 insertions, 24 deletions
diff --git a/sysui/notification/NotificationHandle.qml b/sysui/notification/NotificationHandle.qml
index 9332d8fc..86f04936 100644
--- a/sysui/notification/NotificationHandle.qml
+++ b/sysui/notification/NotificationHandle.qml
@@ -41,10 +41,9 @@ MouseArea {
id: root
width: Sizes.dp(300)
- height: Sizes.dp(30)
+ height: Sizes.dp(Config.statusBarHeight)
drag.axis: Drag.YAxis
- drag.filterChildren: true
property var dragTarget: undefined
property int prevDragY: 0
@@ -64,31 +63,33 @@ MouseArea {
return String.fromCharCode(0x2460 + num - 1);
}
- Rectangle {
- anchors.left: root.notificationCounterVisible ? parent.left : undefined
+ Row {
anchors.verticalCenter: parent.verticalCenter
- width: root.notificationCounterVisible ? Sizes.dp(100) : Sizes.dp(200)
- height: Sizes.dp(2)
- anchors.centerIn: root.notificationCounterVisible ? undefined : root
- color: Style.contrastColor
- }
+ anchors.horizontalCenter: parent.horizontalCenter
- Label {
- anchors.centerIn: root
- font.pixelSize: Sizes.fontSizeS
- text: circledNumber(root.notificationCount)
- opacity: root.notificationCounterVisible ? 1 : 0
- visible: opacity > 0
- }
+ Rectangle {
+ anchors.verticalCenter: parent.verticalCenter
+ width: root.notificationCounterVisible ? Sizes.dp(100) : Sizes.dp(200)
+ height: Sizes.dp(4)
+ color: Style.contrastColor
+ }
- Rectangle {
- anchors.right: parent.right
- anchors.verticalCenter: parent.verticalCenter
- width: Sizes.dp(100)
- height: Sizes.dp(2)
- opacity: root.notificationCounterVisible ? 1 : 0
- visible: opacity > 0
- color: Style.contrastColor
+ Label {
+ anchors.verticalCenter: parent.verticalCenter
+ font.pixelSize: Sizes.fontSizeM
+ text: circledNumber(root.notificationCount)
+ opacity: root.notificationCounterVisible ? 1 : 0
+ visible: opacity > 0
+ }
+
+ Rectangle {
+ anchors.verticalCenter: parent.verticalCenter
+ width: Sizes.dp(100)
+ height: Sizes.dp(4)
+ opacity: root.notificationCounterVisible ? 1 : 0
+ visible: opacity > 0
+ color: Style.contrastColor
+ }
}
Timer {