summaryrefslogtreecommitdiff
path: root/src/newgrf_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-05-06 21:13:29 +0000
committerfrosch <frosch@openttd.org>2011-05-06 21:13:29 +0000
commit5e449b8fae1f5f9941a385a49eb1e958788809c2 (patch)
tree25417fb45b1166841824fccffbbd217810246bf6 /src/newgrf_gui.cpp
parent4b0a2fbe293acbfe138b788701b6e71c5356d0e8 (diff)
downloadopenttd-5e449b8fae1f5f9941a385a49eb1e958788809c2.tar.xz
(svn r22429) -Add: some constants for specific palette colours used in the GUI.
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r--src/newgrf_gui.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index 9d7f2bc44..398f3c4bd 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -695,7 +695,7 @@ struct NewGRFWindow : public QueryStringBaseWindow {
{
switch (widget) {
case SNGRFS_FILE_LIST: {
- GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, GREY_SCALE(1));
+ GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, PC_BLACK);
uint step_height = this->GetWidget<NWidgetBase>(SNGRFS_FILE_LIST)->resize_y;
uint y = r.top + WD_FRAMERECT_TOP;
@@ -715,7 +715,7 @@ struct NewGRFWindow : public QueryStringBaseWindow {
bool h = (this->active_sel == c);
PaletteID pal = this->GetPalette(c);
- if (h) GfxFillRect(r.left + 1, y, r.right - 1, y + step_height - 1, 156);
+ if (h) GfxFillRect(r.left + 1, y, r.right - 1, y + step_height - 1, PC_DARK_BLUE);
DrawSprite(SPR_SQUARE, pal, square_left, y + sprite_offset_y);
if (c->error != NULL) DrawSprite(SPR_WARNING_SIGN, 0, warning_left, y + sprite_offset_y);
uint txtoffset = c->error == NULL ? 0 : 10;
@@ -727,7 +727,7 @@ struct NewGRFWindow : public QueryStringBaseWindow {
}
case SNGRFS_AVAIL_LIST: {
- GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, GREY_SCALE(1));
+ GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, PC_BLACK);
uint step_height = this->GetWidget<NWidgetBase>(SNGRFS_AVAIL_LIST)->resize_y;
int offset_y = (step_height - FONT_HEIGHT_NORMAL) / 2;
@@ -740,7 +740,7 @@ struct NewGRFWindow : public QueryStringBaseWindow {
bool h = (c == this->avail_sel);
const char *text = c->GetName();
- if (h) GfxFillRect(r.left + 1, y, r.right - 1, y + step_height - 1, 156);
+ if (h) GfxFillRect(r.left + 1, y, r.right - 1, y + step_height - 1, PC_DARK_BLUE);
DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, y + offset_y, text, h ? TC_WHITE : TC_SILVER);
y += step_height;
}
@@ -749,7 +749,7 @@ struct NewGRFWindow : public QueryStringBaseWindow {
case SNGRFS_NEWGRF_INFO_TITLE:
/* Create the nice grayish rectangle at the details top. */
- GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, 157);
+ GfxFillRect(r.left + 1, r.top + 1, r.right - 1, r.bottom - 1, PC_DARK_BLUE);
DrawString(r.left, r.right, (r.top + r.bottom - FONT_HEIGHT_NORMAL) / 2, STR_NEWGRF_SETTINGS_INFO_TITLE, TC_FROMSTRING, SA_HOR_CENTER);
break;