fix css loading issues with weird urls that include parameters, fix font size issues with font sizes that are rem and fix text merging on Windows cause space width is 0, make clicking on link change search bar text.

This commit is contained in:
csd4ni3l
2025-07-23 16:11:14 +02:00
parent d90a9fc174
commit 10555c7c8b
3 changed files with 19 additions and 9 deletions

View File

@@ -57,7 +57,7 @@ class Main(arcade.gui.UIView):
super().on_show_view()
self.search_bar = self.add_widget(arcade.gui.UIInputText(x=self.window.width / 4, y=self.window.height * 0.95, width=self.window.width / 2, height=self.window.height * 0.035, font_name="Roboto", font_size=14, text_color=arcade.color.BLACK, caret_color=arcade.color.BLACK, border_color=arcade.color.BLACK))
self.renderer = Renderer(self.http_client, self.window)
self.renderer = Renderer(self.http_client, self)
def on_key_press(self, symbol, modifiers):
self.search_bar.text = self.search_bar.text.encode("ascii", "ignore").decode().strip("\n")