From 0adbc889b29607ce46292084f4785b94abcdc11b Mon Sep 17 00:00:00 2001 From: Elias Projahn Date: Fri, 9 Oct 2020 20:19:46 +0200 Subject: [PATCH] Simplify state management for main window --- res/ui/window.ui | 640 +++++++++++++++++++++++++---------------------- src/window.rs | 263 ++++++++++--------- 2 files changed, 488 insertions(+), 415 deletions(-) diff --git a/res/ui/window.ui b/res/ui/window.ui index 6d779b5..6423fe1 100644 --- a/res/ui/window.ui +++ b/res/ui/window.ui @@ -1,40 +1,41 @@ - + - False - 800 - 566 + False + 800 + 566 True - sidebar_box - True + False + sidebar_box + True - True - False - vertical 250 + True + False False + vertical True - False - True + False + True True - True - True - add_menu + True + True + add_menu True - False - list-add-symbolic + False + list-add-symbolic @@ -42,21 +43,21 @@ True - True - False - True - add_menu + True + False + True + add_menu True - False - open-menu-symbolic + False + open-menu-symbolic - end - 0 + end + 1 @@ -69,21 +70,21 @@ True - False + False True True - False + False 400 True - True - edit-find-symbolic - False - False - Search persons and ensembles … + True + edit-find-symbolic + False + False + Search persons and ensembles … @@ -96,28 +97,49 @@ - + True - True + False + crossfade - + True - False - none + False + True + + + loading + + + + + True + True - + True - False - - + False + none + + True - False - No persons found. + False + + + True + False + No persons found. + + + + persons_list + 1 + @@ -127,11 +149,14 @@ + + sidebar + True - False + False vertical