fixed window title font not respecting beautiful.titlebar_font

This commit is contained in:
elena 2019-01-02 01:35:09 +02:00
parent 6768632358
commit 5fd43849e1
2 changed files with 2 additions and 1 deletions

View file

@ -99,7 +99,7 @@ theme.border_radius = dpi(6)
theme.titlebars_enabled = true
theme.titlebar_size = dpi(35)
theme.titlebar_title_enabled = false
theme.titlebar_font = theme.font -- BUG: Uses theme.font regardless
theme.titlebar_font = theme.font
-- Window title alignment: left, right, center
theme.titlebar_title_align = "center"
-- Titlebar position: top, bottom, left, right

View file

@ -64,6 +64,7 @@ client.connect_signal("request::titlebars", function(c)
local title_widget
if beautiful.titlebar_title_enabled then
title_widget = awful.titlebar.widget.titlewidget(c)
title_widget.font = beautiful.titlebar_font
title_widget:set_align(beautiful.titlebar_title_align)
else
title_widget = wibox.widget.textbox("")