use beautiful.font instead of non-standard .mono_font

This commit is contained in:
Xinhao Yuan 2019-09-09 22:37:11 -04:00
parent 98e09cbdb3
commit 4951fa560b
2 changed files with 2 additions and 2 deletions

View File

@ -645,7 +645,7 @@ function module.create(data)
local outer_gap = data.outer_gap or data.gap or api.beautiful.useless_gap * 2 or 0
local inner_gap = data.inner_gap or data.gap or api.beautiful.useless_gap * 2 or 0
local label_font_family = api.beautiful.get_font(
api.beautiful.mono_font or api.beautiful.font):get_family()
api.beautiful.font):get_family()
local label_size = api.dpi(30)
local info_size = api.dpi(60)
-- colors are in rgba

View File

@ -46,7 +46,7 @@ end
function module.start(c)
local tablist_font_desc = api.beautiful.get_merged_font(
api.beautiful.mono_font or api.beautiful.font, api.dpi(10))
api.beautiful.font, api.dpi(10))
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)