From e191460f503a18923f0221f735230ce2754f84ea Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 14 Dec 2021 07:04:10 +0100 Subject: [PATCH] xsecurelock: thicker outline --- bin/xsecurelock-saver | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/xsecurelock-saver b/bin/xsecurelock-saver index c030e0c..915184a 100755 --- a/bin/xsecurelock-saver +++ b/bin/xsecurelock-saver @@ -71,10 +71,10 @@ def on_overlay_draw(widget, cctx, ctx): wwidth, wheight = widget.get_parent().get_size() cctx.set_source_rgb(1, 1, 1) - def draw(what): + def draw(what, outline=2): position = cctx.get_current_point() cctx.set_operator(cairo.OPERATOR_EXCLUSION) - cctx.set_line_width(1) + cctx.set_line_width(outline) cctx.text_path(what) cctx.stroke() cctx.move_to(*position) @@ -92,7 +92,7 @@ def on_overlay_draw(widget, cctx, ctx): cctx.set_font_size(ctx.clock_font_size) _, _, twidth, theight, _, _ = cctx.text_extents(re.sub(r"\d", "8", time)) cctx.move_to(wwidth // 2 - twidth // 2, wheight // 3) - draw(time) + draw(time, 4) # Date cctx.select_font_face(