Files
browser/utils/preload.py

8 lines
433 B
Python

import arcade.gui, arcade
from http_client.html_parser import CSSParser
button_texture = arcade.gui.NinePatchTexture(64 // 4, 64 // 4, 64 // 4, 64 // 4, arcade.load_texture("assets/graphics/button.png"))
button_hovered_texture = arcade.gui.NinePatchTexture(64 // 4, 64 // 4, 64 // 4, 64 // 4, arcade.load_texture("assets/graphics/button_hovered.png"))
DEFAULT_STYLE_SHEET = CSSParser(open("assets/css/browser.css").read()).parse()