This commit is contained in:
Zacharias-Brohn
2026-02-25 22:12:29 +01:00
parent ed9e0d1c85
commit 5f875915f4
17 changed files with 84 additions and 56 deletions
-4
View File
@@ -51,10 +51,6 @@ Slider {
implicitWidth: root.implicitWidth - root.handle.x - root.handle.implicitWidth - root.implicitHeight
radius: 1000
topLeftRadius: root.implicitHeight / 15
Component.onCompleted: {
console.log(root.handle.x, implicitWidth);
}
}
}
handle: CustomRect {
+4 -6
View File
@@ -1,5 +1,5 @@
import QtQuick
import QtQuick.Effects
import qs.Config
Item {
id: root
@@ -12,15 +12,13 @@ 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
@@ -43,7 +41,7 @@ Item {
onTextChanged: strip.x = 0
onVisibleChanged: if (!visible)
strip.x = 0
strip.x = 0
onWidthChanged: strip.x = 0
TextMetrics {