From 7a7d586fa9e5f47c72e05318eca4c2d49bb27a79 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Fri, 29 Sep 2023 10:23:24 -0400 Subject: [PATCH] Bugfix: use View style rather than Primary in ThemedView --- cursive-core/src/views/themed_view.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cursive-core/src/views/themed_view.rs b/cursive-core/src/views/themed_view.rs index a79f4af6..cbb3bd2a 100644 --- a/cursive-core/src/views/themed_view.rs +++ b/cursive-core/src/views/themed_view.rs @@ -29,7 +29,7 @@ impl ViewWrapper for ThemedView { wrap_impl!(self.view: T); fn wrap_draw(&self, printer: &crate::Printer) { - // Hack: We need to re-apply the Primary style. + // Hack: We need to re-apply the View (+Primary) style. // // InheritParent would not be enough because it re-uses the previous _concrete color_ // (after the theme is applied), so it would not pick up the theme new colors. @@ -37,7 +37,7 @@ impl ViewWrapper for ThemedView { // but that's not easy for now. printer .theme(&self.theme) - .with_style(crate::theme::PaletteStyle::Primary, |printer| { + .with_style(crate::theme::PaletteStyle::View, |printer| { self.view.draw(printer); }); }