Made widget.widget attributes prettier

This commit is contained in:
2022-04-24 13:31:01 -07:00
parent 1c5d1dc553
commit 0ac767d534
6 changed files with 45 additions and 40 deletions

View File

@ -35,7 +35,8 @@ function Tagger:new(args)
end
end
t.widget = Widget:new(t)
t._widget = Widget:new(t)
t.widget = t._widget.widget
return t
end
@ -82,16 +83,16 @@ function Tagger:update_widget()
-- Make that the currently active tag is checked and that all
-- others are not.
if (tgs[i].index == self.screen.selected_tag.index) then
self.widget.tagindicators[i].checked = true
self._widget.tagindicators[i].checked = true
else
self.widget.tagindicators[i].checked = false
self._widget.tagindicators[i].checked = false
end
-- Highlight tags that are not empty
if (#clients == 0) then
self.widget.tagindicators[i].border_color = beautiful.color.bar.inactive
self._widget.tagindicators[i].border_color = beautiful.color.bar.inactive
else
self.widget.tagindicators[i].border_color = beautiful.color.bar.active
self._widget.tagindicators[i].border_color = beautiful.color.bar.active
end
end
end