lyrics: fix fade

This commit is contained in:
bbedward
2026-09-23 16:41:41 -04:00
parent 4b926be08f
commit c5029444ff
2 changed files with 2 additions and 5 deletions
@@ -205,8 +205,6 @@ FocusScope {
anchors.fill: parent
radius: root.backgroundRadius
color: root.blurSource ? MediaAccentService.lyricsTint : DashMetrics.cardColor
border.width: root.backgroundParent ? 0 : Theme.layerOutlineWidth
border.color: Theme.outlineMedium
antialiasing: true
}
}
@@ -50,7 +50,7 @@ Item {
if (activeOnly)
return active ? text : '<font color="transparent">' + text + '</font>';
const sung = highlighted && word.t < wordStart;
const color = sung || (active && !sweep) ? accent : Theme.onSurfaceVariant;
const color = sung || (active && !sweep) ? accent : active ? "transparent" : Theme.onSurfaceVariant;
return '<font color="' + color + '">' + text + '</font>';
}).join("");
}
@@ -134,8 +134,7 @@ Item {
textFormat: Text.StyledText
Accessible.ignored: true
font: line.font
color: root.accent
opacity: root.wordProgress
color: Qt.tint(Theme.onSurfaceVariant, Theme.withAlpha(root.accent, root.wordProgress))
lineHeight: line.lineHeight
horizontalAlignment: line.horizontalAlignment
wrapMode: line.wrapMode