From bd246247ac269e5d8bce565672c8054e4bdd6647 Mon Sep 17 00:00:00 2001 From: Zacharias-Brohn Date: Wed, 25 Feb 2026 14:29:54 +0100 Subject: [PATCH] .qmlformat.ini --- .qmlformat.ini | 10 ++++++++++ Components/MarqueeText.qml | 8 +++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .qmlformat.ini diff --git a/.qmlformat.ini b/.qmlformat.ini new file mode 100644 index 0000000..1fe488c --- /dev/null +++ b/.qmlformat.ini @@ -0,0 +1,10 @@ +[General] +FunctionsSpacing=true +IndentWidth=4 +MaxColumnWidth=80 +NewlineType=native +NormalizeOrder=true +ObjectsSpacing=true +SemicolonRule=always +SortImports=false +UseTabs=true diff --git a/Components/MarqueeText.qml b/Components/MarqueeText.qml index 02d123d..0035767 100644 --- a/Components/MarqueeText.qml +++ b/Components/MarqueeText.qml @@ -12,13 +12,15 @@ Item { property int gap: 40 property alias horizontalAlignment: elideText.horizontalAlignment property bool leftFadeEnabled: false - property real leftFadeStrength: overflowing && leftFadeEnabled ? fadeStrengthMoving : fadeStrengthIdle + property real leftFadeStrength: overflowing && leftFadeEnabled + ? fadeStrengthMoving : fadeStrengthIdle property int leftFadeWidth: 28 property bool marqueeEnabled: true readonly property bool overflowing: metrics.width > root.width property int pauseMs: 1200 property real pixelsPerSecond: 40 - property real rightFadeStrength: overflowing ? fadeStrengthMoving : fadeStrengthIdle + property real rightFadeStrength: overflowing ? fadeStrengthMoving : + fadeStrengthIdle property int rightFadeWidth: 28 property bool sliding: false property alias text: elideText.text @@ -41,7 +43,7 @@ Item { onTextChanged: strip.x = 0 onVisibleChanged: if (!visible) - strip.x = 0 + strip.x = 0 onWidthChanged: strip.x = 0 TextMetrics {