[gnome-todo/wip/cdavis/sidebar-style-consistency: 5/6] sidebar: Use AdwStatusPage for archive placeholder
- From: Christopher Davis <christopherdavis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo/wip/cdavis/sidebar-style-consistency: 5/6] sidebar: Use AdwStatusPage for archive placeholder
- Date: Fri, 29 Oct 2021 07:32:44 +0000 (UTC)
commit c8096a7fbc32c8ac4f298108e22e524f98928b01
Author: Christopher Davis <christopherdavis gnome org>
Date: Fri Oct 29 00:14:57 2021 -0700
sidebar: Use AdwStatusPage for archive placeholder
Since this is a full-width view we can safely
use AdwStatusPage with the `.compact` style class.
src/plugins/task-lists-workspace/gtd-sidebar.ui | 30 +++++--------------------
1 file changed, 6 insertions(+), 24 deletions(-)
---
diff --git a/src/plugins/task-lists-workspace/gtd-sidebar.ui b/src/plugins/task-lists-workspace/gtd-sidebar.ui
index 26270792..b5db4e39 100644
--- a/src/plugins/task-lists-workspace/gtd-sidebar.ui
+++ b/src/plugins/task-lists-workspace/gtd-sidebar.ui
@@ -123,30 +123,12 @@
</style>
<child type="placeholder">
- <object class="GtkBox">
- <property name="halign">center</property>
- <property name="valign">center</property>
- <property name="hexpand">1</property>
- <property name="vexpand">1</property>
- <property name="orientation">vertical</property>
- <property name="spacing">18</property>
- <child>
- <object class="GtkImage">
- <property name="pixel_size">64</property>
- <property name="icon_name">folder-symbolic</property>
- <style>
- <class name="dim-label"/>
- </style>
- </object>
- </child>
- <child>
- <object class="GtkLabel">
- <property name="label" translatable="yes">No archived lists</property>
- <style>
- <class name="dim-label"/>
- </style>
- </object>
- </child>
+ <object class="AdwStatusPage">
+ <property name="title" translatable="yes">No archived lists</property>
+ <property name="icon_name">folder-symbolic</property>
+ <style>
+ <class name="compact"/>
+ </style>
</object>
</child>
</object>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]