mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Fixed a theming issue with the new header style.
This commit is contained in:
parent
8737abc0ec
commit
01068cd798
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user