aboutsummaryrefslogtreecommitdiff
path: root/modules/system/quickshell/squircle.frag
diff options
context:
space:
mode:
authorLeander Scherer <leander@schererleander.de>2026-05-30 15:35:27 +0200
committerLeander Scherer <leander@schererleander.de>2026-05-30 15:35:27 +0200
commitd2747e2ca1e211a32e91e44010f40a00e0ac97e4 (patch)
treefb229d6a18541c7a5f1944390b21edde028955f9 /modules/system/quickshell/squircle.frag
parent51b3cbd50b92d026549ce3ebff17ca9b3344f441 (diff)
feat(quickshell): add popup controls and privacy indicators
Diffstat (limited to 'modules/system/quickshell/squircle.frag')
-rw-r--r--modules/system/quickshell/squircle.frag2
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/system/quickshell/squircle.frag b/modules/system/quickshell/squircle.frag
index df2477f..058468e 100644
--- a/modules/system/quickshell/squircle.frag
+++ b/modules/system/quickshell/squircle.frag
@@ -27,13 +27,11 @@ void main() {
vec2 halfSize = vec2(ubuf.width, ubuf.height) * 0.5;
vec2 p = (qt_TexCoord0 * vec2(ubuf.width, ubuf.height)) - halfSize;
- // Applied the scaling factor mentioned in the original comment
float r = ubuf.cornerRadius * 1.5286;
float dist = squircleSDF(p, halfSize, r);
float fwidth_dist = fwidth(dist);
- // Corrected edge parameter order to avoid undefined behavior
float alpha = 1.0 - smoothstep(-fwidth_dist, fwidth_dist, dist);
if (ubuf.strokeWidth > 0.0) {