summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-05 19:39:39 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-05 19:39:39 (GMT)
commit8cadc10f8b33e77e204e1f4b772f96333992c56c (patch)
tree1e03693797490cbea0b743156da6eb17d22033c0 /src
parent06112a12a0c9dbf596fb5e3ef0345d918a641596 (diff)
downloadpowder-8cadc10f8b33e77e204e1f4b772f96333992c56c.zip
powder-8cadc10f8b33e77e204e1f4b772f96333992c56c.tar.gz
Icon adjustments
Diffstat (limited to 'src')
-rw-r--r--src/game/GameView.cpp15
-rw-r--r--src/graphics/Graphics.cpp3
-rw-r--r--src/search/SearchView.cpp3
3 files changed, 17 insertions, 4 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp
index 5773be2..387289a 100644
--- a/src/game/GameView.cpp
+++ b/src/game/GameView.cpp
@@ -87,6 +87,7 @@ GameView::GameView():
};
reloadButton = new ui::Button(ui::Point(currentX, Size.Y-16), ui::Point(17, 15));
reloadButton->SetIcon(IconReload);
+ reloadButton->Appearance.Margin.Left+=2;
currentX+=18;
reloadButton->SetActionCallback(new ReloadAction(this));
AddComponent(reloadButton);
@@ -123,7 +124,9 @@ GameView::GameView():
};
upVoteButton = new ui::Button(ui::Point(currentX, Size.Y-16), ui::Point(15, 15));
upVoteButton->SetIcon(IconVoteUp);
- currentX+=15;
+ upVoteButton->Appearance.Margin.Top+=2;
+ upVoteButton->Appearance.Margin.Left+=2;
+ currentX+=14;
upVoteButton->SetActionCallback(new UpVoteAction(this));
AddComponent(upVoteButton);
@@ -139,6 +142,8 @@ GameView::GameView():
};
downVoteButton = new ui::Button(ui::Point(currentX, Size.Y-16), ui::Point(15, 15));
downVoteButton->SetIcon(IconVoteDown);
+ downVoteButton->Appearance.Margin.Bottom+=2;
+ downVoteButton->Appearance.Margin.Left+=2;
currentX+=16;
downVoteButton->SetActionCallback(new DownVoteAction(this));
AddComponent(downVoteButton);
@@ -153,10 +158,10 @@ GameView::GameView():
v->c->OpenTags();
}
};
- tagSimulationButton = new ui::Button(ui::Point(currentX, Size.Y-16), ui::Point(250, 15), "[no tags set]");
+ tagSimulationButton = new ui::Button(ui::Point(currentX, Size.Y-16), ui::Point(251, 15), "[no tags set]");
tagSimulationButton->Appearance.HorizontalAlign = ui::Appearance::AlignLeft;
tagSimulationButton->SetIcon(IconTag);
- currentX+=251;
+ currentX+=252;
tagSimulationButton->SetActionCallback(new TagSimulationAction(this));
AddComponent(tagSimulationButton);
@@ -172,6 +177,7 @@ GameView::GameView():
};
clearSimButton = new ui::Button(ui::Point(Size.X-159, Size.Y-16), ui::Point(17, 15));
clearSimButton->SetIcon(IconNew);
+ clearSimButton->Appearance.Margin.Left+=2;
clearSimButton->SetActionCallback(new ClearSimAction(this));
AddComponent(clearSimButton);
@@ -187,6 +193,7 @@ GameView::GameView():
};
loginButton = new ui::Button(ui::Point(Size.X-141, Size.Y-16), ui::Point(92, 15), "[sign in]");
loginButton->Appearance.HorizontalAlign = ui::Appearance::AlignLeft;
+ loginButton->Appearance.Margin.Top+=2;
loginButton->SetIcon(IconLogin);
loginButton->SetActionCallback(new LoginAction(this));
AddComponent(loginButton);
@@ -203,6 +210,7 @@ GameView::GameView():
};
simulationOptionButton = new ui::Button(ui::Point(Size.X-48, Size.Y-16), ui::Point(15, 15));
simulationOptionButton->SetIcon(IconSimulationSettings);
+ simulationOptionButton->Appearance.Margin.Left+=2;
simulationOptionButton->SetActionCallback(new SimulationOptionAction(this));
AddComponent(simulationOptionButton);
@@ -218,6 +226,7 @@ GameView::GameView():
};
displayModeButton = new ui::Button(ui::Point(Size.X-32, Size.Y-16), ui::Point(15, 15));
displayModeButton->SetIcon(IconRenderSettings);
+ displayModeButton->Appearance.Margin.Left+=2;
displayModeButton->SetActionCallback(new DisplayModeAction(this));
AddComponent(displayModeButton);
diff --git a/src/graphics/Graphics.cpp b/src/graphics/Graphics.cpp
index 20f5851..73913c5 100644
--- a/src/graphics/Graphics.cpp
+++ b/src/graphics/Graphics.cpp
@@ -844,6 +844,9 @@ void Graphics::draw_icon(int x, int y, Icon icon, unsigned char alpha, bool inve
case IconDateSort:
case IconFolder:
case IconSearch:
+ drawchar(x, y+1, 0x8E, 30, 30, 180, alpha);
+ drawchar(x, y+1, 0x8F, 255, 255, 255, alpha);
+ break;
case IconDelete:
if(invert)
{
diff --git a/src/search/SearchView.cpp b/src/search/SearchView.cpp
index ddbf49a..d5aec30 100644
--- a/src/search/SearchView.cpp
+++ b/src/search/SearchView.cpp
@@ -31,7 +31,8 @@ SearchView::SearchView():
v->doSearch();
}
};
- searchField = new ui::Textbox(ui::Point(60, 10), ui::Point((XRES+BARSIZE)-226, 16), "");
+ searchField = new ui::Textbox(ui::Point(60, 10), ui::Point((XRES+BARSIZE)-226, 16), "", "[search]");
+ searchField->Appearance.icon = IconSearch;
searchField->Appearance.HorizontalAlign = ui::Appearance::AlignLeft;
searchField->Appearance.VerticalAlign = ui::Appearance::AlignMiddle;
searchField->SetActionCallback(new SearchAction(this));