Merge remote-tracking branch 'origin/luka5w-calendar' into luka5w-calendar

# Conflicts:
#	calendar-widget/calendar.lua
This commit is contained in:
Luka5W 2023-10-08 18:06:12 +00:00
commit 782f27168d
1 changed files with 2 additions and 3 deletions

View File

@ -157,7 +157,7 @@ local function worker(user_args)
-- Change bg color for weekends
local d = { year = date.year, month = (date.month or 1), day = (date.day or 1) }
local weekday = tonumber(os.date('%w', os.time(d)))
local default_bg = (flag == 'focus' or flag == 'normal') and (weekday == 0 or weekday == 6)
local default_bg = (weekday == 0 or weekday == 6)
and calendar_themes[theme].weekend_day_bg
or calendar_themes[theme].bg
local ret = wibox.widget {
@ -174,7 +174,7 @@ local function worker(user_args)
shape_border_color = props.border_color or '#000000',
shape_border_width = props.border_width or 0,
fg = props.fg_color or calendar_themes[theme].fg,
bg = default_bg,
bg = props.bg_color or default_bg,
widget = wibox.container.background
}
@ -187,7 +187,6 @@ local function worker(user_args)
fn_embed = decorate_cell,
long_weekdays = true,
start_sunday = start_sunday,
week_numbers = week_numbers,
widget = wibox.widget.calendar.month
}