More Pinephone tweaks

This commit is contained in:
Noah 2020-07-06 21:33:27 -07:00
parent 1f19859d1c
commit aa7207e145
2 changed files with 6 additions and 1 deletions

View File

@ -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()

View File

@ -125,7 +125,7 @@
</object>
<object class="GtkApplicationWindow" id="main_window">
<property name="width_request">360</property>
<property name="height_request">550</property>
<property name="height_request">720</property>
<property name="can_focus">False</property>
<property name="show_menubar">False</property>
<signal name="destroy" handler="on_main_window_destroy" swapped="no"/>