[gnome-todo] empty-list-widget: Use a center box to align the widgetry
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] empty-list-widget: Use a center box to align the widgetry
- Date: Tue, 13 Apr 2021 15:00:27 +0000 (UTC)
commit ab998b50391744a2bd24159babfc860b02590e46
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Apr 12 21:16:17 2021 -0300
empty-list-widget: Use a center box to align the widgetry
src/gui/gtd-empty-list-widget.ui | 57 ++++++++++++++++++++++++++--------------
1 file changed, 37 insertions(+), 20 deletions(-)
---
diff --git a/src/gui/gtd-empty-list-widget.ui b/src/gui/gtd-empty-list-widget.ui
index e49041f5..850672e8 100644
--- a/src/gui/gtd-empty-list-widget.ui
+++ b/src/gui/gtd-empty-list-widget.ui
@@ -1,34 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="GtdEmptyListWidget" parent="GtkBox">
+ <property name="hexpand">true</property>
+ <property name="vexpand">true</property>
<property name="margin-top">24</property>
<property name="margin-bottom">24</property>
<property name="margin-start">24</property>
<property name="margin-end">24</property>
<property name="orientation">vertical</property>
<property name="spacing">12</property>
+
<child>
- <object class="GtkPicture">
- <property name="vexpand">1</property>
- <property name="can-shrink">true</property>
- <property name="keep-aspect-ratio">true</property>
- <property name="file">resource:///org/gnome/todo/ui/assets/all-done.svg</property>
- </object>
- </child>
- <child>
- <object class="GtkLabel" id="title_label">
- <attributes>
- <attribute name="weight" value="bold"></attribute>
- <attribute name="scale" value="1.44"></attribute>
- </attributes>
- </object>
- </child>
- <child>
- <object class="GtkLabel" id="subtitle_label">
- <style>
- <class name="dim-label"/>
- </style>
+ <object class="GtkCenterBox">
+ <child type="center">
+ <object class="GtkBox">
+ <property name="margin-top">24</property>
+ <property name="margin-bottom">24</property>
+ <property name="margin-start">24</property>
+ <property name="margin-end">24</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">12</property>
+ <child>
+ <object class="GtkPicture">
+ <property name="can-shrink">true</property>
+ <property name="keep-aspect-ratio">true</property>
+ <property name="file">resource:///org/gnome/todo/ui/assets/all-done.svg</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="title_label">
+ <attributes>
+ <attribute name="weight" value="bold"></attribute>
+ <attribute name="scale" value="1.44"></attribute>
+ </attributes>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel" id="subtitle_label">
+ <style>
+ <class name="dim-label"/>
+ </style>
+ </object>
+ </child>
+ </object>
+ </child>
</object>
</child>
+
</template>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]