awesome-wm-widgets icon indicating copy to clipboard operation
awesome-wm-widgets copied to clipboard

[Calendar] Wrong background color when the first day of the month is weekend day

Open lygamac opened this issue 3 years ago • 2 comments

As title stated. Expected behavior: image

First day of the month as weekend day: image

I'm pretty sure there's something wrong in line ~160, but I haven't found anything suspicious.

local default_bg = (weekday == 0 or weekday == 6)
    and calendar_themes[theme].weekend_day_bg
    or calendar_themes[theme].bg

The behavior can be reproduced if, for example, changing to weekday == 2, then every month starting with Wednesday will have wrong color.

lygamac avatar Nov 30 '21 23:11 lygamac

Similar issue here but I cannot figure a pattern to reproduce (see May and February/March/June): image

Edit: it seems completely random for me, April now has light grey background:

image

xfzv avatar Apr 18 '23 19:04 xfzv

Solved by recent commits on my end. :+1:

xfzv avatar Nov 19 '23 20:11 xfzv