Fixed a theming issue with the new header style.

This commit is contained in:
casey langen 2020-11-01 01:26:14 +00:00
parent 8737abc0ec
commit 01068cd798

View File

@ -356,7 +356,8 @@ struct Theme {
#ifdef WIN32
bgType = Colors::Theme;
#endif
int backgroundId = (bgType == Colors::BgType::Theme) ? background.Id(mode, -1) : -1;
bool transparent = (bgType == Colors::BgType::Inherit);
int backgroundId = transparent ? -1 : background.Id(mode, -1);
int foregroundId = foreground.Id(mode, -1);
/* main */
@ -408,7 +409,7 @@ struct Theme {
init_pair(
Color::Header,
headerForeground.Id(mode, COLOR_WHITE),
headerBackground.Id(mode, -1));
transparent ? -1 : headerBackground.Id(mode, -1));
/* footer */
init_pair(