From 7e64ede79a741b7dc1c63d73301a58f4e510278d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 30 Nov 2013 15:33:58 +0300 Subject: Add new theme color TABLE_BACKGROUND. It used in background of table headers. --- src/gui/theme.cpp | 3 ++- src/gui/theme.h | 1 + src/gui/widgets/tabs/setup_relations.cpp | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) (limited to 'src/gui') 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++) { -- cgit v1.2.3-70-g09d2