From 3c579d0e275cdaf6f2c9589abade94bde7905c82 Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Sat, 26 Apr 2025 22:36:23 +1000
Subject: clean

Remove everything
---
 src/widgets/screencorner.tsx | 49 --------------------------------------------
 1 file changed, 49 deletions(-)
 delete mode 100644 src/widgets/screencorner.tsx

(limited to 'src/widgets/screencorner.tsx')

diff --git a/src/widgets/screencorner.tsx b/src/widgets/screencorner.tsx
deleted file mode 100644
index a55d782..0000000
--- a/src/widgets/screencorner.tsx
+++ /dev/null
@@ -1,49 +0,0 @@
-import type { Binding } from "astal";
-import { Gtk, type Widget } from "astal/gtk3";
-import type cairo from "cairo";
-
-type Place = "topleft" | "topright" | "bottomleft" | "bottomright";
-
-export default ({ place, ...rest }: Widget.DrawingAreaProps & { place: Place | Binding<Place> }) => (
-    <drawingarea
-        {...rest}
-        className="screen-corner"
-        setup={self => {
-            self.connect("realize", () => self.get_window()?.set_pass_through(true));
-
-            const r = self.get_style_context().get_property("border-radius", Gtk.StateFlags.NORMAL) as number;
-            self.set_size_request(r, r);
-            self.connect("draw", (_, cr: cairo.Context) => {
-                const c = self.get_style_context().get_background_color(Gtk.StateFlags.NORMAL);
-                const r = self.get_style_context().get_property("border-radius", Gtk.StateFlags.NORMAL) as number;
-                self.set_size_request(r, r);
-
-                switch (typeof place === "string" ? place : place.get()) {
-                    case "topleft":
-                        cr.arc(r, r, r, Math.PI, (3 * Math.PI) / 2);
-                        cr.lineTo(0, 0);
-                        break;
-
-                    case "topright":
-                        cr.arc(0, r, r, (3 * Math.PI) / 2, 2 * Math.PI);
-                        cr.lineTo(r, 0);
-                        break;
-
-                    case "bottomleft":
-                        cr.arc(r, 0, r, Math.PI / 2, Math.PI);
-                        cr.lineTo(0, r);
-                        break;
-
-                    case "bottomright":
-                        cr.arc(0, 0, r, 0, Math.PI / 2);
-                        cr.lineTo(r, r);
-                        break;
-                }
-
-                cr.closePath();
-                cr.setSourceRGBA(c.red, c.green, c.blue, c.alpha);
-                cr.fill();
-            });
-        }}
-    />
-);
-- 
cgit v1.2.3-freya

