Merge lp:~cimi/unity/saturated-dash-bg-color into lp:unity

Proposed by Andrea Cimitan
Status: Merged
Approved by: Gord Allott
Approved revision: no longer in the source branch.
Merged at revision: 1813
Proposed branch: lp:~cimi/unity/saturated-dash-bg-color
Merge into: lp:unity
Diff against target: 12 lines (+1/-1)
1 file modified
plugins/unityshell/src/BGHash.cpp (+1/-1)
To merge this branch: bzr merge lp:~cimi/unity/saturated-dash-bg-color
Reviewer Review Type Date Requested Status
Gord Allott (community) Approve
Review via email: mp+87442@code.launchpad.net

Description of the change

First step, increasing saturation of the average color

To post a comment you must log in.
Revision history for this message
Gord Allott (gordallott) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/unityshell/src/BGHash.cpp'
2--- plugins/unityshell/src/BGHash.cpp 2011-11-14 14:44:31 +0000
3+++ plugins/unityshell/src/BGHash.cpp 2012-01-04 09:36:24 +0000
4@@ -559,7 +559,7 @@
5
6 nux::color::HueSaturationValue hsv_color (chosen_color);
7
8- hsv_color.saturation = std::min(base_hsv.saturation, hsv_color.saturation);
9+ hsv_color.saturation = std::min(base_hsv.saturation, hsv_color.saturation) * 1.36f;
10 hsv_color.value = std::min(std::min(base_hsv.value, hsv_color.value), 0.2f);
11 chosen_color = nux::Color (nux::color::RedGreenBlue(hsv_color));
12 }