summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-12-15 22:27:20 +0100
committerThomas White <taw@physics.org>2019-12-15 22:27:20 +0100
commitaf9737e5279e75177bbfc552e5c4f23817adbd4e (patch)
treea779b7fe0d1b64870ebd9fa0824374bb5e31e335
parentc85b3387f677759a72631c29d2e3d976dcd391c1 (diff)
Add background
-rw-r--r--glitchyclock.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/glitchyclock.c b/glitchyclock.c
index 6d366d6..c71cb59 100644
--- a/glitchyclock.c
+++ b/glitchyclock.c
@@ -88,7 +88,7 @@ static gboolean draw_sig(GtkWidget *widget, cairo_t *cr, struct glitchyclock *gc
minutes = (seconds/60 + glitch_minutes) % 60;
snprintf(timestr, 63, "%02i:%02i", hours, minutes);
}
- pango_layout_set_text(layout, timestr, -1);
+ pango_layout_set_text(layout, "88:88", -1);
pango_cairo_update_layout(cr, layout);
pango_layout_get_size(layout, &lw, &lh);
@@ -103,7 +103,11 @@ static gboolean draw_sig(GtkWidget *widget, cairo_t *cr, struct glitchyclock *gc
cairo_translate(cr, (w-lw)/2.0, h-lh);
pango_cairo_update_layout(cr, layout);
- cairo_set_source_rgb(cr, 1.0, 0.0, 0.0);
+ cairo_set_source_rgb(cr, 0.04, 0.0, 0.0);
+ pango_cairo_show_layout(cr, layout);
+
+ pango_layout_set_text(layout, timestr, -1);
+ cairo_set_source_rgb(cr, 0.95, 0.0, 0.05);
pango_cairo_show_layout(cr, layout);
return FALSE;