gears.color: Add transparent constant

Avoid repetitive "#00000000" for transparent wiboxes and such
elements.
This commit is contained in:
Emmanuel Lepage Vallee 2016-03-04 03:16:56 -05:00
parent 7c7295a282
commit 2aa15c9454
1 changed files with 3 additions and 0 deletions

View File

@ -333,6 +333,9 @@ end
pattern_cache = require("gears.cache").new(color.create_pattern_uncached)
--- No color
color.transparent = color.create_pattern("#00000000")
return setmetatable(color, color.mt)
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80