From 9fdcc28dacf20ecacd2fb6943b111a14a81b303f Mon Sep 17 00:00:00 2001 From: jacob1 Date: Thu, 4 Dec 2014 18:16:56 -0500 Subject: [PATCH] make close icon match the color of the button/text around it --- src/gui/game/GameView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index 078966e44..6e12e7d8a 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -1798,11 +1798,11 @@ void GameView::NotifyNotificationsChanged(GameModel * sender) AddComponent(tempButton); notificationComponents.push_back(tempButton); - tempButton = new ui::Button(ui::Point(XRES-20, currentY), ui::Point(15, 15)); - tempButton->SetIcon(IconClose); + tempButton = new ui::Button(ui::Point(XRES-20, currentY), ui::Point(15, 15), "\xAA"); + //tempButton->SetIcon(IconClose); tempButton->SetActionCallback(new CloseNotificationButtonAction(this, *iter)); - tempButton->Appearance.Margin.Left+=2; - tempButton->Appearance.Margin.Top+=2; + tempButton->Appearance.Margin.Left -= 1; + tempButton->Appearance.Margin.Top -= 1; tempButton->Appearance.BorderInactive = style::Colour::WarningTitle; tempButton->Appearance.TextInactive = style::Colour::WarningTitle; tempButton->Appearance.BorderHover = ui::Colour(255, 175, 0);