From 835ab96ec09d6a4915df36e5d8e6f294cdaa7111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 13 May 2014 21:29:40 +0200 Subject: ShortcutView: use string literal to build RawPixel's (bzr r3794.7.3) --- shortcuts/ShortcutView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'shortcuts') 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()) { -- cgit v1.2.3