Made widget.widget attributes prettier
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user