gears.color: Add transparent constant
Avoid repetitive "#00000000" for transparent wiboxes and such elements.
This commit is contained in:
parent
7c7295a282
commit
2aa15c9454
|
@ -333,6 +333,9 @@ end
|
||||||
|
|
||||||
pattern_cache = require("gears.cache").new(color.create_pattern_uncached)
|
pattern_cache = require("gears.cache").new(color.create_pattern_uncached)
|
||||||
|
|
||||||
|
--- No color
|
||||||
|
color.transparent = color.create_pattern("#00000000")
|
||||||
|
|
||||||
return setmetatable(color, color.mt)
|
return setmetatable(color, color.mt)
|
||||||
|
|
||||||
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80
|
||||||
|
|
Loading…
Reference in New Issue