Browse Source

More Pinephone tweaks

master
Noah Petherbridge 10 months ago
parent
commit
aa7207e145
2 changed files with 6 additions and 1 deletions
  1. +5
    -0
      main.py
  2. +1
    -1
      ui/app.glade

+ 5
- 0
main.py 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()



+ 1
- 1
ui/app.glade 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"/>


Loading…
Cancel
Save