added option to disable animations for some modules
This commit is contained in:
@@ -118,9 +118,9 @@ Rectangle {
|
||||
font.bold: true
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
||||
opacity: (hoverHandler.hovered || calendarPopup.popupOpen) ? 1.0 : 0.0
|
||||
opacity: (hoverHandler.hovered || calendarPopup.popupOpen) && Cfg.Config.clockExtendEnabled ? 1.0 : 0.0
|
||||
visible: opacity > 0
|
||||
Layout.preferredWidth: (hoverHandler.hovered || calendarPopup.popupOpen) ? implicitWidth : 0
|
||||
Layout.preferredWidth: (hoverHandler.hovered || calendarPopup.popupOpen) && Cfg.Config.clockExtendEnabled ? implicitWidth : 0
|
||||
clip: true
|
||||
|
||||
Behavior on opacity { NumberAnimation { duration: 200 } }
|
||||
|
||||
@@ -317,7 +317,7 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
|
||||
HoverHandler { id: hoverHandler; cursorShape: Qt.PointingHandCursor; onHoveredChanged: if (hovered) bellRingAnim.start() }
|
||||
HoverHandler { id: hoverHandler; cursorShape: Qt.PointingHandCursor; onHoveredChanged: if (hovered && Cfg.Config.notificationShakeEnabled) bellRingAnim.start() }
|
||||
TapHandler {
|
||||
onTapped: {
|
||||
if (historyPopup.popupOpen) {
|
||||
@@ -414,7 +414,7 @@ Rectangle {
|
||||
|
||||
onNotification: function(notif) {
|
||||
notif.tracked = true
|
||||
bellRingAnim.start()
|
||||
if (Cfg.Config.notificationShakeEnabled) bellRingAnim.start()
|
||||
|
||||
const timeStr = new Date().toLocaleTimeString(Qt.locale(), "HH:mm")
|
||||
const toastId = notif.id + "_" + Date.now()
|
||||
|
||||
@@ -137,7 +137,7 @@ Rectangle {
|
||||
id: hoverHandler
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onHoveredChanged: {
|
||||
if (hovered) shakeAnim.restart()
|
||||
if (hovered && Cfg.Config.volumeShakeEnabled) shakeAnim.restart()
|
||||
}
|
||||
}
|
||||
TapHandler { onTapped: volumePopup.toggle() }
|
||||
|
||||
Reference in New Issue
Block a user