From c2ec8f2a6bc7a6b159c3d693739cbdc7dea4b53b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20James?= Date: Tue, 29 Dec 2020 15:51:23 +0100 Subject: [PATCH] Allow transparency in util.seperators --- util/separators.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/separators.lua b/util/separators.lua index 23535b7..ae384ec 100644 --- a/util/separators.lua +++ b/util/separators.lua @@ -33,7 +33,7 @@ function separators.arrow_right(col1, col2) widget.draw = function(_, _, cr, width, height) if widget.col2 ~= "alpha" then - cr:set_source_rgb(gears.color.parse_color(widget.col2)) + cr:set_source_rgba(gears.color.parse_color(widget.col2)) cr:new_path() cr:move_to(0, 0) cr:line_to(width, height/2) @@ -50,7 +50,7 @@ function separators.arrow_right(col1, col2) end if widget.col1 ~= "alpha" then - cr:set_source_rgb(gears.color.parse_color(widget.col1)) + cr:set_source_rgba(gears.color.parse_color(widget.col1)) cr:new_path() cr:move_to(0, 0) cr:line_to(width, height/2) @@ -81,7 +81,7 @@ function separators.arrow_left(col1, col2) widget.draw = function(_, _, cr, width, height) if widget.col1 ~= "alpha" then - cr:set_source_rgb(gears.color.parse_color(widget.col1)) + cr:set_source_rgba(gears.color.parse_color(widget.col1)) cr:new_path() cr:move_to(width, 0) cr:line_to(0, height/2) @@ -104,7 +104,7 @@ function separators.arrow_left(col1, col2) cr:line_to(width, height) cr:close_path() - cr:set_source_rgb(gears.color.parse_color(widget.col2)) + cr:set_source_rgba(gears.color.parse_color(widget.col2)) cr:fill() end end