diff options
| author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-05-13 21:29:40 +0200 |
|---|---|---|
| committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2014-05-13 21:29:40 +0200 |
| commit | 835ab96ec09d6a4915df36e5d8e6f294cdaa7111 (patch) | |
| tree | 70ceed5db50a1def40e3db6f330ac3e30b4ec901 /shortcuts | |
| parent | 7e1bb604ef8474bc57d79aca89c681b962b0268a (diff) | |
ShortcutView: use string literal to build RawPixel's
(bzr r3794.7.3)
Diffstat (limited to 'shortcuts')
| -rw-r--r-- | shortcuts/ShortcutView.cpp | 8 |
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()) { |
