From 5c93d07a8e8b4c0b4cea76a5f4d259a08c1c277a Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 17 Aug 2025 16:06:38 +1000 Subject: internal: scale rounding properly --- modules/dashboard/Media.qml | 4 ++-- modules/dashboard/Performance.qml | 2 +- modules/dashboard/dash/Media.qml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/dashboard') 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); diff --git a/modules/dashboard/Performance.qml b/modules/dashboard/Performance.qml index 2667a1e..68281f6 100644 --- a/modules/dashboard/Performance.qml +++ b/modules/dashboard/Performance.qml @@ -168,7 +168,7 @@ RowLayout { ctx.reset(); ctx.lineWidth = res.thickness; - ctx.lineCap = "round"; + ctx.lineCap = Appearance.rounding.scale === 0 ? "square" : "round"; const radius = (Math.min(width, height) - ctx.lineWidth) / 2; const cx = centerX; diff --git a/modules/dashboard/dash/Media.qml b/modules/dashboard/dash/Media.qml index 079df34..ada469f 100644 --- a/modules/dashboard/dash/Media.qml +++ b/modules/dashboard/dash/Media.qml @@ -40,7 +40,7 @@ Item { fillColor: "transparent" strokeColor: Colours.layer(Colours.palette.m3surfaceContainerHigh, 2) strokeWidth: Config.dashboard.sizes.mediaProgressThickness - capStyle: ShapePath.RoundCap + capStyle: Appearance.rounding.scale === 0 ? ShapePath.SquareCap : ShapePath.RoundCap PathAngleArc { centerX: cover.x + cover.width / 2 @@ -64,7 +64,7 @@ Item { fillColor: "transparent" strokeColor: Colours.palette.m3primary strokeWidth: Config.dashboard.sizes.mediaProgressThickness - capStyle: ShapePath.RoundCap + capStyle: Appearance.rounding.scale === 0 ? ShapePath.SquareCap : ShapePath.RoundCap PathAngleArc { centerX: cover.x + cover.width / 2 -- cgit v1.2.3-freya