diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-11-30 15:33:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-11-30 15:33:58 +0300 |
commit | 7e64ede79a741b7dc1c63d73301a58f4e510278d (patch) | |
tree | 77e97b91817eef81c4255898c17beb74c71d3dae /src | |
parent | 48ae2e7b91b0e340c91bd7c5b69a39a66c0e68ca (diff) | |
download | manaplus-7e64ede79a741b7dc1c63d73301a58f4e510278d.tar.gz manaplus-7e64ede79a741b7dc1c63d73301a58f4e510278d.tar.bz2 manaplus-7e64ede79a741b7dc1c63d73301a58f4e510278d.tar.xz manaplus-7e64ede79a741b7dc1c63d73301a58f4e510278d.zip |
Add new theme color TABLE_BACKGROUND.
It used in background of table headers.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/theme.cpp | 3 | ||||
-rw-r--r-- | src/gui/theme.h | 1 | ||||
-rw-r--r-- | src/gui/widgets/tabs/setup_relations.cpp | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index 3381b156a..95e35f2aa 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -948,7 +948,8 @@ static int readColorType(const std::string &type) "BROWN", "BROWN_OUTLINE", "STATUSBAR_ON", - "STATUSBAR_OFF" + "STATUSBAR_OFF", + "TABLE_BACKGROUND" }; if (type.empty()) diff --git a/src/gui/theme.h b/src/gui/theme.h index 3ccd35265..bbc6ae06f 100644 --- a/src/gui/theme.h +++ b/src/gui/theme.h @@ -392,6 +392,7 @@ class Theme final : public Palette, public ConfigListener BROWN_OUTLINE, STATUSBAR_ON, STATUSBAR_OFF, + TABLE_BACKGROUND, THEME_COLORS_END }; diff --git a/src/gui/widgets/tabs/setup_relations.cpp b/src/gui/widgets/tabs/setup_relations.cpp index c06ec6c49..c1b6cc1ed 100644 --- a/src/gui/widgets/tabs/setup_relations.cpp +++ b/src/gui/widgets/tabs/setup_relations.cpp @@ -268,8 +268,8 @@ Setup_Relations::Setup_Relations(const Widget2 *const widget) : mPlayerTableTitleModel->fixColumnWidth(NAME_COLUMN, NAME_COLUMN_WIDTH); mPlayerTableTitleModel->fixColumnWidth(RELATION_CHOICE_COLUMN, RELATION_CHOICE_COLUMN_WIDTH); - mPlayerTitleTable->setBackgroundColor(gcn::Color(0xbf, 0xbf, 0xbf)); - + mPlayerTitleTable->setBackgroundColor(getThemeColor( + Theme::TABLE_BACKGROUND)); for (int i = 0; i < COLUMNS_NR; i++) { |