]> git.madduck.net Git - etc/awesome.git/blobdiff - widgets/calendar.lua

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

some other space fixes
[etc/awesome.git] / widgets / calendar.lua
index 4b6d469c559cc96554ed664ff013b6a6bd6475b5..e5f6e88c02be51e946d08b5c5e7249eb6338b741 100644 (file)
@@ -23,13 +23,13 @@ local setmetatable = setmetatable
 local calendar = {}
 local notification = nil
 
-local function create(background, foreground)
+local function create(foreground, background)
     calendar.offset = 0
     calendar.icons_dir = icons_dir .. "cal/white/" -- default
     calendar.notify_icon = nil
     calendar.font_size = 12
     calendar.bg = background or beautiful.bg_normal or "#FFFFFF"
-    calendar.fg = foreground or beautiful.fg_normal or "#FFFFFF"
+    calendar.fg = foreground or beautiful.fg_focus or "#FFFFFF"
 end
 
 function calendar:hide()
@@ -111,8 +111,8 @@ function calendar:show(t_out, inc_offset)
                                     timeout = tims })
 end
 
-function calendar:attach(widget, background, foreground)
-    create(background, foreground)
+function calendar:attach(widget, foreground, background)
+    create(foreground, background)
     widget:connect_signal("mouse::enter", function () calendar:show() end)
     widget:connect_signal("mouse::leave", function () calendar:hide() end)
     widget:buttons(awful.util.table.join( awful.button({ }, 1, function ()