[snappy] ui: update font
- From: Luis de Bethencourt <luisbg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [snappy] ui: update font
- Date: Mon, 15 Apr 2013 20:48:18 +0000 (UTC)
commit 6d2ece7f2b1f99f4a77a87597224620e610939f4
Author: Luis de Bethencourt <luis debethencourt com>
Date: Mon Apr 15 16:44:40 2013 -0400
ui: update font
src/user_interface.c | 8 ++++----
src/user_interface.h | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/user_interface.c b/src/user_interface.c
index e13dd43..afa6e21 100644
--- a/src/user_interface.c
+++ b/src/user_interface.c
@@ -654,7 +654,7 @@ load_controls (UserInterface * ui)
clutter_align_constraint_new (ui->stage, CLUTTER_ALIGN_Y_AXIS, 0.03));
// Controls title
- ui->control_title = clutter_text_new_full ("Sans 32px",
+ ui->control_title = clutter_text_new_full ("Clear Sans Bold 32px",
cut_long_filename (ui->filename, ui->title_length), &ui->text_color);
if (strcmp (ui->filename, "") == 0) {
clutter_text_set_text (CLUTTER_TEXT (ui->control_title),
@@ -791,7 +791,7 @@ load_controls (UserInterface * ui)
// Controls position text
duration_str = g_strdup_printf (" 0:00:00 | %s", ui->duration_str);
- ui->control_pos = clutter_text_new_full ("Sans 22px", duration_str,
+ ui->control_pos = clutter_text_new_full ("Clear Sans 22px", duration_str,
&ui->text_color);
clutter_actor_add_child (middle_box, ui->control_pos);
@@ -1161,7 +1161,7 @@ update_controls_size (UserInterface * ui)
clutter_box_layout_set_spacing (CLUTTER_BOX_LAYOUT (ui->info_box_layout),
ctl_width * 0.04f);
- font_name = g_strdup_printf ("Sans %dpx", (gint) (ctl_width * TITLE_RATIO));
+ font_name = g_strdup_printf ("Clear Sans Bold %dpx", (gint) (ctl_width * TITLE_RATIO));
clutter_text_set_font_name (CLUTTER_TEXT (ui->control_title), font_name);
clutter_box_layout_set_spacing (CLUTTER_BOX_LAYOUT (ui->main_box_layout),
@@ -1182,7 +1182,7 @@ update_controls_size (UserInterface * ui)
progress_update_seekbar (ui);
- font_name = g_strdup_printf ("Sans %dpx", (gint) (ctl_height * POS_RATIO));
+ font_name = g_strdup_printf ("Clear Sans %dpx", (gint) (ctl_height * POS_RATIO));
clutter_text_set_font_name (CLUTTER_TEXT (ui->control_pos), font_name);
ui->volume_width =
diff --git a/src/user_interface.h b/src/user_interface.h
index f8ce3a0..9b6b5b2 100644
--- a/src/user_interface.h
+++ b/src/user_interface.h
@@ -48,7 +48,7 @@
#define MAIN_BOX_H 0.8f
#define PLAY_TOGGLE_RATIO 0.45f
-#define TITLE_RATIO 0.04f
+#define TITLE_RATIO 0.033f
#define SEEK_WIDTH_RATIO 0.9f
#define SEEK_HEIGHT_RATIO 0.15f
#define SEEK_BORDER 2.0f
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]