xsecurelock: remove outline

Is that really useful? It's unlikely for a background to be very
bright.
This commit is contained in:
Vincent Bernat 2021-12-13 18:26:38 +01:00
parent 47d8d3cce7
commit 71040f3299

View file

@ -74,11 +74,6 @@ def on_overlay_draw(widget, cctx, ctx):
) )
def draw(what, outline): def draw(what, outline):
cctx.move_to(*text_position)
cctx.set_source_rgb(0, 0, 0)
cctx.set_line_width(outline)
cctx.text_path(what)
cctx.stroke()
cctx.move_to(*text_position) cctx.move_to(*text_position)
cctx.set_source_rgb(1, 1, 1) cctx.set_source_rgb(1, 1, 1)
cctx.show_text(what) cctx.show_text(what)
@ -93,7 +88,7 @@ def on_overlay_draw(widget, cctx, ctx):
cctx.set_font_size(ctx.clock_font_size // 3) cctx.set_font_size(ctx.clock_font_size // 3)
_, _, twidth, theight, _, _ = cctx.text_extents(date) _, _, twidth, theight, _, _ = cctx.text_extents(date)
text_position = wwidth // 2 - twidth // 2, wheight // 3 + theight * 1.5 text_position = wwidth // 2 - twidth // 2, wheight // 3 + theight * 1.5
draw(date, 1) draw(date, 2)
# Weather # Weather
# We can have polybar markups in it. We assume %{Tx} means to use # We can have polybar markups in it. We assume %{Tx} means to use
@ -117,12 +112,6 @@ def on_overlay_draw(widget, cctx, ctx):
font, cairo.FONT_SLANT_NORMAL, cairo.FONT_WEIGHT_NORMAL font, cairo.FONT_SLANT_NORMAL, cairo.FONT_WEIGHT_NORMAL
) )
cctx.set_font_size(ctx.weather_font_size) cctx.set_font_size(ctx.weather_font_size)
cur_position = cctx.get_current_point()
cctx.set_source_rgb(0, 0, 0)
cctx.set_line_width(1)
cctx.text_path(chunk)
cctx.stroke()
cctx.move_to(*cur_position)
cctx.set_source_rgb(1, 1, 1) cctx.set_source_rgb(1, 1, 1)
cctx.show_text(chunk) cctx.show_text(chunk)