Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2016-07-20 00:40:01 +0200
committerStijn Buys <ingar@osirion.org>2016-07-20 00:40:01 +0200
commit0d3a65aad03d9ac726238b21ba8224e9558a8a08 (patch)
tree5a6d704902543025d4877b584a400d3db10ebdc2 /src/client
parent1d99e86e3197ed7594d9ef8c1c350a6a60e7bce0 (diff)
Renamed UI::elementmargin to IU::spacing, added UI::margin.
Diffstat (limited to 'src/client')
-rw-r--r--src/client/buttonmenu.cc2
-rw-r--r--src/client/notifications.cc8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/client/buttonmenu.cc b/src/client/buttonmenu.cc
index 18139d0..b5e8959 100644
--- a/src/client/buttonmenu.cc
+++ b/src/client/buttonmenu.cc
@@ -57,7 +57,7 @@ void ButtonMenu::resize()
w->set_size(ui::UI::elementsize);
w->set_location(x, y);
- y += ui::UI::elementsize.height() + ui::UI::elementmargin;
+ y += ui::UI::elementsize.height() + ui::UI::spacing;
}
// resize container widget
diff --git a/src/client/notifications.cc b/src/client/notifications.cc
index 90c5e3e..793303e 100644
--- a/src/client/notifications.cc
+++ b/src/client/notifications.cc
@@ -56,12 +56,12 @@ void Notifications::draw()
t = notify_timestamp.begin();
}
- const float margin = ui::UI::elementmargin;
+ const float spacing = ui::UI::spacing;
math::Vector2f s(size());
- s[0] -= margin * 2;
- s[1] -= margin * 2;
+ s[0] -= spacing * 2;
+ s[1] -= spacing * 2;
- notify_scrollpane->set_location(margin, margin);
+ notify_scrollpane->set_location(spacing, spacing);
notify_scrollpane->set_size(s.x(), s.y());
}