From fbb4f2172066ef00ff53435504782c7fa78cceef Mon Sep 17 00:00:00 2001 From: poire-z Date: Fri, 2 Apr 2021 18:12:08 +0200 Subject: [PATCH] Notifications: add some top margin 68a5fcdb moved them a bit to near the top than before, and it can overlap with CRE rendering progress bar. Also makes it nicer when multiple notications are stacked. --- frontend/ui/widget/notification.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/ui/widget/notification.lua b/frontend/ui/widget/notification.lua index d0bfec93e..17db5862e 100644 --- a/frontend/ui/widget/notification.lua +++ b/frontend/ui/widget/notification.lua @@ -84,7 +84,10 @@ function Notification:init() -- have this VerticalGroup full width, to ensure centering width = Screen:getWidth(), -- push this frame at its y=self.num position - height = notif_height * (self.num - 1), + height = notif_height * (self.num - 1) + self.margin, + -- (let's add a leading self.margin to get the same distance + -- from top of screen to first notification top border as + -- between borders of next notifications) }, self.frame, }