From 9ef50a182794fb02115f4cf2ccfe32aa88588dc1 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Tue, 19 Jan 2021 09:46:59 -0800 Subject: [PATCH] Fix menubar color --- CHANGELOG.md | 8 +++++++- cursive-core/src/cursive.rs | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9be77f7..e54316e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Changelog -## Next version (cursive-core 0.2.0, cursive 0.16) +## cursive-core 0.2.1 + +### Bugfixes + +- Fix colors in menubar. + +## cursive-core 0.2.0, cursive 0.16 ### Breaking Changes diff --git a/cursive-core/src/cursive.rs b/cursive-core/src/cursive.rs index 3f0bf45..40e3fab 100644 --- a/cursive-core/src/cursive.rs +++ b/cursive-core/src/cursive.rs @@ -134,7 +134,9 @@ impl Cursive { // Draw the menubar? if self.menubar.visible() { let printer = printer.focused(self.menubar.receive_events()); - self.menubar.draw(&printer); + printer.with_color(theme::ColorStyle::primary(), |printer| { + self.menubar.draw(&printer) + }); } // finally draw stackview layers