Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

get theme from args if possible in netgraphs

  • Loading branch information...
commit c5d4c3fdf2975c65e40b49d6bce8bd7857c019cf 1 parent 7c4da0b
@dodo authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  widget/netgraphs.lua
3  widget/netgraphs.lua
@@ -47,6 +47,7 @@ local default_net_colors = { fg = {down = "#00FF00", up = "#FF0000"},
-- @param args.big.bgcolor <i>(optional when `args.big` given) </i> background color of big cpu graphs
-- @param args.fgcolor <i>(optional) </i> default value of `args.small.fgcolor` and `args.big.fgcolor`
-- @param args.bgcolor <i>(optional) </i> default value of `args.small.bgcolor` and `args.big.bgcolor`
+-- @param args.theme <i>(optional) </i> defaults to beautiful.get()
-- @return a table with this properties: small <i>(when `args.small` given)</i> (with properties: layout, widgets, width, height), big <i>(wher `args.big` given)</i> (with properties: layout, widgets, width, height), switch <i>(when `args.big` and `args.small` are given)</i>
function new(args)
local ret = {}
@@ -118,7 +119,7 @@ function new(args)
vicious.helpers.format(args.normal or "$1", { interface })
local set_color = function (bg, interface)
- local theme = beautiful.get()
+ local theme = args.theme or beautiful.get()
if interface == cur then
Please sign in to comment.
Something went wrong with that request. Please try again.