From e39504a30f34654d53a8b97cc68ea92effce78c3 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 11 Dec 2015 00:54:00 +0100 Subject: [PATCH] Make textbox widget respect the current theme Without this fix `wibox.widget.textbox` ignores current theme font setting and resets it to the initial one. It becomes handy when the initial theme is tweaked during runtime, ie. in `rc.lua`. Other AwesomeWM components like `awful` (taglist, tasklist, menu) are aware and do respect the actual theme settings. Closes https://github.com/awesomeWM/awesome/pull/89. --- lib/wibox/widget/textbox.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wibox/widget/textbox.lua b/lib/wibox/widget/textbox.lua index 039cda3b..43b5b617 100644 --- a/lib/wibox/widget/textbox.lua +++ b/lib/wibox/widget/textbox.lua @@ -229,7 +229,7 @@ local function new(text, ignore_markup) ret:set_wrap("word_char") ret:set_valign("center") ret:set_align("left") - ret:set_font() + ret:set_font(beautiful and beautiful.font) if text then if ignore_markup then