Horizontal media widget #16

Merged
Zacharias-Brohn merged 8 commits from horizontal-media-widget into settingsWindow 2026-02-25 21:59:57 +01:00
2 changed files with 15 additions and 3 deletions
Showing only changes of commit bd246247ac - Show all commits
+10
View File
@@ -0,0 +1,10 @@
[General]
FunctionsSpacing=true
IndentWidth=4
MaxColumnWidth=80
NewlineType=native
NormalizeOrder=true
ObjectsSpacing=true
SemicolonRule=always
SortImports=false
UseTabs=true
+5 -3
View File
@@ -12,13 +12,15 @@ Item {
property int gap: 40 property int gap: 40
property alias horizontalAlignment: elideText.horizontalAlignment property alias horizontalAlignment: elideText.horizontalAlignment
property bool leftFadeEnabled: false property bool leftFadeEnabled: false
property real leftFadeStrength: overflowing && leftFadeEnabled ? fadeStrengthMoving : fadeStrengthIdle property real leftFadeStrength: overflowing && leftFadeEnabled
? fadeStrengthMoving : fadeStrengthIdle
property int leftFadeWidth: 28 property int leftFadeWidth: 28
property bool marqueeEnabled: true property bool marqueeEnabled: true
readonly property bool overflowing: metrics.width > root.width readonly property bool overflowing: metrics.width > root.width
property int pauseMs: 1200 property int pauseMs: 1200
property real pixelsPerSecond: 40 property real pixelsPerSecond: 40
property real rightFadeStrength: overflowing ? fadeStrengthMoving : fadeStrengthIdle property real rightFadeStrength: overflowing ? fadeStrengthMoving :
fadeStrengthIdle
property int rightFadeWidth: 28 property int rightFadeWidth: 28
property bool sliding: false property bool sliding: false
property alias text: elideText.text property alias text: elideText.text
@@ -41,7 +43,7 @@ Item {
onTextChanged: strip.x = 0 onTextChanged: strip.x = 0
onVisibleChanged: if (!visible) onVisibleChanged: if (!visible)
strip.x = 0 strip.x = 0
onWidthChanged: strip.x = 0 onWidthChanged: strip.x = 0
TextMetrics { TextMetrics {