Make more icons 90% white (#37206)

* 90% icons

* fix!
This commit is contained in:
Shane Smiskol
2026-02-13 17:20:54 -08:00
committed by GitHub
parent cd03aa19a1
commit 9bb6e997aa
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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