diff options
Diffstat (limited to 'src/gui')
-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++) { |