Skip to content

Commit ef9eb85

Browse files
committed
style hashtag button
Signed-off-by: kernelkind <[email protected]>
1 parent 236d168 commit ef9eb85

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/ui/add_column.rs

+10-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use serde::{Deserialize, Serialize};
33
use std::collections::HashMap;
44

55
use egui::{
6-
pos2, vec2, Align, Color32, FontId, Id, ImageSource, Margin, Pos2, Rect, RichText, Separator,
7-
Ui, Vec2,
6+
pos2, vec2, Align, Button, Color32, FontId, Id, ImageSource, Margin, Pos2, Rect, RichText,
7+
Separator, Ui, Vec2,
88
};
99
use nostrdb::Ndb;
1010
use tracing::error;
@@ -417,7 +417,14 @@ pub fn hashtag_ui(
417417
.margin(Margin::same(12.0));
418418
ui.add(text_edit);
419419

420-
if ui.button("Add").clicked() {
420+
ui.add_space(8.0);
421+
if ui
422+
.add_sized(
423+
egui::vec2(50.0, 40.0),
424+
Button::new("Add").rounding(8.0).fill(crate::colors::PINK),
425+
)
426+
.clicked()
427+
{
421428
let resp = AddColumnOption::Hashtag(text_buffer.to_owned()).take_as_response(ndb, None);
422429
id_string_map.remove(&id);
423430
resp

0 commit comments

Comments
 (0)