mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-18 17:14:21 +01:00
columns/add: move home and notifications to top
more intuitive Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user