Commit 25ff947e authored by Adrien Plazas's avatar Adrien Plazas
Browse files

librem5: upgrade-banner: Make it fit narrow screens

This makes it work on mobile but not on desktops.
parent 489a847c
......@@ -17,8 +17,13 @@
<property name="visible">True</property>
<property name="margin-top">66</property>
<property name="margin_bottom">26</property>
<property name="margin_start">8</property>
<property name="margin_end">8</property>
<!-- Just a placeholder; actual label text is set in code -->
<property name="label">GNOME 3.20 Now Available</property>
<property name="wrap">True</property>
<property name="wrap_mode">word-char</property>
<property name="justify">center</property>
<attributes>
<attribute name="scale" value="1.8"/>
</attributes>
......@@ -27,7 +32,12 @@
<child>
<object class="GtkLabel" id="label_upgrades_summary">
<property name="visible">True</property>
<property name="margin_start">8</property>
<property name="margin_end">8</property>
<property name="label" translatable="yes">A major upgrade, with new features and added polish.</property>
<property name="wrap">True</property>
<property name="wrap_mode">word-char</property>
<property name="justify">center</property>
<attributes>
<attribute name="scale" value="1.2"/>
</attributes>
......@@ -36,7 +46,7 @@
<child>
<object class="GtkBox" id="box_upgrades_buttons">
<property name="visible">True</property>
<property name="orientation">horizontal</property>
<property name="orientation">vertical</property>
<property name="halign">fill</property>
<property name="valign">end</property>
<property name="spacing">12</property>
......@@ -65,10 +75,15 @@
</object>
</child>
<child>
<object class="HdyColumn">
<property name="visible">True</property>
<property name="maximum_width">400</property>
<property name="linear_growth_width">300</property>
<property name="hexpand">True</property>
<child>
<object class="GtkProgressBar" id="progressbar">
<property name="visible">True</property>
<property name="width_request">400</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="fraction">0.3</property>
......@@ -78,6 +93,8 @@
</style>
</object>
</child>
</object>
</child>
<child>
<object class="GtkLabel" id="label_upgrades_warning">
......
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