Use header background for table headers (if available)
This commit is contained in:
parent
fdfbab2f52
commit
6899f18aac
|
@ -180,3 +180,4 @@ Radical also use the some of the same theme options as awful.menu, plus some:
|
||||||
* menu_bg_header
|
* menu_bg_header
|
||||||
* menu_bg_normal
|
* menu_bg_normal
|
||||||
* menu_bg_highlight
|
* menu_bg_highlight
|
||||||
|
* menu_submenu_icon
|
||||||
|
|
|
@ -30,7 +30,7 @@ local function create_h_header(main_l,cols,w,args)
|
||||||
if args.h_header then
|
if args.h_header then
|
||||||
local bg = wibox.widget.background()
|
local bg = wibox.widget.background()
|
||||||
local row_l = wibox.layout.fixed.horizontal()
|
local row_l = wibox.layout.fixed.horizontal()
|
||||||
bg:set_bg(beautiful.fg_normal)
|
bg:set_bg(beautiful.menu_bg_header or beautiful.fg_normal)
|
||||||
bg:set_widget(row_l)
|
bg:set_widget(row_l)
|
||||||
if args.v_header then
|
if args.v_header then
|
||||||
local t = create_textbox(w,cols,args.v_header ~= nil,args.row_height)
|
local t = create_textbox(w,cols,args.v_header ~= nil,args.row_height)
|
||||||
|
@ -70,7 +70,7 @@ local function new(content,args)
|
||||||
local t = create_textbox(w,cols,args.v_header ~= nil,args.row_height)
|
local t = create_textbox(w,cols,args.v_header ~= nil,args.row_height)
|
||||||
t:set_markup("<span color='".. beautiful.bg_normal .."'>".. (args.v_header[j] or "-") .."</span>")
|
t:set_markup("<span color='".. beautiful.bg_normal .."'>".. (args.v_header[j] or "-") .."</span>")
|
||||||
local bg = wibox.widget.background()
|
local bg = wibox.widget.background()
|
||||||
bg:set_bg(beautiful.fg_normal)
|
bg:set_bg(beautiful.menu_bg_header or beautiful.fg_normal)
|
||||||
bg:set_widget(t)
|
bg:set_widget(t)
|
||||||
row_l:add(bg)
|
row_l:add(bg)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue