From ecb9a0e9e8ed2957fae4694a0c39e9e125661178 Mon Sep 17 00:00:00 2001 From: Pavel Makhov Date: Tue, 17 Dec 2019 16:43:36 -0500 Subject: add light and dark calendar themes --- calendar-widget/README.md | 2 ++ calendar-widget/calendar.lua | 23 +++++++++++++++++++++-- calendar-widget/dark.png | Bin 0 -> 12055 bytes calendar-widget/light.png | Bin 0 -> 13020 bytes 4 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 calendar-widget/dark.png create mode 100644 calendar-widget/light.png (limited to 'calendar-widget') diff --git a/calendar-widget/README.md b/calendar-widget/README.md index 9cfaf30..c30fef6 100644 --- a/calendar-widget/README.md +++ b/calendar-widget/README.md @@ -11,6 +11,8 @@ Calendar widget for Awesome WM - slightly improved version of the `wibox.widget. |---|---| |nord (default) | ![nord_theme](./nord.png) | | outrun | ![outrun_theme](./outrun.png) | + | light | ![outrun_theme](./light.png) | + | dark | ![outrun_theme](./dark.png) | - setup widget placement diff --git a/calendar-widget/calendar.lua b/calendar-widget/calendar.lua index c54fb5c..1e4967e 100644 --- a/calendar-widget/calendar.lua +++ b/calendar-widget/calendar.lua @@ -37,13 +37,32 @@ local function worker(args) weekday_fg = '#2de6e2', header_fg = '#f6019d', border = '#261447' + }, + dark = { + bg = '#000000', + fg = '#ffffff', + focus_date_bg = '#ffffff', + focus_date_fg = '#000000', + weekend_day_bg = '#444444', + weekday_fg = '#ffffff', + header_fg = '#ffffff', + border = '#333333' + }, + light = { + bg = '#ffffff', + fg = '#000000', + focus_date_bg = '#000000', + focus_date_fg = '#ffffff', + weekend_day_bg = '#AAAAAA', + weekday_fg = '#000000', + header_fg = '#000000', + border = '#CCCCCC' } } - local args = args or {} - local theme = args.theme or 'nord' + local theme = args.theme or 'light' local placement = args.placement or 'top' local styles = {} diff --git a/calendar-widget/dark.png b/calendar-widget/dark.png new file mode 100644 index 0000000..540289f Binary files /dev/null and b/calendar-widget/dark.png differ diff --git a/calendar-widget/light.png b/calendar-widget/light.png new file mode 100644 index 0000000..ab675d1 Binary files /dev/null and b/calendar-widget/light.png differ -- cgit v1.2.3