~macslow/unity/backported-remote-add-to-5.0

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/DashView.cpp

Merging with upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
  SetLayout(layout_);
177
177
 
178
178
  content_layout_ = new DashLayout(NUX_TRACKER_LOCATION);
179
 
  content_layout_->SetTopAndBottomPadding(style.GetDashViewTopPadding() - style.SEARCH_BAR_EXTRA_PADDING, 0);
 
179
  content_layout_->SetTopAndBottomPadding(style.GetDashViewTopPadding(), 0);
180
180
  layout_->AddLayout(content_layout_, 1, nux::MINOR_POSITION_LEFT, nux::MINOR_SIZE_FULL);
181
181
 
182
182
  search_bar_layout_ = new nux::HLayout();
183
 
  search_bar_layout_->SetLeftAndRightPadding(style.GetSearchBarLeftPadding() - style.SEARCH_BAR_EXTRA_PADDING, style.GetSearchBarLeftPadding() - style.GetFilterResultsHighlightRightPadding() - style.SEARCH_BAR_EXTRA_PADDING);
 
183
  search_bar_layout_->SetLeftAndRightPadding(style.GetSearchBarLeftPadding(), 0);
184
184
  content_layout_->AddLayout(search_bar_layout_, 0, nux::MINOR_POSITION_CENTER, nux::MINOR_SIZE_FULL);
185
185
 
186
186
  search_bar_ = new SearchBar();
187
187
  AddChild(search_bar_);
188
 
  search_bar_->SetMinimumHeight(style.GetSearchBarHeight() + style.SEARCH_BAR_EXTRA_PADDING * 2);
189
 
  search_bar_->SetMaximumHeight(style.GetSearchBarHeight() + style.SEARCH_BAR_EXTRA_PADDING * 2);
 
188
  search_bar_->SetMinimumHeight(style.GetSearchBarHeight());
 
189
  search_bar_->SetMaximumHeight(style.GetSearchBarHeight());
190
190
  search_bar_->activated.connect(sigc::mem_fun(this, &DashView::OnEntryActivated));
191
191
  search_bar_->search_changed.connect(sigc::mem_fun(this, &DashView::OnSearchChanged));
192
192
  search_bar_->live_search_reached.connect(sigc::mem_fun(this, &DashView::OnLiveSearchReached));
269
269
 
270
270
  width = MAX(width, tile_width * 6);
271
271
 
272
 
  width += 19 + 40; // add the left padding and the group plugin padding
 
272
  width += 20 + 40; // add the left padding and the group plugin padding
273
273
 
274
274
  height = search_bar_->GetGeometry().height;
275
275
  height += tile_height * 3;
276
 
  height += 46 * 3; // adding three group headers
277
 
  //height += lens_bar_->GetGeometry().height;
 
276
  height += (style.GetPlacesGroupTopSpace() - 2 + 24 + 8) * 3; // adding three group headers
 
277
  height += 1*2; // hseparator height
 
278
  height += style.GetDashViewTopPadding();
 
279
  height += lens_bar_->GetGeometry().height;
278
280
 
279
281
  if (for_geo.width > 800 && for_geo.height > 550)
280
282
  {