summaryrefslogtreecommitdiff
path: root/endless
diff options
context:
space:
mode:
authorFernando Farfan <fernando@endlessm.com>2013-06-12 10:23:45 -0700
committerFernando Farfan <fernando@endlessm.com>2013-06-17 14:19:35 -0700
commit9d27c9cb077146cf9ffe443b5ff811e10fcbeb74 (patch)
treef875500acd371fb0e29f5cdae4e38fdc980c85fc /endless
parente3f2ffb6661cd01f40d96ae4bff992d0185ed0b4 (diff)
Changed Topbar foreground color.
Changed the foreground color of the topbar widgets to white to make them visible over the dark gray background. [endlessm/eos-sdk#97]
Diffstat (limited to 'endless')
-rw-r--r--endless/eostopbar.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/endless/eostopbar.c b/endless/eostopbar.c
index 7783189..601e22b 100644
--- a/endless/eostopbar.c
+++ b/endless/eostopbar.c
@@ -172,9 +172,16 @@ eos_top_bar_set_left_widget (EosTopBar *self,
priv->left_top_bar_widget = left_top_bar_widget;
if (left_top_bar_widget)
{
+ GdkRGBA white = { 1.0, 1.0, 1.0, 1.0 };
+ gtk_widget_set_halign (GTK_WIDGET (left_top_bar_widget), GTK_ALIGN_CENTER);
+ gtk_widget_set_valign (GTK_WIDGET (left_top_bar_widget), GTK_ALIGN_CENTER);
+ gtk_widget_override_color (GTK_WIDGET (left_top_bar_widget),
+ GTK_STATE_FLAG_NORMAL,
+ &white);
+
gtk_box_pack_start (GTK_BOX (priv->actions_hbox),
left_top_bar_widget,
- FALSE, FALSE, 0);
+ TRUE, TRUE, 0);
}
}
@@ -197,10 +204,16 @@ eos_top_bar_set_center_widget (EosTopBar *self,
priv->center_top_bar_widget = center_top_bar_widget;
if (center_top_bar_widget)
{
+ GdkRGBA white = { 1.0, 1.0, 1.0, 1.0 };
gtk_widget_set_halign (GTK_WIDGET (center_top_bar_widget), GTK_ALIGN_CENTER);
+ gtk_widget_set_valign (GTK_WIDGET (center_top_bar_widget), GTK_ALIGN_CENTER);
gtk_widget_set_hexpand (GTK_WIDGET (center_top_bar_widget), TRUE);
+ gtk_widget_override_color (GTK_WIDGET (center_top_bar_widget),
+ GTK_STATE_FLAG_NORMAL,
+ &white);
+
gtk_box_pack_start (GTK_BOX (priv->actions_hbox),
center_top_bar_widget,
- FALSE, FALSE, 0);
+ TRUE, TRUE, 0);
}
} \ No newline at end of file