diff options
author | fiaxh <git@lightrise.org> | 2022-12-25 18:04:26 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2023-01-24 19:20:43 +0100 |
commit | 4b391f3f31c2272be11a24c8301641b045260e99 (patch) | |
tree | 6ded080a20fe7d0feae396d3843f6013e410cbe6 /main/data/unified_window_placeholder.ui | |
parent | 92aca5672db723121471e513e83b68742761d1b5 (diff) | |
download | dino-4b391f3f31c2272be11a24c8301641b045260e99.tar.gz dino-4b391f3f31c2272be11a24c8301641b045260e99.zip |
Use Adw.StatusPage instead of custom placeholders
Diffstat (limited to 'main/data/unified_window_placeholder.ui')
-rw-r--r-- | main/data/unified_window_placeholder.ui | 86 |
1 files changed, 32 insertions, 54 deletions
diff --git a/main/data/unified_window_placeholder.ui b/main/data/unified_window_placeholder.ui index 91958077..123920fe 100644 --- a/main/data/unified_window_placeholder.ui +++ b/main/data/unified_window_placeholder.ui @@ -2,69 +2,47 @@ <interface> <requires lib="gtk" version="4.0"/> <template class="DinoUiMainWindowPlaceholder"> - <property name="valign">fill</property> <child> <object class="GtkBox" id="box"> <property name="orientation">vertical</property> - <property name="valign">fill</property> - <property name="halign">fill</property> - <property name="hexpand">1</property> - <property name="vexpand">1</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> <child> <object class="GtkHeaderBar"> <property name="show-title-buttons">true</property> </object> </child> <child> - <object class="GtkImage"> - <property name="icon-name">im.dino.Dino-symbolic</property> - <property name="pixel-size">144</property> - <property name="margin-start">30</property> - <property name="margin-end">30</property> - <property name="margin-top">30</property> - <property name="margin-bottom">30</property> - <style> - <class name="dim-label"/> - </style> - </object> - </child> - <child> - <object class="GtkLabel" id="title_label"> - <property name="visible">0</property> - <style> - <class name="dim-label"/> - </style> - <attributes> - <attribute name="scale" value="1.3"></attribute> - </attributes> - </object> - </child> - <child> - <object class="GtkLabel" id="label"> - <property name="margin-top">5</property> - <style> - <class name="dim-label"/> - </style> - </object> - </child> - <child> - <object class="GtkButton" id="primary_button"> - <property name="margin-top">15</property> - <property name="halign">center</property> - <style> - <class name="text-button"/> - <class name="suggested-action"/> - </style> - </object> - </child> - <child> - <object class="GtkButton" id="secondary_button"> - <property name="visible">0</property> - <property name="halign">center</property> -<!-- <property name="no_show_all">True</property>--> - <style> - <class name="text-button"/> - </style> + <object class="GtkBox"> + <property name="orientation">vertical</property> + <property name="valign">center</property> + <property name="hexpand">True</property> + <property name="vexpand">True</property> + <child> + <object class="AdwStatusPage" id="status_page"> + <property name="icon-name">im.dino.Dino-symbolic</property> + </object> + </child> + <child> + <object class="GtkButton" id="primary_button"> + <property name="halign">center</property> + <property name="visible">False</property> + <style> + <class name="text-button"/> + <class name="suggested-action"/> + </style> + </object> + </child> + <child> + <object class="GtkButton" id="secondary_button"> + <property name="visible">0</property> + <property name="halign">center</property> + <property name="visible">False</property> + <style> + <class name="text-button"/> + </style> + </object> + </child> </object> </child> </object> |