diff --git a/assets/icons/reply-dark.png b/assets/icons/reply-dark.png
deleted file mode 100644
index fabe1b05..00000000
Binary files a/assets/icons/reply-dark.png and /dev/null differ
diff --git a/assets/icons/reply.png b/assets/icons/reply.png
deleted file mode 100644
index d85a55e0..00000000
Binary files a/assets/icons/reply.png and /dev/null differ
diff --git a/assets/icons/reply.svg b/assets/icons/reply.svg
index 11076bd8..db373c3d 100644
--- a/assets/icons/reply.svg
+++ b/assets/icons/reply.svg
@@ -1 +1,6 @@
-
+
+
\ No newline at end of file
diff --git a/assets/icons/repost.svg b/assets/icons/repost.svg
new file mode 100644
index 00000000..c48957c8
--- /dev/null
+++ b/assets/icons/repost.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/icons/repost_icon_4x.png b/assets/icons/repost_icon_4x.png
deleted file mode 100644
index 6573f8f1..00000000
Binary files a/assets/icons/repost_icon_4x.png and /dev/null differ
diff --git a/assets/icons/repost_light.png b/assets/icons/repost_light.png
new file mode 100644
index 00000000..57efa20d
Binary files /dev/null and b/assets/icons/repost_light.png differ
diff --git a/assets/icons/repost_light_4x.png b/assets/icons/repost_light_4x.png
deleted file mode 100644
index 67646de7..00000000
Binary files a/assets/icons/repost_light_4x.png and /dev/null differ
diff --git a/assets/icons/zap.svg b/assets/icons/zap.svg
new file mode 100644
index 00000000..f1983004
--- /dev/null
+++ b/assets/icons/zap.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/assets/icons/zap_4x.png b/assets/icons/zap_4x.png
deleted file mode 100644
index cc231965..00000000
Binary files a/assets/icons/zap_4x.png and /dev/null differ
diff --git a/crates/notedeck_columns/src/ui/add_column.rs b/crates/notedeck_columns/src/ui/add_column.rs
index 508e8076..98a97c01 100644
--- a/crates/notedeck_columns/src/ui/add_column.rs
+++ b/crates/notedeck_columns/src/ui/add_column.rs
@@ -2,8 +2,8 @@ use core::f32;
use std::collections::HashMap;
use egui::{
- pos2, vec2, Align, Color32, FontId, Id, Image, Margin, Pos2, Rect, RichText, Separator, Ui,
- Vec2, Widget,
+ pos2, vec2, Align, Color32, FontId, Id, Image, Margin, Pos2, Rect, RichText, ScrollArea,
+ Separator, Ui, Vec2, Widget,
};
use enostr::Pubkey;
use nostrdb::{Ndb, Transaction};
@@ -184,17 +184,21 @@ impl<'a> AddColumnView<'a> {
}
pub fn ui(&mut self, ui: &mut Ui) -> Option {
- let mut selected_option: Option = None;
- for column_option_data in self.get_base_options() {
- let option = column_option_data.option.clone();
- if self.column_option_ui(ui, column_option_data).clicked() {
- selected_option = Some(option.take_as_response(self.cur_account));
- }
+ ScrollArea::vertical()
+ .show(ui, |ui| {
+ let mut selected_option: Option = None;
+ for column_option_data in self.get_base_options() {
+ let option = column_option_data.option.clone();
+ if self.column_option_ui(ui, column_option_data).clicked() {
+ selected_option = Some(option.take_as_response(self.cur_account));
+ }
- ui.add(Separator::default().spacing(0.0));
- }
+ ui.add(Separator::default().spacing(0.0));
+ }
- selected_option
+ selected_option
+ })
+ .inner
}
fn notifications_ui(&mut self, ui: &mut Ui) -> Option {
diff --git a/crates/notedeck_ui/src/app_images.rs b/crates/notedeck_ui/src/app_images.rs
index 627b8d40..4e80d508 100644
--- a/crates/notedeck_ui/src/app_images.rs
+++ b/crates/notedeck_ui/src/app_images.rs
@@ -1,5 +1,5 @@
use eframe::icon_data::from_png_bytes;
-use egui::{include_image, IconData, Image};
+use egui::{include_image, Color32, IconData, Image};
pub fn app_icon() -> IconData {
from_png_bytes(include_bytes!("../../../assets/damus-app-icon.png")).expect("icon")
@@ -153,19 +153,19 @@ pub fn notifications_image() -> Image<'static> {
))
}
pub fn repost_dark_image() -> Image<'static> {
- Image::new(include_image!("../../../assets/icons/repost_icon_4x.png"))
+ Image::new(include_image!("../../../assets/icons/repost.svg"))
}
pub fn repost_light_image() -> Image<'static> {
- Image::new(include_image!("../../../assets/icons/repost_light_4x.png"))
+ Image::new(include_image!("../../../assets/icons/repost_light.png"))
}
pub fn reply_dark_image() -> Image<'static> {
- Image::new(include_image!("../../../assets/icons/reply.png"))
+ Image::new(include_image!("../../../assets/icons/reply.svg"))
}
pub fn reply_light_image() -> Image<'static> {
- Image::new(include_image!("../../../assets/icons/reply-dark.png"))
+ Image::new(include_image!("../../../assets/icons/reply.svg")).tint(Color32::BLACK)
}
pub fn profile_image() -> Image<'static> {
@@ -203,5 +203,5 @@ pub fn wallet_image() -> Image<'static> {
}
pub fn zap_image() -> Image<'static> {
- Image::new(include_image!("../../../assets/icons/zap_4x.png"))
+ Image::new(include_image!("../../../assets/icons/zap.svg"))
}
diff --git a/crates/notedeck_ui/src/note/mod.rs b/crates/notedeck_ui/src/note/mod.rs
index b4713ba6..aba42812 100644
--- a/crates/notedeck_ui/src/note/mod.rs
+++ b/crates/notedeck_ui/src/note/mod.rs
@@ -30,6 +30,10 @@ use notedeck::{
NotedeckTextStyle, ZapTarget, Zaps,
};
+const ACTION_BAR_ICON_SIZE: f32 = 14.0;
+const ACTION_BAR_EXPAND_SIZE: f32 = 5.0;
+const ACTION_BAR_ANIM_SPEED: f32 = 0.05;
+
pub struct NoteView<'a, 'd> {
note_context: &'a mut NoteContext<'d>,
zapping_acc: Option<&'a KeypairUnowned<'a>>,
@@ -67,14 +71,6 @@ impl NoteResponse {
}
}
-/*
-impl View for NoteView<'_, '_> {
- fn ui(&mut self, ui: &mut egui::Ui) {
- self.show(ui);
- }
-}
-*/
-
impl egui::Widget for &mut NoteView<'_, '_> {
fn ui(self, ui: &mut egui::Ui) -> egui::Response {
self.show(ui).response
@@ -784,73 +780,91 @@ fn render_note_actionbar(
note_pubkey: &[u8; 32],
note_key: NoteKey,
) -> egui::InnerResponse