diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-23 13:28:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-23 13:28:08 +0300 |
commit | 13a12fadaa3e3ae34e8718dc5bfe74621e07a7db (patch) | |
tree | 45915bf14fe272d83cab9fe8bdade0d87786b7cc /src/gui/widgets/browserbox.cpp | |
parent | f9c0a11f184444b82e678b9aea4b14d3982d5201 (diff) | |
download | manaplus-13a12fadaa3e3ae34e8718dc5bfe74621e07a7db.tar.gz manaplus-13a12fadaa3e3ae34e8718dc5bfe74621e07a7db.tar.bz2 manaplus-13a12fadaa3e3ae34e8718dc5bfe74621e07a7db.tar.xz manaplus-13a12fadaa3e3ae34e8718dc5bfe74621e07a7db.zip |
Add missing black color into browserbox.
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index 603c79825..b41d319a3 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -89,6 +89,7 @@ BrowserBox::BrowserBox(const Widget2 *const widget, const unsigned int mode, mNewLinePadding = mSkin->getOption("newLinePadding", 15); } + mColors[0][BLACK] = getThemeColor(Theme::BLACK); mColors[0][RED] = getThemeColor(Theme::RED); mColors[0][GREEN] = getThemeColor(Theme::GREEN); mColors[0][BLUE] = getThemeColor(Theme::BLUE); @@ -99,6 +100,7 @@ BrowserBox::BrowserBox(const Widget2 *const widget, const unsigned int mode, mColors[0][GRAY] = getThemeColor(Theme::GRAY); mColors[0][BROWN] = getThemeColor(Theme::BROWN); + mColors[1][BLACK] = getThemeColor(Theme::BLACK_OUTLINE); mColors[1][RED] = getThemeColor(Theme::RED_OUTLINE); mColors[1][GREEN] = getThemeColor(Theme::GREEN_OUTLINE); mColors[1][BLUE] = getThemeColor(Theme::BLUE_OUTLINE); @@ -575,6 +577,10 @@ int BrowserBox::calcHeight() { switch (c) { + case '0': + selColor[0] = mColors[0][BLACK]; + selColor[1] = mColors[1][BLACK]; + break; case '1': selColor[0] = mColors[0][RED]; selColor[1] = mColors[1][RED]; @@ -611,7 +617,6 @@ int BrowserBox::calcHeight() selColor[0] = mColors[0][BROWN]; selColor[1] = mColors[1][BROWN]; break; - case '0': default: selColor[0] = textColor[0]; selColor[1] = textColor[1]; |