From 2741bf21ae6d53324a512dacef65d540be840fe4 Mon Sep 17 00:00:00 2001 From: Teemu Ikonen Date: Mon, 12 Sep 2022 17:07:14 +0300 Subject: [PATCH] Convert main window layout to 2 vertical boxes Use Adw.Window as main window widget, add the now missing HeaderBars to MainWindowPlaceholder and MainWindow in the NoCSD case. --- main/data/unified_main_content.ui | 177 +++++++++++++----------- main/data/unified_window_placeholder.ui | 12 +- main/src/ui/main_window.vala | 32 ++--- 3 files changed, 118 insertions(+), 103 deletions(-) diff --git a/main/data/unified_main_content.ui b/main/data/unified_main_content.ui index 3fb7b6e5..f1294ab9 100644 --- a/main/data/unified_main_content.ui +++ b/main/data/unified_main_content.ui @@ -7,68 +7,22 @@ False 300 - + + vertical - - content - - - never - - - - - - - - - - - placeholder - - - 20 - 20 - 20 - 20 - 10 - start - start - - - start - - - - - - 1 - 70 - 50 - end - Click here to start a conversation or join a channel. - - - - - - - - - - - - - + + False content - + + never + 1 + + + + @@ -78,16 +32,17 @@ placeholder - vertical - 1 - 1 - center - center + 20 + 20 + 20 + 20 + 10 + start + start + 260 - - im.dino.Dino-symbolic - 144 - 30 + + start @@ -95,13 +50,16 @@ - You have no open chats + 1 + 70 + 50 + 0 + end + 0 + Click here to start a conversation or join a channel. - - - @@ -109,22 +67,79 @@ - - - - end - slide-left - + + + + + + vertical + + - - 400 + + + + content + + + + + + + + + placeholder + + + vertical + 1 + 1 + center + center + + + im.dino.Dino-symbolic + 144 + 30 + + + + + + You have no open chats + + + + + + + + + + + + + end + slide-left + + + + 400 + + + + - \ No newline at end of file + diff --git a/main/data/unified_window_placeholder.ui b/main/data/unified_window_placeholder.ui index 997d7220..91958077 100644 --- a/main/data/unified_window_placeholder.ui +++ b/main/data/unified_window_placeholder.ui @@ -2,13 +2,19 @@