From 2aa15c94542027c187e954e0dba36b9688d4d223 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Fri, 4 Mar 2016 03:16:56 -0500 Subject: [PATCH] gears.color: Add transparent constant Avoid repetitive "#00000000" for transparent wiboxes and such elements. --- lib/gears/color.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/gears/color.lua b/lib/gears/color.lua index 5454dfc3..a7856250 100644 --- a/lib/gears/color.lua +++ b/lib/gears/color.lua @@ -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