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_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