[gnome-system-monitor/wip/newdesign] Use a font weight a bit thicker than normal, but thinner than bold for better readability
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-system-monitor/wip/newdesign] Use a font weight a bit thicker than normal, but thinner than bold for better readability
- Date: Sun, 18 Aug 2013 23:58:50 +0000 (UTC)
commit ed2f7920d6a315f24671966fd61f7746e45fde5c
Author: Robert Roth <robert roth off gmail com>
Date: Mon Aug 19 02:58:31 2013 +0300
Use a font weight a bit thicker than normal, but thinner than bold for better readability
src/gsm_color_button.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gsm_color_button.c b/src/gsm_color_button.c
index a9887a8..8257b84 100644
--- a/src/gsm_color_button.c
+++ b/src/gsm_color_button.c
@@ -235,6 +235,7 @@ gsm_color_button_draw (GtkWidget *widget, cairo_t * cr)
// label text with the usage percentage or network rate
gchar *text = g_strdup (priv->text);
layout = pango_cairo_create_layout (cr);
+ pango_font_description_set_weight (font_desc, (PANGO_WEIGHT_NORMAL + PANGO_WEIGHT_BOLD)/2);
pango_layout_set_font_description (layout, font_desc);
pango_font_description_free (font_desc);
pango_layout_set_text (layout, text, -1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]