diff options
author | Stijn Buys <ingar@osirion.org> | 2016-07-20 00:40:01 +0200 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2016-07-20 00:40:01 +0200 |
commit | 0d3a65aad03d9ac726238b21ba8224e9558a8a08 (patch) | |
tree | 5a6d704902543025d4877b584a400d3db10ebdc2 /src/client | |
parent | 1d99e86e3197ed7594d9ef8c1c350a6a60e7bce0 (diff) |
Renamed UI::elementmargin to IU::spacing, added UI::margin.
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/buttonmenu.cc | 2 | ||||
-rw-r--r-- | src/client/notifications.cc | 8 |
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()); } |