summaryrefslogtreecommitdiff
path: root/awesome/share/theme.lua
blob: c5ad11e3b246c5ed65aa0b5b62e372308b5a412a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function load_theme(avgcolor, comcolor)

    local theme = require("default/theme")

    if avgcolor then
        theme.bg_normal     = avgcolor
        theme.bg_focus      = theme.bg_normal
        theme.bg_urgent     = "#ff0000" -- TODO should be opposite of bg_normal
        theme.bg_minimize   = theme.bg_normal
        theme.bg_systray    = theme.bg_normal
    end

    if comcolor then
        theme.fg_normal     = comcolor
        theme.fg_focus      = comcolor
        theme.fg_urgent     = "#ffffff"
        theme.fg_minimize   = comcolor
    end

    return theme

end