added option to disable animations for some modules

This commit is contained in:
SomeElse
2026-05-14 20:32:19 +00:00
parent e3bfa6661f
commit c8450b44cb
4 changed files with 14 additions and 9 deletions

View File

@@ -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 } }