Merge lp:~nick-dedekind/unity/dash-results.focus+size into lp:unity
Proposed by
Nick Dedekind
Status: | Merged |
---|---|
Approved by: | Michal Hruby |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2687 |
Proposed branch: | lp:~nick-dedekind/unity/dash-results.focus+size |
Merge into: | lp:unity |
Diff against target: |
356 lines (+56/-128) 4 files modified
dash/ResultRendererTile.cpp (+34/-120) dash/ResultRendererTile.h (+0/-4) unity-shared/DashStyle.cpp (+18/-3) unity-shared/DashStyle.h (+4/-1) |
To merge this branch: | bzr merge lp:~nick-dedekind/unity/dash-results.focus+size |
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrea Azzarone (community) | Needs Fixing | ||
John Lea (community) | design | Approve | |
Michal Hruby (community) | Approve | ||
Review via email: mp+123747@code.launchpad.net |
Commit message
Updated dash result highlight focus to 106x106 pixels with 20% white opacity. Increased dash result file image size to 96x96.
Description of the change
Updated dash result highlight focus to 106x106 pixels with 20% white opacity. Increased dash result file image size to 96x96.
To post a comment you must log in.
45 - if (container- >blurred_ icon && state == ResultRendererS tate::RESULT_ RENDERER_ NORMAL) QRP_1Tex( icon_left_ hand_side - 5 - x_offset, >blurred_ icon->GetWidth( ), >blurred_ icon->GetHeight (), >blurred_ icon->GetDevice Texture( ),
46 - {
47 - GfxContext.
48 - icon_top_side - 5 - y_offset,
49 - container-
50 - container-
51 - container-
52 - texxform,
53 - nux::Color(0.15f, 0.15f, 0.15f, 0.15f));
54 - }
Why have you removed this code?
g_str_has_ prefix( icon_name. c_str() , "/") ? style.GetTileIm ageSize( ) : style.GetTileGI conSize( )
g_str_has_prefix returns a gboolean. Maybe I'm wrong but with a gboolean it is preferable to check if value is == FALSE or != FALSE.
gboolean var;
...
if (var != FALSE)
{
/* 1 */
}
else
{
/* 2 */
}
or
if (!var)
{
/* 2 */
}
else
{
/* 1 */
}
Also provide screenshot for the design review.