Removed markup function

This commit is contained in:
Mutzi 2023-01-30 15:15:52 +01:00
parent 81fb2ce21c
commit ded5fa47f9

View File

@ -111,8 +111,6 @@ theme.titlebar_maximized_button_focus_active = theme.confdir .. '/icons/titlebar
theme.tasklist_fg_minimize = '#b3b3b3' theme.tasklist_fg_minimize = '#b3b3b3'
theme.tasklist_bg_minimize = '#4d4d4d' theme.tasklist_bg_minimize = '#4d4d4d'
local markup = lain.util.markup
local function build_widget_list(widgets) local function build_widget_list(widgets)
local out = {} local out = {}
local last_bg = 'alpha' local last_bg = 'alpha'
@ -178,7 +176,7 @@ if settings['show_battery'] == true then
perc = perc .. ' plug' perc = perc .. ' plug'
end end
widget:set_markup(markup.fontfg(theme.font, theme.fg_normal, perc .. ' ')) widget:set_text(perc)
end, end,
}) })
table.insert(info_widgets, { table.insert(info_widgets, {
@ -249,7 +247,7 @@ table.insert(info_widgets, {
local cpu = lain.widget.cpu({ local cpu = lain.widget.cpu({
settings = function() settings = function()
-- luacheck: globals widget cpu_now -- luacheck: globals widget cpu_now
widget:set_markup(cpu_now.usage .. '%') widget:set_text(cpu_now.usage .. '%')
end, end,
}) })
table.insert(info_widgets, { table.insert(info_widgets, {