From 432149fd917429fc2d8c5d13df098eb9c3a7ccd8 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 6 Sep 2021 14:15:15 +0200 Subject: [PATCH] xss-dimmer: add an outline on countdown timer --- bin/xss-dimmer | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/xss-dimmer b/bin/xss-dimmer index 3c34aa5..9975946 100755 --- a/bin/xss-dimmer +++ b/bin/xss-dimmer @@ -68,6 +68,11 @@ def on_draw(widget, event, options, elapsed): _, _, twidth, theight, _, _ = cctx.text_extents(remaining) cctx.move_to(wwidth // 2 - twidth // 2, wheight // 2 + theight // 2) cctx.show_text(remaining) + cctx.set_source_rgba(0, 0, 0, opacity*2) + cctx.move_to(wwidth // 2 - twidth // 2, wheight // 2 + theight // 2) + cctx.text_path(remaining) + cctx.set_line_width(4) + cctx.stroke() # Rearm timer if not once: