misc fixes

- add notedeck version number to support view & email body
- add milestone name below Damus logo in side panel
- remove search button in side panel
- remove fps counter & text mode in top bar
- remove 'add relay' button in settings view

Closes: #505
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2024-11-29 13:52:59 -05:00
committed by William Casarin
parent 42f9ec97a6
commit 0855186a8a
6 changed files with 43 additions and 60 deletions

View File

@@ -677,7 +677,7 @@ fn top_panel(ctx: &egui::Context) -> egui::TopBottomPanel {
.show_separator_line(false)
}
fn render_panel(ctx: &egui::Context, app: &mut Damus) {
fn render_panel(ctx: &egui::Context) {
top_panel(ctx).show(ctx, |ui| {
ui.with_layout(egui::Layout::right_to_left(egui::Align::TOP), |ui| {
ui.visuals_mut().button_frame = false;
@@ -687,53 +687,6 @@ fn render_panel(ctx: &egui::Context, app: &mut Damus) {
{
ctx.set_visuals(new_visuals)
}
if ui
.add(egui::Button::new("A").frame(false))
.on_hover_text("Text mode")
.clicked()
{
app.textmode = !app.textmode;
}
/*
if ui
.add(egui::Button::new("+").frame(false))
.on_hover_text("Add Timeline")
.clicked()
{
app.n_panels += 1;
}
if app.n_panels != 1
&& ui
.add(egui::Button::new("-").frame(false))
.on_hover_text("Remove Timeline")
.clicked()
{
app.n_panels -= 1;
}
*/
//#[cfg(feature = "profiling")]
{
ui.weak(format!(
"FPS: {:.2}, {:10.1}ms",
app.frame_history.fps(),
app.frame_history.mean_frame_time() * 1e3
));
/*
if !app.timelines().count().is_empty() {
ui.weak(format!(
"{} notes",
&app.timelines()
.notes(ViewFilter::NotesAndReplies)
.len()
));
}
*/
}
});
});
}
@@ -770,7 +723,7 @@ fn main_panel(style: &Style, narrow: bool) -> egui::CentralPanel {
}
fn render_damus_desktop(ctx: &egui::Context, app: &mut Damus) {
render_panel(ctx, app);
render_panel(ctx);
#[cfg(feature = "profiling")]
puffin::profile_function!();