diff --git a/src/ui/notification.rs b/src/ui/notification.rs index 5c43bac..a256da4 100644 --- a/src/ui/notification.rs +++ b/src/ui/notification.rs @@ -97,7 +97,7 @@ impl NotifWin { // otherwise, there was a notification before but there // isn't now, so erase self.window.erase(); - self.window.bkgd(pancurses::ColorPair( + self.window.bkgdset(pancurses::ColorPair( self.colors.get(ColorType::Normal) as u8 )); self.window.refresh(); @@ -251,7 +251,7 @@ impl NotifWin { ); oldwin.delwin(); - self.window.bkgd(pancurses::ColorPair( + self.window.bkgdset(pancurses::ColorPair( self.colors.get(ColorType::Normal) as u8 )); if let Some(curr) = &self.current_msg { diff --git a/src/ui/panel.rs b/src/ui/panel.rs index 0f185b8..179f55d 100644 --- a/src/ui/panel.rs +++ b/src/ui/panel.rs @@ -60,7 +60,7 @@ impl Panel { /// Redraws borders and refreshes the window to display on terminal. pub fn refresh(&self) { - self.window.bkgd(pancurses::ColorPair( + self.window.bkgdset(pancurses::ColorPair( self.colors.get(ColorType::Normal) as u8 )); self.draw_border(); @@ -99,7 +99,7 @@ impl Panel { /// not refresh the screen. pub fn erase(&self) { self.window.erase(); - self.window.bkgd(pancurses::ColorPair( + self.window.bkgdset(pancurses::ColorPair( self.colors.get(ColorType::Normal) as u8 )); self.draw_border();