updated configuration and launcher, added animations for modules
This commit is contained in:
@@ -26,6 +26,7 @@ Rectangle {
|
||||
width: 35
|
||||
height: 40
|
||||
radius: panelRadius
|
||||
clip: true
|
||||
|
||||
color: hoverHandler.hovered ? t.notifBgHover : t.notifBg
|
||||
border.color: root.doNotDisturb
|
||||
@@ -37,7 +38,7 @@ Rectangle {
|
||||
Behavior on border.color { ColorAnimation { duration: 150 } }
|
||||
Behavior on width { NumberAnimation { duration: 200; easing.type: Easing.OutCubic } }
|
||||
|
||||
HoverHandler { id: hoverHandler; cursorShape: Qt.PointingHandCursor }
|
||||
HoverHandler { id: hoverHandler; cursorShape: Qt.PointingHandCursor; onHoveredChanged: if (hovered) bellRingAnim.start() }
|
||||
TapHandler {
|
||||
onTapped: {
|
||||
if (historyPopup.popupOpen) {
|
||||
@@ -63,6 +64,18 @@ Rectangle {
|
||||
: (root.unreadCount > 0 ? t.notifIconActive : t.notifIcon)
|
||||
font.pixelSize: Cfg.Config.notifIconSize
|
||||
Behavior on color { ColorAnimation { duration: 150 } }
|
||||
|
||||
rotation: 0
|
||||
transformOrigin: Item.Top
|
||||
|
||||
SequentialAnimation {
|
||||
id: bellRingAnim
|
||||
NumberAnimation { target: bellIcon; property: "rotation"; to: -18; duration: 80; easing.type: Easing.OutQuad }
|
||||
NumberAnimation { target: bellIcon; property: "rotation"; to: 20; duration: 100; easing.type: Easing.OutQuad }
|
||||
NumberAnimation { target: bellIcon; property: "rotation"; to: -10; duration: 80; easing.type: Easing.OutQuad }
|
||||
NumberAnimation { target: bellIcon; property: "rotation"; to: 10; duration: 70; easing.type: Easing.OutQuad }
|
||||
NumberAnimation { target: bellIcon; property: "rotation"; to: 0; duration: 80; easing.type: Easing.OutCubic }
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
@@ -122,6 +135,7 @@ Rectangle {
|
||||
|
||||
onNotification: function(notif) {
|
||||
notif.tracked = true
|
||||
bellRingAnim.start()
|
||||
var timeStr = new Date().toLocaleTimeString(Qt.locale(), "HH:mm")
|
||||
var toastId = notif.id + "_" + Date.now()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user