From 4b391f3f31c2272be11a24c8301641b045260e99 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sun, 25 Dec 2022 18:04:26 +0100 Subject: [PATCH] Use Adw.StatusPage instead of custom placeholders --- main/data/global_search.ui | 82 +++--------------- main/data/theme.css | 4 + main/data/unified_main_content.ui | 64 +++----------- main/data/unified_window_placeholder.ui | 86 +++++++------------ .../occupants_entry.vala | 2 +- main/src/ui/main_window.vala | 19 ++-- 6 files changed, 68 insertions(+), 189 deletions(-) diff --git a/main/data/global_search.ui b/main/data/global_search.ui index a29c48de..610bcace 100644 --- a/main/data/global_search.ui +++ b/main/data/global_search.ui @@ -19,40 +19,13 @@ empty - - vertical - 10 - center - - - system-search-symbolic - large - 72 - - - - - - No active search - - - - - - - - - - Type to start a search - - - + + + system-search-symbolic + No active search + Type to start a search @@ -61,40 +34,13 @@ no-result - - vertical - 10 - center - - - face-uncertain-symbolic - large - 72 - - - - - - No matching messages - - - - - - - - - - Check the spelling or try to remove filters - - - + + + face-uncertain-symbolic + No matching messages + Check the spelling or try to remove filters diff --git a/main/data/theme.css b/main/data/theme.css index 3d24750e..6b93bc8f 100644 --- a/main/data/theme.css +++ b/main/data/theme.css @@ -3,6 +3,10 @@ * It provides sane defaults for things that are very Dino-specific. */ +statuspage { + opacity: 0.5; +} + window.dino-main .dino-header-right { background: @theme_base_color; } diff --git a/main/data/unified_main_content.ui b/main/data/unified_main_content.ui index 83cfc942..a66275de 100644 --- a/main/data/unified_main_content.ui +++ b/main/data/unified_main_content.ui @@ -30,37 +30,18 @@ placeholder - + + 20 20 20 20 - 10 - start - start 260 - - - start - - - - - - 1 - 70 - 50 - 0 - end - 0 - Click here to start a conversation or join a channel. - - - + + You have no open chats + Click + to start a conversation or join a channel @@ -89,33 +70,10 @@ placeholder - - vertical - 1 - 1 - center - center - - - im.dino.Dino-symbolic - 144 - 30 - - - - - - You have no open chats - - - - - - + + im.dino.Dino-symbolic + True + True 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 @@