fixed window title font not respecting beautiful.titlebar_font

Former-commit-id: 5fd43849e1
Former-commit-id: 7eae8d492d9cabe6851880a601043561029c53fd
Former-commit-id: 13bd19e5272d8adab17c555e07c796be5a4d2d52
Former-commit-id: 7b835d0485788ca8cce0bc4f3e38e2c7de42182f
This commit is contained in:
elena 2019-01-02 01:35:09 +02:00
parent 167baae6df
commit bac330bb68
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("")