From 78f4950cb8d663998994cc12b1ab1f5852d8bab5 Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Wed, 4 Jan 2023 12:59:50 +1300 Subject: [PATCH] Stop showing all events marked as 'new' (we will bring back this feature later) --- src/ui/feed.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ui/feed.rs b/src/ui/feed.rs index ef03413a..eb679e94 100644 --- a/src/ui/feed.rs +++ b/src/ui/feed.rs @@ -356,6 +356,7 @@ fn render_post_actual( // Try LayoutJob + /* currently all events are new because the code that stales them is now gone #[allow(clippy::collapsible_else_if)] let bgcolor = if GLOBALS.event_is_new.blocking_read().contains(&event.id) { if ctx.style().visuals.dark_mode { @@ -370,6 +371,13 @@ fn render_post_actual( Color32::WHITE } }; + */ + + let bgcolor = if ctx.style().visuals.dark_mode { + Color32::BLACK + } else { + Color32::WHITE + }; Frame::none().fill(bgcolor).show(ui, |ui| { ui.horizontal(|ui| {