Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lygamac opened this issue Nov 30, 2021 · 2 comments

Comments

@lygamac
Copy link
Contributor

lygamac commented Nov 30, 2021

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.

@xfzv
Copy link

xfzv commented Apr 18, 2023

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

Luka5W added a commit to Luka5W/awesome-wm-widgets that referenced this issue Oct 8, 2023
Luka5W added a commit to Luka5W/awesome-wm-widgets that referenced this issue Oct 8, 2023
Luka5W added a commit to Luka5W/awesome-wm-widgets that referenced this issue Oct 8, 2023
streetturtle added a commit that referenced this issue Nov 19, 2023
calendar-widget: added option to show week numbers, possible fix for #316
@xfzv
Copy link

xfzv commented Nov 19, 2023

Solved by recent commits on my end. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants