adjust colors in switcher

This commit is contained in:
Xinhao Yuan 2019-08-22 19:05:07 -04:00
parent 4632b29e92
commit 315f8a7676
1 changed files with 5 additions and 5 deletions

View File

@ -50,8 +50,8 @@ function module.start(c)
local font_color = with_alpha(api.gears.color(api.beautiful.fg_normal), 1)
local font_color_hl = with_alpha(api.gears.color(api.beautiful.fg_focus), 1)
local label_size = api.dpi(30)
local border_color = with_alpha(api.gears.color(api.beautiful.border_focus), 0.75)
local fill_color = with_alpha(api.gears.color(api.beautiful.bg_normal), 0.5)
local border_color = with_alpha(api.gears.color(api.beautiful.border_focus), 0.25)
local fill_color = with_alpha(api.gears.color(api.beautiful.bg_normal), 0.25)
local fill_color_hl = with_alpha(api.gears.color(api.beautiful.bg_focus), 1)
-- for comparing floats
local threshold = 0.1
@ -168,9 +168,9 @@ function module.start(c)
cr:rectangle(a.x - start_x, a.y - start_y, a.width, a.height)
cr:clip()
-- cr:set_source(fill_color)
-- cr:rectangle(a.x, a.y, a.width, a.height)
-- cr:fill()
cr:set_source(fill_color)
cr:rectangle(a.x, a.y, a.width, a.height)
cr:fill()
cr:set_source(border_color)
cr:rectangle(a.x - start_x, a.y - start_y, a.width, a.height)
cr:set_line_width(10.0)