summaryrefslogtreecommitdiff
path: root/dash
diff options
authorGord Allott <gord.allott@canonical.com>2012-08-20 17:49:45 +0100
committerGord Allott <gord.allott@canonical.com>2012-08-20 17:49:45 +0100
commit5fc76ab45e4daae5a9f865fd5e62885ef1b4873d (patch)
tree3883d5c13af942cbcc9dbce1e7ffc5e53c1e74f3 /dash
parent662fda205c415618099f8a64a81ce097a82b39c8 (diff)
parenta9ddfbd965c33bf56541ef9c77fc2c5020228335 (diff)
latest flowview
(bzr r2542.2.2)
Diffstat (limited to 'dash')
-rwxr-xr-xdash/CoverflowResultView.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/dash/CoverflowResultView.cpp b/dash/CoverflowResultView.cpp
index 1417e9909..ead69ca26 100755
--- a/dash/CoverflowResultView.cpp
+++ b/dash/CoverflowResultView.cpp
@@ -20,6 +20,7 @@
#include "CoverflowResultView.h"
#include "unity-shared/IconLoader.h"
#include "unity-shared/IconTexture.h"
+#include "unity-shared/DashStyle.h"
#include <Nux/Nux.h>
#include <Nux/View.h>
#include <Nux/Coverflow.h>
@@ -67,9 +68,10 @@ CoverflowResultItem::CoverflowResultItem(Result& result, CoverflowResultView *pa
, result_(result)
, parent_(parent)
{
+ Style& style = Style::Instance();
std::string const& icon_hint = result.icon_hint;
std::string icon_name = !icon_hint.empty() ? icon_hint : ". GThemedIcon text-x-preview";
- static const int element_size = 128;
+ static const int element_size = style.GetTileHeight();
icon_texture_ = new IconTexture(icon_name.c_str(), element_size, true);
icon_texture_->LoadIcon();
@@ -129,7 +131,8 @@ CoverflowResultView::CoverflowResultView(NUX_FILE_LINE_DECL)
: ResultView(NUX_FILE_LINE_PARAM)
, pimpl(new CoverflowResultView::Impl(this))
{
- SetMinimumHeight(180);
+ Style& style = Style::Instance();
+ SetMinimumHeight(style.GetTileHeight());
}
CoverflowResultView::~CoverflowResultView()