Skip to content

Commit

Permalink
Remove roundness on the color square
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Feb 14, 2024
1 parent f7a347f commit 35612c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/chooser.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 35612c7

Please sign in to comment.