Fix menubar color

This commit is contained in:
Alexandre Bury 2021-01-19 09:46:59 -08:00
parent b4ed78d514
commit 9ef50a1827
2 changed files with 10 additions and 2 deletions

View File

@ -1,6 +1,12 @@
# Changelog # 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 ### Breaking Changes

View File

@ -134,7 +134,9 @@ impl Cursive {
// Draw the menubar? // Draw the menubar?
if self.menubar.visible() { if self.menubar.visible() {
let printer = printer.focused(self.menubar.receive_events()); 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 // finally draw stackview layers