Skip to content

Commit

Permalink
Fix text color bug on system theme
Browse files Browse the repository at this point in the history
  • Loading branch information
douglascdev committed Oct 13, 2023
1 parent 2b868ba commit 31b989e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hasherino/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def add_control_elements(self, message):
if type(element) == str:
theme_text_color = (
ft.colors.WHITE
if self.page.theme_mode == ft.ThemeMode.DARK
if self.page.platform_brightness == ft.ThemeMode.DARK
else ft.colors.BLACK
)
color = message.user.chat_color if message.me else theme_text_color
Expand Down Expand Up @@ -523,7 +523,7 @@ async def on_message(self, message: Message):
elif message.message_type == "login_message":
theme_text_color = (
ft.colors.WHITE
if self.page.theme_mode == ft.ThemeMode.DARK
if self.page.platform_brightness == ft.ThemeMode.DARK
else ft.colors.BLACK
)
m = ft.Text(
Expand Down

0 comments on commit 31b989e

Please sign in to comment.