summaryrefslogtreecommitdiff
path: root/dash
diff options
authorNick Dedekind <nicholas.dedekind@gmail.com>2012-08-28 06:15:19 -0400
committerTarmac <>2012-08-28 06:15:19 -0400
commitb108910526313f15514f4cd8ed3f361b5761c209 (patch)
tree02a2ff98d64d5fcfc110d68884784a4836c51cd6 /dash
parent0016fa87072fee56ce7dc92a656d3c1eb828a4a7 (diff)
parent5a3da4458b5168afa1c32eb9bee24937062c6ffe (diff)
Updated background layer for preview cover-art and details panels to be 10% low-light.. Fixes: . Approved by Andrea Azzarone.
(bzr r2634)
Diffstat (limited to 'dash')
-rw-r--r--dash/previews/ApplicationPreview.cpp6
-rw-r--r--dash/previews/GenericPreview.cpp6
-rw-r--r--dash/previews/MoviePreview.cpp6
-rw-r--r--dash/previews/MusicPreview.cpp6
4 files changed, 4 insertions, 20 deletions
diff --git a/dash/previews/ApplicationPreview.cpp b/dash/previews/ApplicationPreview.cpp
index 5d870e628..b32c5421d 100644
--- a/dash/previews/ApplicationPreview.cpp
+++ b/dash/previews/ApplicationPreview.cpp
@@ -135,11 +135,7 @@ void ApplicationPreview::AddProperties(GVariantBuilder* builder)
void ApplicationPreview::SetupBackground()
{
- nux::ROPConfig rop;
- rop.Blend = true;
- rop.SrcBlend = GL_ONE;
- rop.DstBlend = GL_ONE_MINUS_SRC_ALPHA;
- details_bg_layer_.reset(new nux::ColorLayer(nux::Color(0.03f, 0.03f, 0.03f, 0.0f), true, rop));
+ details_bg_layer_.reset(dash::previews::Style::Instance().GetBackgroundLayer());
}
void ApplicationPreview::SetupViews()
diff --git a/dash/previews/GenericPreview.cpp b/dash/previews/GenericPreview.cpp
index 426c24540..b48ba6c13 100644
--- a/dash/previews/GenericPreview.cpp
+++ b/dash/previews/GenericPreview.cpp
@@ -130,11 +130,7 @@ void GenericPreview::AddProperties(GVariantBuilder* builder)
void GenericPreview::SetupBackground()
{
- nux::ROPConfig rop;
- rop.Blend = true;
- rop.SrcBlend = GL_ONE;
- rop.DstBlend = GL_ONE_MINUS_SRC_ALPHA;
- details_bg_layer_.reset(new nux::ColorLayer(nux::Color(0.03f, 0.03f, 0.03f, 0.0f), true, rop));
+ details_bg_layer_.reset(dash::previews::Style::Instance().GetBackgroundLayer());
}
void GenericPreview::SetupViews()
diff --git a/dash/previews/MoviePreview.cpp b/dash/previews/MoviePreview.cpp
index 66ce7aa10..261bdc4a9 100644
--- a/dash/previews/MoviePreview.cpp
+++ b/dash/previews/MoviePreview.cpp
@@ -139,11 +139,7 @@ void MoviePreview::OnNavigateOut()
void MoviePreview::SetupBackground()
{
- nux::ROPConfig rop;
- rop.Blend = true;
- rop.SrcBlend = GL_ONE;
- rop.DstBlend = GL_ONE_MINUS_SRC_ALPHA;
- details_bg_layer_.reset(new nux::ColorLayer(nux::Color(0.03f, 0.03f, 0.03f, 0.0f), true, rop));
+ details_bg_layer_.reset(dash::previews::Style::Instance().GetBackgroundLayer());
}
void MoviePreview::SetupView()
diff --git a/dash/previews/MusicPreview.cpp b/dash/previews/MusicPreview.cpp
index 19fb7b023..039b74152 100644
--- a/dash/previews/MusicPreview.cpp
+++ b/dash/previews/MusicPreview.cpp
@@ -122,11 +122,7 @@ void MusicPreview::AddProperties(GVariantBuilder* builder)
void MusicPreview::SetupBackground()
{
- nux::ROPConfig rop;
- rop.Blend = true;
- rop.SrcBlend = GL_ONE;
- rop.DstBlend = GL_ONE_MINUS_SRC_ALPHA;
- details_bg_layer_.reset(new nux::ColorLayer(nux::Color(0.03f, 0.03f, 0.03f, 0.0f), true, rop));
+ details_bg_layer_.reset(dash::previews::Style::Instance().GetBackgroundLayer());
}
void MusicPreview::SetupViews()