Commit 032c5ea3 authored by Lucas Manika Koeb's avatar Lucas Manika Koeb
Browse files

greeter: Change the login box style



The login box now starts at the left edge of the screen
and has only two rounded corners.
Signed-off-by: default avatarLucas Manika Koeb <lmk08@c3sl.ufpr.br>
parent a3707f9b
......@@ -73,14 +73,11 @@ public class DashBox : Gtk.Box
var w = width - radius * 2;
var h = height - radius * 2;
var kappa = 0.5522847498 * radius;
c.move_to (x + radius, y);
c.rel_line_to (w, 0);
c.move_to (0, y);
c.rel_line_to (w+x+radius, 0);
c.rel_curve_to (kappa, 0, radius, radius - kappa, radius, radius);
c.rel_line_to (0, h);
c.rel_curve_to (0, kappa, kappa - radius, radius, -radius, radius);
c.rel_line_to (-w, 0);
c.rel_curve_to (-kappa, 0, -radius, kappa - radius, -radius, -radius);
c.rel_line_to (0, -h);
c.rel_curve_to (0, -kappa, radius - kappa, -radius, radius, -radius);
c.rel_line_to (-(w+x+radius), 0);
}
}
......@@ -772,9 +772,9 @@ public class UserList : Gtk.EventBox
get_allocation (out allocation);
var child_allocation = Gtk.Allocation ();
child_allocation.x = allocation.x + box_x + 6;
child_allocation.x = allocation.x;
child_allocation.y = allocation.y + box_y + 6;
child_allocation.width = grid_size * box_width - 12;
child_allocation.width = grid_size * box_width - 6 + box_x;
child_allocation.height = grid_size * box_height - 6;
Gtk.Requisition session_request;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment