commit c5093a718093701f0f068ba8cddaa1ea5820623c
parent f39d554c96ccf0b8a07ce942fe5776a1481fb0de
Author: William Casarin <jb55@jb55.com>
Date: Thu, 10 Jul 2025 13:36:57 -0700
columns/add: move home and notifications to top
more intuitive
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
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
@@ -444,23 +444,14 @@ 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",
@@ -469,6 +460,12 @@ impl<'a> AddColumnView<'a> {
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",
icon: app_images::hashtag_image(),