Commit bebcdaf3 authored by Lucas Manika Koeb's avatar Lucas Manika Koeb
Browse files

greeter: Change the default font for the login screen



All the texts on the login screen now use the Umpush font instead of
the system default (Ubuntu). Also change the font sizes and styles.
Signed-off-by: default avatarLucas Manika Koeb <lmk08@c3sl.ufpr.br>
parent fd55abb6
......@@ -34,7 +34,7 @@
<summary>Icon theme to use</summary>
</key>
<key name="font-name" type="s">
<default>'Ubuntu 11'</default>
<default>'Umpush'</default>
<summary>Font to use</summary>
</key>
<key name="xft-antialias" type="b">
......
......@@ -29,7 +29,7 @@ public class DashButton : Gtk.Button, Fadable
set
{
_text = value;
text_label.set_markup ("<span font=\"Ubuntu 16\">%s</span>".printf (value));
text_label.set_markup ("<span font=\"Umpush bold 9\">%s</span>".printf (value));
}
}
......
......@@ -37,7 +37,7 @@ public class DashEntry : Gtk.Entry, Fadable
icon_press.connect (icon_press_cb);
activate.connect (clicked_cb);
override_font (Pango.FontDescription.from_string ("Ubuntu 14"));
override_font (Pango.FontDescription.from_string ("Umpush italic 10"));
}
public override bool draw (Cairo.Context c)
......@@ -72,7 +72,7 @@ public class DashEntry : Gtk.Entry, Fadable
/* Draw text */
var layout = create_pango_layout (constant_placeholder_text);
layout.set_font_description (Pango.FontDescription.from_string ("Ubuntu 16"));
layout.set_font_description (Pango.FontDescription.from_string ("Umpush italic 10"));
Pango.cairo_show_layout (c, layout);
}
......
......@@ -323,7 +323,7 @@ public class UserList : Gtk.EventBox
public void show_message (string text, bool is_error = false)
{
var layout = create_pango_layout (text);
layout.set_font_description (Pango.FontDescription.from_string ("Ubuntu 10"));
layout.set_font_description (Pango.FontDescription.from_string ("Umpush 9"));
messages.append (new AuthenticationMessage (layout, is_error));
redraw_login_box ();
}
......@@ -445,7 +445,7 @@ public class UserList : Gtk.EventBox
else
entries.remove (e);
e.layout = create_pango_layout (label);
e.layout.set_font_description (Pango.FontDescription.from_string ("Ubuntu 16"));
e.layout.set_font_description (Pango.FontDescription.from_string ("Umpush 14"));
e.background = background;
e.keyboard_layouts = keyboard_layouts.copy ();
e.is_active = is_active;
......@@ -862,8 +862,10 @@ public class UserList : Gtk.EventBox
c.set_source (mask);
}
else
if (in_box)
c.set_source_rgba (0.866666667 , 0.698039216 , 0.062745098, 1.0);
if (in_box){
entry.layout.set_font_description (Pango.FontDescription.from_string ("Umpush bold 15"));
c.set_source_rgba (0.866666667 , 0.698039216 , 0.062745098, 1.0);
}
else
c.set_source_rgba (1.0, 1.0, 1.0, 1.0);
......
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