xsecurelock-saver: fix stripping of font colors

This commit is contained in:
Vincent Bernat 2024-09-15 22:55:26 +02:00
parent 26d4a9eeb9
commit b499011d55

View file

@ -111,7 +111,7 @@ def on_overlay_draw(widget, cctx, ctx):
# Weather Icons and we ignore font color change. The parsing is # Weather Icons and we ignore font color change. The parsing is
# quite basic. # quite basic.
if ctx.weather: if ctx.weather:
data = re.sub(r"%{F[#\d+-]+?}", "", ctx.weather) data = re.sub(r"%{F[#\da-f+-]+?}", "", ctx.weather)
data = re.split(r"(%{T[1-9-]})", data) data = re.split(r"(%{T[1-9-]})", data)
font = ctx.font_family font = ctx.font_family
cctx.move_to(20, wheight - 20) cctx.move_to(20, wheight - 20)