From 35612c7e5cc448552391f0b806939939d81a07f0 Mon Sep 17 00:00:00 2001 From: lainsce Date: Wed, 14 Feb 2024 10:25:02 -0300 Subject: [PATCH] Remove roundness on the color square --- src/chooser.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chooser.vala b/src/chooser.vala index cec8d2e..c8e4b96 100644 --- a/src/chooser.vala +++ b/src/chooser.vala @@ -135,9 +135,9 @@ public class Colorway.Chooser : Gtk.DrawingArea { width = WIDTH, height = HEIGHT, aspect = 1.0, - corner_radius = 12.0; - double radius = corner_radius / aspect; - double degrees = Math.PI / 180.0; + corner_radius = 0.0, + radius = corner_radius / aspect, + degrees = Math.PI / 180.0; Cairo.Context context = new Cairo.Context (surface); context.arc (x + width - radius, y + radius, radius, -90 * degrees, 0 * degrees);