Merge pull request #7 from JavaCafe01/master
Add customization options for colors and opacity
This commit is contained in:
commit
2d197b9faa
12
editor.lua
12
editor.lua
|
@ -663,9 +663,15 @@ function module.create(data)
|
||||||
local label_size = api.dpi(30)
|
local label_size = api.dpi(30)
|
||||||
local info_size = api.dpi(60)
|
local info_size = api.dpi(60)
|
||||||
-- colors are in rgba
|
-- colors are in rgba
|
||||||
local border_color = with_alpha(api.gears.color(api.beautiful.border_focus), 0.75)
|
local border_color = with_alpha(api.gears.color(
|
||||||
local active_color = with_alpha(api.gears.color(api.beautiful.bg_focus), 0.5)
|
api.beautiful.machi_editor_border_color or api.beautiful.border_focus),
|
||||||
local open_color = with_alpha(api.gears.color(api.beautiful.bg_normal), 0.5)
|
api.beautiful.machi_editor_border_opacity or 0.75)
|
||||||
|
local active_color = with_alpha(api.gears.color(
|
||||||
|
api.beautiful.machi_editor_active_color or api.beautiful.bg_focus),
|
||||||
|
api.beautiful.machi_editor_active_opacity or 0.5)
|
||||||
|
local open_color = with_alpha(api.gears.color(
|
||||||
|
api.beautiful.machi_editor_open_color or api.beautiful.bg_normal),
|
||||||
|
api.beautiful.machi_editor_open_opacity or 0.5)
|
||||||
local closed_color = open_color
|
local closed_color = open_color
|
||||||
|
|
||||||
screen = screen or api.screen.focused()
|
screen = screen or api.screen.focused()
|
||||||
|
|
16
switcher.lua
16
switcher.lua
|
@ -50,10 +50,18 @@ function module.start(c, exit_keys)
|
||||||
local font_color = with_alpha(api.gears.color(api.beautiful.fg_normal), 1)
|
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 font_color_hl = with_alpha(api.gears.color(api.beautiful.fg_focus), 1)
|
||||||
local label_size = api.dpi(30)
|
local label_size = api.dpi(30)
|
||||||
local border_color = with_alpha(api.gears.color(api.beautiful.border_focus), 0.25)
|
local border_color = with_alpha(api.gears.color(
|
||||||
local fill_color = with_alpha(api.gears.color(api.beautiful.bg_normal), 0.25)
|
api.beautiful.machi_switcher_border_color or api.beautiful.border_focus),
|
||||||
local box_bg = with_alpha(api.gears.color(api.beautiful.bg_normal), 0.85)
|
api.beautiful.machi_switcher_border_opacity or 0.25)
|
||||||
local fill_color_hl = with_alpha(api.gears.color(api.beautiful.bg_focus), 1)
|
local fill_color = with_alpha(api.gears.color(
|
||||||
|
api.beautiful.machi_switcher_fill_color or api.beautiful.bg_normal),
|
||||||
|
api.beautiful.machi_switcher_fill_opacity or 0.25)
|
||||||
|
local box_bg = with_alpha(api.gears.color(
|
||||||
|
api.beautiful.machi_switcher_box_bg or api.beautiful.bg_normal),
|
||||||
|
api.beautiful.machi_switcher_box_opacity or 0.85)
|
||||||
|
local fill_color_hl = with_alpha(api.gears.color(
|
||||||
|
api.beautiful.machi_switcher_fill_color_hl or api.beautiful.bg_focus),
|
||||||
|
api.beautiful.machi_switcher_fill_hl_opacity or 1)
|
||||||
-- for comparing floats
|
-- for comparing floats
|
||||||
local threshold = 0.1
|
local threshold = 0.1
|
||||||
local traverse_radius = api.dpi(5)
|
local traverse_radius = api.dpi(5)
|
||||||
|
|
Loading…
Reference in New Issue