elParaguayo/qtile-extras

ImgMask not working properly

Closed this issue · 4 comments

huh-.2.mp4
huh-.3.mp4

No errors in log.

$ grep -w '^Version' /usr/lib/python3.11/site-packages/qtile_extras-*.dist-info/METADATA | awk -F":" '{print $2}'
 0.22.2.dev114+ged01fd8

Have you got decorations on that widget? I can't see any in that config screenshot but it looks like there's a rect decoration around it.

I've just tested that widget on my system and it works fine with no decoration but does break when there is a decoration.

Can you try #268 please.

Yes, I have decorations. Sorry, busy day, will give you the updated widget right now.

current_layout_icon = widget.CurrentLayoutIcon(
    padding=13,
    scale=0.8,
    mouse_callbacks={
        "Button2": set_layout_all(),
        "Button3": lazy.spawn("/home/ervin/bin/rofi_layout.py"),
    },
    # use_mask=True,
    foreground=colors["darkblue"],
    decorations=[
        RectDecoration(
            colour=decor_bg,
            radius=20,
            filled=True,
            padding_y=0,
            padding_x=0,
        ),
    ],
)

#268 works! Closing this now or will you close it in the PR?

It will close with the PR.

Can you confirm it works for your other issue too?