From f81d316ad462a5c4785f9008225ce4e01cd9207b Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 19 Oct 2025 10:29:24 +0200 Subject: [PATCH] roundcorner: use switch fallthrough for fewer dupe returns --- .../quickshell/ii/modules/common/widgets/RoundCorner.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/common/widgets/RoundCorner.qml b/dots/.config/quickshell/ii/modules/common/widgets/RoundCorner.qml index 785e01bce..f833a78d6 100644 --- a/dots/.config/quickshell/ii/modules/common/widgets/RoundCorner.qml +++ b/dots/.config/quickshell/ii/modules/common/widgets/RoundCorner.qml @@ -45,15 +45,15 @@ Item { pathHints: ShapePath.PathSolid & ShapePath.PathNonIntersecting startX: switch (root.corner) { - case RoundCorner.CornerEnum.TopLeft: return 0; - case RoundCorner.CornerEnum.TopRight: return root.implicitSize; + case RoundCorner.CornerEnum.TopLeft: case RoundCorner.CornerEnum.BottomLeft: return 0; + case RoundCorner.CornerEnum.TopRight: case RoundCorner.CornerEnum.BottomRight: return root.implicitSize; } startY: switch (root.corner) { - case RoundCorner.CornerEnum.TopLeft: return 0; + case RoundCorner.CornerEnum.TopLeft: case RoundCorner.CornerEnum.TopRight: return 0; - case RoundCorner.CornerEnum.BottomLeft: return root.implicitSize; + case RoundCorner.CornerEnum.BottomLeft: case RoundCorner.CornerEnum.BottomRight: return root.implicitSize; } PathAngleArc {