xsecurelock: no transparency

This commit is contained in:
Vincent Bernat 2021-12-10 19:09:09 +01:00
parent e83743f6f9
commit 66d0e34afc

View file

@ -76,7 +76,7 @@ def on_overlay_draw(widget, cctx, ctx):
_, _, twidth, theight, _, _ = cctx.text_extents(re.sub(r"\d", "8", now)) _, _, twidth, theight, _, _ = cctx.text_extents(re.sub(r"\d", "8", now))
text_position = wwidth // 2 - twidth // 2, wheight // 3 - theight // 2 text_position = wwidth // 2 - twidth // 2, wheight // 3 - theight // 2
cctx.move_to(*text_position) cctx.move_to(*text_position)
cctx.set_source_rgba(1, 1, 1, 0.8) cctx.set_source_rgb(1, 1, 1)
cctx.show_text(now) cctx.show_text(now)
cctx.move_to(*text_position) cctx.move_to(*text_position)
cctx.set_source_rgb(0, 0, 0) cctx.set_source_rgb(0, 0, 0)
@ -112,7 +112,7 @@ def on_overlay_draw(widget, cctx, ctx):
cctx.text_path(chunk) cctx.text_path(chunk)
cctx.stroke() cctx.stroke()
cctx.move_to(*cur_position) cctx.move_to(*cur_position)
cctx.set_source_rgba(1, 1, 1, 0.8) cctx.set_source_rgb(1, 1, 1)
cctx.show_text(chunk) cctx.show_text(chunk)