mirror of
https://jihulab.com/mr-one/openpilot.git
synced 2026-10-27 13:03:42 +08:00
ui: rebrand screen saver to MR.ONE and improve clarity
This commit is contained in:
@@ -30,7 +30,7 @@ class ScreenSaverSP(Widget):
|
||||
self._hue = 150
|
||||
self.color = rl.color_from_hsv(self._hue, 1, 1)
|
||||
|
||||
self.text = "sunnypilot"
|
||||
self.text = "MR.ONE"
|
||||
self.font_size = 50 if self._is_mici else 200
|
||||
self._start_time = None
|
||||
self._dismiss = False
|
||||
@@ -65,7 +65,7 @@ class ScreenSaverSP(Widget):
|
||||
def _update_state(self):
|
||||
super()._update_state()
|
||||
|
||||
self.font = gui_app.font(FontWeight.AUDIOWIDE)
|
||||
self.font = gui_app.high_res_text_font(FontWeight.BOLD)
|
||||
text_size = measure_text_cached(self.font, self.text, self.font_size, 0)
|
||||
self.logo_width = text_size.x
|
||||
self.logo_height = text_size.y
|
||||
|
||||
Reference in New Issue
Block a user