Commit 204f6db9 authored by Adrien Plazas's avatar Adrien Plazas

librem5: prefs-dialog: Make it adaptive

This makes it fit phones.
parent 16ff4699
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
<property name="modal">True</property> <property name="modal">True</property>
<property name="destroy_with_parent">True</property> <property name="destroy_with_parent">True</property>
<property name="type_hint">dialog</property> <property name="type_hint">dialog</property>
<property name="resizable">False</property>
<property name="skip_taskbar_hint">True</property> <property name="skip_taskbar_hint">True</property>
<property name="use_header_bar">1</property> <property name="use_header_bar">1</property>
<child internal-child="headerbar"> <child internal-child="headerbar">
...@@ -40,7 +39,12 @@ ...@@ -40,7 +39,12 @@
<object class="GtkLabel"> <object class="GtkLabel">
<property name="visible">True</property> <property name="visible">True</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">True</property>
<property name="label" translatable="yes">Automatic Updates</property> <property name="label" translatable="yes">Automatic Updates</property>
<property name="wrap">True</property>
<property name="wrap_mode">word-char</property>
<property name="xalign">0</property>
<attributes> <attributes>
<attribute name="weight" value="bold"/> <attribute name="weight" value="bold"/>
</attributes> </attributes>
...@@ -55,7 +59,7 @@ ...@@ -55,7 +59,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="halign">end</property> <property name="halign">end</property>
<property name="valign">start</property> <property name="valign">center</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>
...@@ -66,11 +70,11 @@ ...@@ -66,11 +70,11 @@
<object class="GtkLabel"> <object class="GtkLabel">
<property name="visible">True</property> <property name="visible">True</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="valign">center</property>
<property name="margin_bottom">15</property> <property name="margin_bottom">15</property>
<property name="label" translatable="yes">Automatic updates are disabled when on mobile or metered connections.</property> <property name="label" translatable="yes">Automatic updates are disabled when on mobile or metered connections.</property>
<property name="wrap">True</property> <property name="wrap">True</property>
<property name="width_chars">28</property> <property name="wrap_mode">word-char</property>
<property name="max_width_chars">28</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<style> <style>
<class name="dim-label"/> <class name="dim-label"/>
...@@ -79,13 +83,18 @@ ...@@ -79,13 +83,18 @@
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
<property name="top_attach">1</property> <property name="top_attach">1</property>
<property name="width">2</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkLabel"> <object class="GtkLabel">
<property name="visible">True</property> <property name="visible">True</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="valign">center</property>
<property name="label" translatable="yes">Automatic Update Notifications</property> <property name="label" translatable="yes">Automatic Update Notifications</property>
<property name="wrap">True</property>
<property name="wrap_mode">word-char</property>
<property name="xalign">0</property>
<attributes> <attributes>
<attribute name="weight" value="bold"/> <attribute name="weight" value="bold"/>
</attributes> </attributes>
...@@ -99,10 +108,10 @@ ...@@ -99,10 +108,10 @@
<object class="GtkLabel"> <object class="GtkLabel">
<property name="visible">True</property> <property name="visible">True</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="valign">center</property>
<property name="label" translatable="yes">Show notifications when updates have been automatically installed.</property> <property name="label" translatable="yes">Show notifications when updates have been automatically installed.</property>
<property name="wrap">True</property> <property name="wrap">True</property>
<property name="width_chars">28</property> <property name="wrap_mode">word-char</property>
<property name="max_width_chars">28</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<style> <style>
<class name="dim-label"/> <class name="dim-label"/>
...@@ -111,6 +120,7 @@ ...@@ -111,6 +120,7 @@
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
<property name="top_attach">3</property> <property name="top_attach">3</property>
<property name="width">2</property>
</packing> </packing>
</child> </child>
<child> <child>
...@@ -118,7 +128,7 @@ ...@@ -118,7 +128,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="halign">end</property> <property name="halign">end</property>
<property name="valign">start</property> <property name="valign">center</property>
</object> </object>
<packing> <packing>
<property name="left_attach">1</property> <property name="left_attach">1</property>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment