From c5093a718093701f0f068ba8cddaa1ea5820623c Mon Sep 17 00:00:00 2001 From: William Casarin Date: Thu, 10 Jul 2025 13:36:57 -0700 Subject: [PATCH] columns/add: move home and notifications to top more intuitive Signed-off-by: William Casarin --- crates/notedeck_columns/src/ui/add_column.rs | 25 +++++++++----------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/crates/notedeck_columns/src/ui/add_column.rs b/crates/notedeck_columns/src/ui/add_column.rs index 0208de75..c07c9383 100644 --- a/crates/notedeck_columns/src/ui/add_column.rs +++ b/crates/notedeck_columns/src/ui/add_column.rs @@ -443,24 +443,15 @@ impl<'a> AddColumnView<'a> { fn get_base_options(&self, ui: &mut Ui) -> Vec { let mut vec = Vec::new(); - vec.push(ColumnOptionData { - title: "Universe", - description: "See the whole nostr universe", - icon: app_images::universe_image(), - option: AddColumnOption::Universe, - }); - - let source = if self.cur_account.key.secret_key.is_some() { - PubkeySource::DeckAuthor - } else { - PubkeySource::Explicit(self.cur_account.key.pubkey) - }; - vec.push(ColumnOptionData { title: "Home", description: "See notes from your contacts", icon: app_images::home_image(), - option: AddColumnOption::Contacts(source), + option: AddColumnOption::Contacts(if self.cur_account.key.secret_key.is_some() { + PubkeySource::DeckAuthor + } else { + PubkeySource::Explicit(self.cur_account.key.pubkey) + }), }); vec.push(ColumnOptionData { title: "Notifications", @@ -468,6 +459,12 @@ impl<'a> AddColumnView<'a> { icon: app_images::notifications_image(ui.visuals().dark_mode), option: AddColumnOption::UndecidedNotification, }); + vec.push(ColumnOptionData { + title: "Universe", + description: "See the whole nostr universe", + icon: app_images::universe_image(), + option: AddColumnOption::Universe, + }); vec.push(ColumnOptionData { title: "Hashtags", description: "Stay up to date with a certain hashtag",