summaryrefslogtreecommitdiff
path: root/shortcuts
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2014-05-13 21:29:40 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2014-05-13 21:29:40 +0200
commit835ab96ec09d6a4915df36e5d8e6f294cdaa7111 (patch)
tree70ceed5db50a1def40e3db6f330ac3e30b4ec901 /shortcuts
parent7e1bb604ef8474bc57d79aca89c681b962b0268a (diff)
ShortcutView: use string literal to build RawPixel's
(bzr r3794.7.3)
Diffstat (limited to 'shortcuts')
-rw-r--r--shortcuts/ShortcutView.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/shortcuts/ShortcutView.cpp b/shortcuts/ShortcutView.cpp
index 32190279f..bb9d32ef5 100644
--- a/shortcuts/ShortcutView.cpp
+++ b/shortcuts/ShortcutView.cpp
@@ -128,8 +128,8 @@ nux::LinearLayout* View::CreateSectionLayout(std::string const& section_name)
section_name_view->SetFont(FONT_NAME+" "+std::to_string(SECTION_NAME_FONT_SIZE));
section_name_view->SetLines(-1);
section_name_view->SetScale(scale);
- const int top_space = RawPixel(10).CP(scale);
- const int bottom_space = RawPixel(15).CP(scale);
+ const int top_space = (10_em).CP(scale);
+ const int bottom_space = (15_em).CP(scale);
layout->AddView(new nux::SpaceLayout(top_space, top_space, top_space, top_space), 0, nux::MINOR_POSITION_START, nux::MINOR_SIZE_MATCHCONTENT);
layout->AddView(section_name_view, 0, nux::MINOR_POSITION_START, nux::MINOR_SIZE_MATCHCONTENT);
layout->AddView(new nux::SpaceLayout(bottom_space, bottom_space, bottom_space, bottom_space), 0, nux::MINOR_POSITION_START, nux::MINOR_SIZE_MATCHCONTENT);
@@ -227,8 +227,8 @@ void View::RenderColumns()
int i = 0;
int column_idx = 0;
auto const& columns = columns_layout_->GetChildren();
- const int top_space = RawPixel(23).CP(scale);
- const int bottom_space = RawPixel(20).CP(scale);
+ const int top_space = (23_em).CP(scale);
+ const int bottom_space = (20_em).CP(scale);
for (auto const& category : model_->categories())
{