mirror of
https://github.com/csd4ni3l/browser.git
synced 2026-01-01 12:13:43 +01:00
Update dependencies, run.py file, preloading, update build script to newest version
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
import arcade.gui, arcade
|
||||
import arcade.gui, arcade, os
|
||||
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"))
|
||||
# Get the directory where this module is located
|
||||
_module_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
_assets_dir = os.path.join(os.path.dirname(_module_dir), 'assets')
|
||||
|
||||
DEFAULT_STYLE_SHEET = CSSParser(open("assets/css/browser.css").read()).parse()
|
||||
button_texture = arcade.gui.NinePatchTexture(64 // 4, 64 // 4, 64 // 4, 64 // 4, arcade.load_texture(os.path.join(_assets_dir, 'graphics', 'button.png')))
|
||||
button_hovered_texture = arcade.gui.NinePatchTexture(64 // 4, 64 // 4, 64 // 4, 64 // 4, arcade.load_texture(os.path.join(_assets_dir, 'graphics', 'button_hovered.png')))
|
||||
|
||||
DEFAULT_STYLE_SHEET = CSSParser(open(os.path.join(_assets_dir, "css", "browser.css")).read()).parse()
|
||||
|
||||
Reference in New Issue
Block a user