diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-17 16:06:38 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-17 16:06:38 +1000 |
| commit | 5c93d07a8e8b4c0b4cea76a5f4d259a08c1c277a (patch) | |
| tree | a312e33f38e463c0ccef5c76199fbb9c18cca9f5 /modules/dashboard/Media.qml | |
| parent | lock: refactor (diff) | |
| download | caelestia-shell-5c93d07a8e8b4c0b4cea76a5f4d259a08c1c277a.tar.gz caelestia-shell-5c93d07a8e8b4c0b4cea76a5f4d259a08c1c277a.tar.bz2 caelestia-shell-5c93d07a8e8b4c0b4cea76a5f4d259a08c1c277a.zip | |
internal: scale rounding properly
Diffstat (limited to 'modules/dashboard/Media.qml')
| -rw-r--r-- | modules/dashboard/Media.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/dashboard/Media.qml b/modules/dashboard/Media.qml index 81a1740..f8c93c7 100644 --- a/modules/dashboard/Media.qml +++ b/modules/dashboard/Media.qml @@ -93,7 +93,7 @@ Item { readonly property real cos: Math.cos(angle) readonly property real sin: Math.sin(angle) - capStyle: ShapePath.RoundCap + capStyle: Appearance.rounding.scale === 0 ? ShapePath.SquareCap : ShapePath.RoundCap strokeWidth: 360 / Config.dashboard.visualiserBars - Appearance.spacing.small / 4 strokeColor: Colours.palette.m3primary @@ -231,7 +231,7 @@ Item { implicitWidth: Math.max(playIcon.implicitWidth, playIcon.implicitHeight) + padding * 2 implicitHeight: implicitWidth - radius: Players.active?.isPlaying ? Appearance.rounding.small : implicitHeight / 2 + radius: Players.active?.isPlaying ? Appearance.rounding.small : implicitHeight / 2 * Math.min(1, Appearance.rounding.scale) color: { if (!Players.active?.canTogglePlaying) return Qt.alpha(Colours.palette.m3onSurface, 0.1); |