Merge lp:~mterry/unity-greeter/designfixups into lp:unity-greeter

Proposed by Michael Terry
Status: Merged
Merged at revision: 380
Proposed branch: lp:~mterry/unity-greeter/designfixups
Merge into: lp:unity-greeter
Diff against target: 96 lines (+21/-6)
3 files modified
src/dash-button.vala (+13/-1)
src/dash-entry.vala (+3/-1)
src/user-list.vala (+5/-4)
To merge this branch: bzr merge lp:~mterry/unity-greeter/designfixups
Reviewer Review Type Date Requested Status
Ken VanDine Approve
Review via email: mp+100868@code.launchpad.net

Description of the change

John Lea asked for some Unity Greeter changes:

1) Bring name labels down a bit to be vertically centered with the session chooser button on the right
2) Make password entries and the login button you get for guest accounts the same vertical size
3) Add a pixel or two separation between password characters and the cursor (right now, they appear to abut)

I don't believe these are big enough changes to warrant a UI Freeze exception.

To post a comment you must log in.
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Looks fine to me, I think the only thing that I worry about needing a UIFe for is the font size change. But realistically going from 14 to 16 will probably not be noticeable in screenshots.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/dash-button.vala'
2--- src/dash-button.vala 2012-03-13 14:00:28 +0000
3+++ src/dash-button.vala 2012-04-04 20:01:25 +0000
4@@ -29,7 +29,7 @@
5 set
6 {
7 _text = value;
8- text_label.set_markup ("<span font_size=\"large\">%s</span>".printf (value));
9+ text_label.set_markup ("<span font=\"Ubuntu 16\">%s</span>".printf (value));
10 }
11 }
12
13@@ -59,6 +59,7 @@
14 {
15 var pixbuf = new Gdk.Pixbuf.from_file (path);
16 var image = new CachedImage (pixbuf);
17+ image.valign = Gtk.Align.CENTER;
18 sizes.add_widget (image);
19 hbox.add (image);
20 }
21@@ -69,6 +70,17 @@
22
23 hbox.show_all ();
24 add (hbox);
25+
26+ try
27+ {
28+ var style = new Gtk.CssProvider ();
29+ style.load_from_data ("* {padding: 3px;}", -1);
30+ this.get_style_context ().add_provider (style, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);
31+ }
32+ catch (Error e)
33+ {
34+ debug ("Internal error loading session chooser style: %s", e.message);
35+ }
36 }
37
38 public override bool draw (Cairo.Context c)
39
40=== modified file 'src/dash-entry.vala'
41--- src/dash-entry.vala 2012-03-08 03:26:49 +0000
42+++ src/dash-entry.vala 2012-04-04 20:01:25 +0000
43@@ -35,6 +35,8 @@
44
45 changed.connect (changed_cb);
46 icon_press.connect (icon_press_cb);
47+
48+ override_font (Pango.FontDescription.from_string ("Ubuntu 14"));
49 }
50
51 public override bool draw (Cairo.Context c)
52@@ -69,7 +71,7 @@
53
54 /* Draw text */
55 var layout = create_pango_layout (constant_placeholder_text);
56- layout.set_font_description (Pango.FontDescription.from_string ("Ubuntu 14"));
57+ layout.set_font_description (Pango.FontDescription.from_string ("Ubuntu 16"));
58 Pango.cairo_show_layout (c, layout);
59 }
60
61
62=== modified file 'src/user-list.vala'
63--- src/user-list.vala 2012-03-27 19:31:17 +0000
64+++ src/user-list.vala 2012-04-04 20:01:25 +0000
65@@ -819,10 +819,11 @@
66
67 /* Put prompt entry and login button inside login box */
68 child_allocation.x = allocation.x + box_x + grid_size / 2;
69- child_allocation.y = allocation.y + box_y + grid_size * 2 - grid_size / 2;
70+ child_allocation.y = allocation.y + box_y + grid_size * 2 - grid_size / 4;
71 child_allocation.width = grid_size * (box_width - 1);
72- child_allocation.height = grid_size;
73+ prompt_entry.get_preferred_height (null, out child_allocation.height);
74 prompt_entry.size_allocate (child_allocation);
75+ login_button.get_preferred_height (null, out child_allocation.height);
76 login_button.size_allocate (child_allocation);
77
78 child_allocation.x = allocation.x + box_x + box_width * grid_size - grid_size - grid_size / 4;
79@@ -894,7 +895,7 @@
80 entry.layout.get_pixel_size (out w, out h);
81
82 var label_x = grid_size / 2;
83- var label_y = (grid_size - h) / 2 + border;
84+ var label_y = grid_size / 4 + border;
85 var label_surface = entry_ensure_label_surface (entry, c, in_box);
86 c.set_source_surface (label_surface, label_x, label_y);
87 c.paint_with_alpha (alpha);
88@@ -1077,7 +1078,7 @@
89 int w, h;
90 m.layout.get_pixel_size (out w, out h);
91
92- c.move_to (grid_size / 2, grid_size * 1.25 - vertical_offset + border);
93+ c.move_to (grid_size / 2, grid_size * 1.5 - vertical_offset + border);
94 vertical_offset -= h;
95
96 var r = 1.0;

Subscribers

People subscribed via source and target branches