From a35d8671921c4b91df3a025a273fcfb4268a68f6 Mon Sep 17 00:00:00 2001 From: Adrien Plazas Date: Tue, 6 Apr 2021 10:06:32 +0200 Subject: [PATCH] ui: Homogeneize the panels This makes the right panel take 50% of the window when it is wide enough, and make the two other panels share the remaining 50%. --- src/client/application/application-main-window.vala | 1 - ui/application-main-window.ui | 12 +++++++++++- ui/components-main-toolbar.ui | 8 +++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/client/application/application-main-window.vala b/src/client/application/application-main-window.vala index 46f0d929..8e969d10 100644 --- a/src/client/application/application-main-window.vala +++ b/src/client/application/application-main-window.vala @@ -1351,7 +1351,6 @@ public class Application.MainWindow : ); this.conversation_viewer.hexpand = true; - this.conversation_size_group.add_widget(this.conversation_viewer); this.conversation_viewer_box.add(this.conversation_viewer); // Main toolbar diff --git a/ui/application-main-window.ui b/ui/application-main-window.ui index 374c14c2..dc841501 100644 --- a/ui/application-main-window.ui +++ b/ui/application-main-window.ui @@ -27,7 +27,7 @@ True - True + True True over @@ -147,6 +147,7 @@ True + True vertical @@ -195,6 +196,12 @@ + + + + + + horizontal @@ -221,6 +228,9 @@ horizontal + + + diff --git a/ui/components-main-toolbar.ui b/ui/components-main-toolbar.ui index 0a87acec..97bf050f 100644 --- a/ui/components-main-toolbar.ui +++ b/ui/components-main-toolbar.ui @@ -9,9 +9,9 @@ True + True True over - True True @@ -212,6 +212,12 @@ + + + + + +