From f71a3934d79879a9c63d968cf06a573276f1788d Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sun, 8 Dec 2024 20:19:22 +0100 Subject: [PATCH] Default to more sane window size --- sbapp/main.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sbapp/main.py b/sbapp/main.py index 464e38e..dce8633 100644 --- a/sbapp/main.py +++ b/sbapp/main.py @@ -24,6 +24,9 @@ import base64 import threading import RNS.vendor.umsgpack as msgpack +WINDOW_DEFAULT_WIDTH = "480" +WINDOW_DEFAULT_HEIGHT = "750" + app_ui_scaling_path = None def apply_ui_scale(): global app_ui_scaling_path @@ -171,6 +174,11 @@ if not args.daemon: local = os.path.dirname(__file__) sys.path.append(local) + if not RNS.vendor.platformutils.is_android(): + from kivy.config import Config + Config.set("graphics", "width", WINDOW_DEFAULT_WIDTH) + Config.set("graphics", "height", WINDOW_DEFAULT_HEIGHT) + if args.daemon: from .sideband.core import SidebandCore class DaemonElement():