diff --git a/data/resources/ui/window.ui b/data/resources/ui/window.ui index 6ef8307..9c96688 100644 --- a/data/resources/ui/window.ui +++ b/data/resources/ui/window.ui @@ -168,7 +168,6 @@ - strict win.add_account @@ -176,44 +175,11 @@ New Account - - - True - crossfade - - - title - - - - - - - - - - search - - - 300 - 400 - - - Search… - - - - - Search - - - - - - - + + + - + menu @@ -226,7 +192,22 @@ system-search-symbolic Search - + + + + + + + + + + Search… + + + + + Search + diff --git a/src/widgets/window.rs b/src/widgets/window.rs index 9556cc3..9000caa 100644 --- a/src/widgets/window.rs +++ b/src/widgets/window.rs @@ -61,8 +61,6 @@ mod imp { #[template_child] pub empty_status_page: TemplateChild, #[template_child] - pub title_stack: TemplateChild, - #[template_child] pub unlock_button: TemplateChild, #[template_child] pub toast_overlay: TemplateChild, @@ -356,16 +354,4 @@ impl Window { fn on_search_stopped(&self, _entry: >k::SearchEntry) { self.imp().search_btn.set_active(false); } - - #[template_callback] - fn on_search_btn_toggled(&self, btn: >k::ToggleButton) { - let imp = self.imp(); - if btn.is_active() { - imp.title_stack.set_visible_child_name("search"); - imp.search_entry.grab_focus(); - } else { - imp.search_entry.set_text(""); - imp.title_stack.set_visible_child_name("title"); - } - } }