mirror of
https://github.com/clangen/musikcube.git
synced 2025-04-16 14:42:41 +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
|
#ifdef WIN32
|
||||||
bgType = Colors::Theme;
|
bgType = Colors::Theme;
|
||||||
#endif
|
#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);
|
int foregroundId = foreground.Id(mode, -1);
|
||||||
|
|
||||||
/* main */
|
/* main */
|
||||||
@ -408,7 +409,7 @@ struct Theme {
|
|||||||
init_pair(
|
init_pair(
|
||||||
Color::Header,
|
Color::Header,
|
||||||
headerForeground.Id(mode, COLOR_WHITE),
|
headerForeground.Id(mode, COLOR_WHITE),
|
||||||
headerBackground.Id(mode, -1));
|
transparent ? -1 : headerBackground.Id(mode, -1));
|
||||||
|
|
||||||
/* footer */
|
/* footer */
|
||||||
init_pair(
|
init_pair(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user