commit 95e0f9b095ca78c2ef90b75513c7ddef73e2be90
parent 250b75942d6258490418eeb11728fdf10f791a2a
Author: William Casarin <jb55@jb55.com>
Date: Mon, 5 Jan 2026 13:58:54 -0800
nip51: weak text color for about
looks a bit better. also tweak text positioning
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/crates/notedeck_ui/src/nip51_set.rs b/crates/notedeck_ui/src/nip51_set.rs
@@ -346,7 +346,7 @@ fn render_profile_item(
if let Some(username) = name.username {
let galley = painter.layout_no_wrap(
format!("@{username}"),
- NotedeckTextStyle::Body.get_font_id(ui.ctx()),
+ NotedeckTextStyle::Small.get_font_id(ui.ctx()),
crate::colors::MID_GRAY,
);
@@ -356,7 +356,7 @@ fn render_profile_item(
let padding = name_rect.height() - galley.rect.height();
- pos.y += padding / 2.0;
+ pos.y += padding * 2.5;
pos
};
@@ -381,7 +381,9 @@ fn render_profile_item(
ui.add(
egui::Label::new(
- RichText::new(about).size(get_font_size(ui.ctx(), &NotedeckTextStyle::Heading4)),
+ RichText::new(about)
+ .color(ui.visuals().weak_text_color())
+ .size(get_font_size(ui.ctx(), &NotedeckTextStyle::Small)),
)
.selectable(false)
.truncate(),