summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-17 16:06:38 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-17 16:06:38 +1000
commit5c93d07a8e8b4c0b4cea76a5f4d259a08c1c277a (patch)
treea312e33f38e463c0ccef5c76199fbb9c18cca9f5 /components
parentlock: refactor (diff)
downloadcaelestia-shell-5c93d07a8e8b4c0b4cea76a5f4d259a08c1c277a.tar.gz
caelestia-shell-5c93d07a8e8b4c0b4cea76a5f4d259a08c1c277a.tar.bz2
caelestia-shell-5c93d07a8e8b4c0b4cea76a5f4d259a08c1c277a.zip
internal: scale rounding properly
Diffstat (limited to 'components')
-rw-r--r--components/controls/CircularProgress.qml4
-rw-r--r--components/controls/StyledSwitch.qml2
2 files changed, 3 insertions, 3 deletions
diff --git a/components/controls/CircularProgress.qml b/components/controls/CircularProgress.qml
index aa0de5c..209d53b 100644
--- a/components/controls/CircularProgress.qml
+++ b/components/controls/CircularProgress.qml
@@ -26,7 +26,7 @@ Shape {
fillColor: "transparent"
strokeColor: root.bgColour
strokeWidth: root.strokeWidth
- capStyle: ShapePath.RoundCap
+ capStyle: Appearance.rounding.scale === 0 ? ShapePath.SquareCap : ShapePath.RoundCap
PathAngleArc {
startAngle: root.startAngle + 360 * root.vValue + root.gapAngle
@@ -50,7 +50,7 @@ Shape {
fillColor: "transparent"
strokeColor: root.fgColour
strokeWidth: root.strokeWidth
- capStyle: ShapePath.RoundCap
+ capStyle: Appearance.rounding.scale === 0 ? ShapePath.SquareCap : ShapePath.RoundCap
PathAngleArc {
startAngle: root.startAngle
diff --git a/components/controls/StyledSwitch.qml b/components/controls/StyledSwitch.qml
index c3e3957..7b23712 100644
--- a/components/controls/StyledSwitch.qml
+++ b/components/controls/StyledSwitch.qml
@@ -91,7 +91,7 @@ Switch {
strokeWidth: Appearance.font.size.larger * 0.15
strokeColor: root.checked ? Colours.palette.m3primary : Colours.palette.m3surfaceContainerHighest
fillColor: "transparent"
- capStyle: ShapePath.RoundCap
+ capStyle: Appearance.rounding.scale === 0 ? ShapePath.SquareCap : ShapePath.RoundCap
startX: icon.start1.x
startY: icon.start1.y