mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-05 16:26:10 +08:00
@@ -249,7 +249,7 @@ class MiciHomeLayout(Widget):
|
||||
# Offset by difference in height between slashless and slash icons to make center align match
|
||||
rl.draw_texture(self._wifi_slash_txt, int(last_x), int(self._rect.y + self.rect.height - self._wifi_slash_txt.height / 2 -
|
||||
(self._wifi_slash_txt.height - self._wifi_none_txt.height) / 2 - Y_CENTER),
|
||||
rl.Color(255, 255, 255, 255))
|
||||
rl.Color(255, 255, 255, int(255 * 0.9)))
|
||||
last_x += self._wifi_slash_txt.width + ITEM_SPACING
|
||||
|
||||
# draw experimental icon
|
||||
|
||||
@@ -54,7 +54,7 @@ class BigCircleButton(Widget):
|
||||
|
||||
def _draw_content(self, btn_y: float):
|
||||
# draw icon
|
||||
icon_color = rl.WHITE if self.enabled else rl.Color(255, 255, 255, int(255 * 0.35))
|
||||
icon_color = rl.Color(255, 255, 255, int(255 * 0.9)) if self.enabled else rl.Color(255, 255, 255, int(255 * 0.35))
|
||||
rl.draw_texture_ex(self._txt_icon, (self._rect.x + (self._rect.width - self._txt_icon.width) / 2 + self._icon_offset[0],
|
||||
btn_y + (self._rect.height - self._txt_icon.height) / 2 + self._icon_offset[1]), 0, 1.0, icon_color)
|
||||
|
||||
@@ -206,7 +206,7 @@ class BigButton(Widget):
|
||||
source_rec = rl.Rectangle(0, 0, self._txt_icon.width, self._txt_icon.height)
|
||||
dest_rec = rl.Rectangle(x, y, self._txt_icon.width, self._txt_icon.height)
|
||||
origin = rl.Vector2(self._txt_icon.width / 2, self._txt_icon.height / 2)
|
||||
rl.draw_texture_pro(self._txt_icon, source_rec, dest_rec, origin, rotation, rl.WHITE)
|
||||
rl.draw_texture_pro(self._txt_icon, source_rec, dest_rec, origin, rotation, rl.Color(255, 255, 255, int(255 * 0.9)))
|
||||
|
||||
def _render(self, _):
|
||||
# draw _txt_default_bg
|
||||
|
||||
Reference in New Issue
Block a user