From 2884a11dff3dd38370f2005b87a2105bd7fccc91 Mon Sep 17 00:00:00 2001 From: poetic android Date: Sat, 25 Apr 2020 17:17:46 +0200 Subject: [PATCH] some tweaks --- system_drive/libs/screen.lua | 4 ++++ system_drive/libs/widget.lua | 8 ++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/system_drive/libs/screen.lua b/system_drive/libs/screen.lua index 3d418b3..8d316da 100644 --- a/system_drive/libs/screen.lua +++ b/system_drive/libs/screen.lua @@ -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) diff --git a/system_drive/libs/widget.lua b/system_drive/libs/widget.lua index 3e0ffe7..78abea3 100644 --- a/system_drive/libs/widget.lua +++ b/system_drive/libs/widget.lua @@ -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)