Skip to content

Commit

Permalink
some tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
poeticAndroid committed Apr 25, 2020
1 parent c537333 commit 2884a11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions system_drive/libs/screen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ do
return self._title
end

function Screen:redraw()
self:title(self._title)
end

function Screen:step(time)
local prevvp = view.active()
view.active(self.titlevp)
Expand Down
8 changes: 2 additions & 6 deletions system_drive/libs/widget.lua
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,10 @@ do
self.bgtextcolor = l > 22 and self.darkcolor or self.lightcolor
if self.children then
for name, child in pairs(self.children) do
child.darkcolor = self.darkcolor
child.lightcolor = self.lightcolor
child.fgcolor = self.fgcolor
child.bgcolor = self.bgcolor
child.fgtextcolor = self.fgtextcolor
child.bgtextcolor = self.bgtextcolor
child:autocolor()
end
end
self:redraw()
end

function Widget:outset(x, y, w, h)
Expand Down

0 comments on commit 2884a11

Please sign in to comment.