columns/add: move home and notifications to top

more intuitive

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-07-10 13:36:57 -07:00
parent f39d554c96
commit c5093a7180

View File

@@ -443,24 +443,15 @@ impl<'a> AddColumnView<'a> {
fn get_base_options(&self, ui: &mut Ui) -> Vec<ColumnOptionData> {
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",