Browse Source

More Pinephone tweaks

master
Noah Petherbridge 1 year ago
parent
commit
aa7207e145
  1. 5
      main.py
  2. 2
      ui/app.glade

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

2
ui/app.glade

@ -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"/>

Loading…
Cancel
Save