Stop showing all events marked as 'new' (we will bring back this feature later)

This commit is contained in:
Mike Dilger 2023-01-04 12:59:50 +13:00
parent 33f1571535
commit 78f4950cb8

View File

@ -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| {