From de7696d407427c8ef520d6d799b94ce6cd31f2a3 Mon Sep 17 00:00:00 2001 From: Keith Simmons Date: Sun, 23 Jan 2022 17:08:54 -0800 Subject: [PATCH] redraw after new default style --- src/editor/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/editor/mod.rs b/src/editor/mod.rs index d69b271..8a265a6 100644 --- a/src/editor/mod.rs +++ b/src/editor/mod.rs @@ -113,6 +113,9 @@ impl Editor { self.draw_command_batcher .queue(DrawCommand::DefaultStyleChanged(Style::new(colors))) .ok(); + self.redraw_screen(); + self.draw_command_batcher.send_batch(); + REDRAW_SCHEDULER.queue_next_frame(); } RedrawEvent::HighlightAttributesDefine { id, style } => { self.defined_styles.insert(id, Arc::new(style));