[fractal/fractal-next] login: Put the listbox into a clamp



commit e6609fc30faad4df6412d0d21f54b44b0e01045b
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Fri May 28 12:11:34 2021 +0200

    login: Put the listbox into a clamp
    
    This uses a clamp to more finely control the width of the login listbox,
    making it look less cramped when the window is large.
    
    This purposefully leaves the indentaton broken the make the changes
    easier to read. They will be fixed in the next commit.

 data/resources/ui/login.ui | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/data/resources/ui/login.ui b/data/resources/ui/login.ui
index f2c0eef8..738aae32 100644
--- a/data/resources/ui/login.ui
+++ b/data/resources/ui/login.ui
@@ -47,11 +47,14 @@
                  <object class="AdwStatusPage">
                    <property name="icon-name">welcome</property>
                    <property name="title" translatable="yes">Welcome to Fractal</property>
+                   <child>
+                     <object class="AdwClamp">
+                       <property name="maximum-size">400</property>
+                       <property name="tightening-threshold">300</property>
                    <child>
                      <object class="GtkBox">
                        <property name="orientation">vertical</property>
                        <property name="spacing">18</property>
-                       <property name="halign">center</property>
                        <child>
                          <object class="GtkLabel" id="error_message">
                            <property name="visible">False</property>
@@ -128,6 +131,8 @@
                      </object>
                    </child>
                  </object>
+                   </child>
+                 </object>
                </property>
              </object>
            </child>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]