From aa7207e145b8209c339b61b23c0e59bd5ba8fb33 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Mon, 6 Jul 2020 21:33:27 -0700 Subject: [PATCH] More Pinephone tweaks --- main.py | 5 +++++ ui/app.glade | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 2468382..f9a853c 100644 --- a/main.py +++ b/main.py @@ -23,6 +23,11 @@ class Main: for row in ["First Button", "Second", "Third"]: self.add_button(row) + # Note: the UI size request is 360x720, same resolution as + # the Pinephone screen, but this is too big for the window to + # be. As workaround, we reset the size request very small and maximize + # the window. + self.mw.set_size_request(360, 200) self.mw.maximize() self.mw.show_all() diff --git a/ui/app.glade b/ui/app.glade index 59873a5..ec36474 100644 --- a/ui/app.glade +++ b/ui/app.glade @@ -125,7 +125,7 @@ 360 - 550 + 720 False False