summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Makhov <pmakhov@theoctavegroup.com>2019-12-17 16:43:36 -0500
committerPavel Makhov <pmakhov@theoctavegroup.com>2019-12-17 16:43:36 -0500
commitecb9a0e9e8ed2957fae4694a0c39e9e125661178 (patch)
treef7a08b9265e72d594da2812ef7073b386155e5b6
parenta1f93fa8bd836f106acb3decbd1d21a9877e08f9 (diff)
add light and dark calendar themes
-rw-r--r--calendar-widget/README.md2
-rw-r--r--calendar-widget/calendar.lua23
-rw-r--r--calendar-widget/dark.pngbin0 -> 12055 bytes
-rw-r--r--calendar-widget/light.pngbin0 -> 13020 bytes
4 files changed, 23 insertions, 2 deletions
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
--- /dev/null
+++ b/calendar-widget/dark.png
Binary files differ
diff --git a/calendar-widget/light.png b/calendar-widget/light.png
new file mode 100644
index 0000000..ab675d1
--- /dev/null
+++ b/calendar-widget/light.png
Binary files differ