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

@@ -6,7 +6,7 @@ import "themes"
QtObject {
id: root
readonly property var theme: Tropicalnight
readonly property var theme: Goldencity
// ────────────────────────────────────────────────────────────────────────
// Widgets
@@ -43,7 +43,10 @@ QtObject {
property int popupRadius: 18
property int popupBorderWidth: 1
property int popupAnimDuration: 500
// ── Clock Module ─────────────────────────────────────────────────────────
property bool clockExtendEnabled: true // seconds extension on hover for clock
// ── Timezone (IANA name, e.g. "America/New_York", "Europe/London")g ──────────
// Leave empty to use the system timezone.
property string timezone: "America/New_York"
@@ -68,6 +71,7 @@ QtObject {
property bool statsStartExpanded: false
// ── Volume Module ─────────────────────────────────────────────────────────
property bool volumeShakeEnabled: true // rotation shake for volume chip
property int volumeIconSize: 20
property int volumeSliderHeight: 2
property int volumeHandleSize: 20
@@ -75,6 +79,7 @@ QtObject {
property int volumeOutputMax: 170
property int volumeInputMax: 200
// ────────────────────────────────────────────────────────────────────────
// FRAME
// ────────────────────────────────────────────────────────────────────────
@@ -83,10 +88,10 @@ QtObject {
// ────────────────────────────────────────────────────────────────────────
// NOTIFICATIONS
// ────────────────────────────────────────────────────────────────────────
property bool notificationShakeEnabled: true // bell ringing shake for notifications
property string notificationPosition: "topright"
property int notificationHistorySize: 50
// ── Toast timeouts (milliseconds) ─────────────────────────────────────────
property int notifTimeoutLow: 3500
property int notifTimeoutNormal: 5000