summaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2011-12-21 14:09:07 -0500
committerChris Lumens <clumens@redhat.com>2011-12-21 15:56:19 -0500
commit227d09abab794dea62ea90fc02c049773f382f38 (patch)
tree31cdea4ba68c3f0b18a39075db896c4b952c06a0 /widgets
parent963f0101fa09fbb3191700fe49d4212e6966edee (diff)
downloadanaconda-227d09abab794dea62ea90fc02c049773f382f38.tar.gz
anaconda-227d09abab794dea62ea90fc02c049773f382f38.tar.xz
anaconda-227d09abab794dea62ea90fc02c049773f382f38.zip
More work on making things larger and clearer.
(1) Increase font sizes in the nav area. (2) Make the betanag warning bold so it stands out better. (3) Increase the size of everything in the spoke selector to help us use the screen real estate a little more wisely.
Diffstat (limited to 'widgets')
-rw-r--r--widgets/src/BaseWindow.c15
-rw-r--r--widgets/src/SpokeSelector.c14
2 files changed, 20 insertions, 9 deletions
diff --git a/widgets/src/BaseWindow.c b/widgets/src/BaseWindow.c
index c697dfe74..63fef9ce8 100644
--- a/widgets/src/BaseWindow.c
+++ b/widgets/src/BaseWindow.c
@@ -197,19 +197,22 @@ static void anaconda_base_window_init(AnacondaBaseWindow *win) {
/* Create the name label. */
win->priv->name_label = gtk_label_new(NULL);
- markup = g_markup_printf_escaped("<span weight='bold'>%s</span>", _(DEFAULT_WINDOW_NAME));
+ markup = g_markup_printf_escaped("<span weight='bold' size='large'>%s</span>", _(DEFAULT_WINDOW_NAME));
gtk_label_set_markup(GTK_LABEL(win->priv->name_label), markup);
g_free(markup);
gtk_misc_set_alignment(GTK_MISC(win->priv->name_label), 0, 0);
gtk_widget_set_hexpand(win->priv->name_label, TRUE);
/* Create the distribution label. */
- win->priv->distro_label = gtk_label_new(_(DEFAULT_DISTRIBUTION));
+ win->priv->distro_label = gtk_label_new(NULL);
+ markup = g_markup_printf_escaped("<span size='large'>%s</span>", _(DEFAULT_DISTRIBUTION));
+ gtk_label_set_markup(GTK_LABEL(win->priv->distro_label), markup);
+ g_free(markup);
gtk_misc_set_alignment(GTK_MISC(win->priv->distro_label), 0, 0);
/* Create the betanag label. */
win->priv->beta_label = gtk_label_new(NULL);
- markup = g_markup_printf_escaped("<span foreground='red'>%s</span>", _("PRE-RELEASE / TESTING"));
+ markup = g_markup_printf_escaped("<span foreground='red' weight='bold' size='large'>%s</span>", _("PRE-RELEASE / TESTING"));
gtk_label_set_markup(GTK_LABEL(win->priv->beta_label), markup);
g_free(markup);
gtk_misc_set_alignment(GTK_MISC(win->priv->beta_label), 0, 0);
@@ -242,12 +245,14 @@ static void anaconda_base_window_set_property(GObject *object, guint prop_id, co
switch(prop_id) {
case PROP_DISTRIBUTION: {
- gtk_label_set_text(GTK_LABEL(priv->distro_label), g_value_get_string(value));
+ char *markup = g_markup_printf_escaped("<span size='large'>%s</span>", g_value_get_string(value));
+ gtk_label_set_markup(GTK_LABEL(priv->distro_label), markup);
+ g_free(markup);
break;
}
case PROP_WINDOW_NAME: {
- char *markup = g_markup_printf_escaped("<span weight='bold'>%s</span>", g_value_get_string(value));
+ char *markup = g_markup_printf_escaped("<span weight='bold' size='large'>%s</span>", g_value_get_string(value));
gtk_label_set_markup(GTK_LABEL(priv->name_label), markup);
g_free(markup);
break;
diff --git a/widgets/src/SpokeSelector.c b/widgets/src/SpokeSelector.c
index 62c5de28e..904a15f32 100644
--- a/widgets/src/SpokeSelector.c
+++ b/widgets/src/SpokeSelector.c
@@ -166,20 +166,24 @@ static void anaconda_spoke_selector_init(AnacondaSpokeSelector *spoke) {
/* Create the icons. */
spoke->priv->icon = gtk_image_new_from_stock(DEFAULT_ICON, GTK_ICON_SIZE_DIALOG);
+ gtk_image_set_pixel_size(GTK_IMAGE(spoke->priv->icon), 64);
+ gtk_widget_set_valign(spoke->priv->icon, GTK_ALIGN_START);
+
spoke->priv->incomplete_icon = gtk_image_new_from_icon_name("dialog-warning-symbolic", GTK_ICON_SIZE_MENU);
gtk_widget_set_no_show_all(GTK_WIDGET(spoke->priv->incomplete_icon), TRUE);
gtk_widget_set_visible(GTK_WIDGET(spoke->priv->incomplete_icon), FALSE);
+ gtk_widget_set_valign(spoke->priv->incomplete_icon, GTK_ALIGN_START);
/* Create the title label. */
spoke->priv->title_label = gtk_label_new(NULL);
- markup = g_markup_printf_escaped("<span weight='bold'>%s</span>", _(DEFAULT_TITLE));
+ markup = g_markup_printf_escaped("<span weight='bold' size='large'>%s</span>", _(DEFAULT_TITLE));
gtk_label_set_markup(GTK_LABEL(spoke->priv->title_label), markup);
gtk_misc_set_alignment(GTK_MISC(spoke->priv->title_label), 0, 0);
g_free(markup);
/* Create the status label. */
spoke->priv->status_label = gtk_label_new(NULL);
- markup = g_markup_printf_escaped("<span style='italic'>%s</span>", _(DEFAULT_STATUS));
+ markup = g_markup_printf_escaped("<span style='italic' size='large'>%s</span>", _(DEFAULT_STATUS));
gtk_label_set_markup(GTK_LABEL(spoke->priv->status_label), markup);
gtk_misc_set_alignment(GTK_MISC(spoke->priv->status_label), 0, 0);
g_free(markup);
@@ -219,17 +223,19 @@ static void anaconda_spoke_selector_set_property(GObject *object, guint prop_id,
switch(prop_id) {
case PROP_ICON:
gtk_image_set_from_icon_name(GTK_IMAGE(priv->icon), g_value_get_string(value), GTK_ICON_SIZE_DIALOG);
+ gtk_image_set_pixel_size(GTK_IMAGE(priv->icon), 64);
+ gtk_widget_set_valign(priv->icon, GTK_ALIGN_START);
break;
case PROP_STATUS: {
- char *markup = g_markup_printf_escaped("<span style='italic'>%s</span>", g_value_get_string(value));
+ char *markup = g_markup_printf_escaped("<span style='italic' size='large'>%s</span>", g_value_get_string(value));
gtk_label_set_markup(GTK_LABEL(priv->status_label), markup);
g_free(markup);
break;
}
case PROP_TITLE: {
- char *markup = g_markup_printf_escaped("<span weight='bold'>%s</span>", g_value_get_string(value));
+ char *markup = g_markup_printf_escaped("<span weight='bold' size='large'>%s</span>", g_value_get_string(value));
gtk_label_set_markup(GTK_LABEL(priv->title_label), markup);
g_free(markup);
break;