Merge lp:~3v1n0/unity-greeter/shutdown-average-color-bg into lp:unity-greeter
Proposed by
Marco Trevisan (Treviño)
Status: | Merged |
---|---|
Approved by: | Robert Ancell |
Approved revision: | 1025 |
Merged at revision: | 1021 |
Proposed branch: | lp:~3v1n0/unity-greeter/shutdown-average-color-bg |
Merge into: | lp:unity-greeter |
Prerequisite: | lp:~3v1n0/unity-greeter/shutdown-clicks-handling |
Diff against target: |
62 lines (+12/-3) 3 files modified
src/background.vala (+3/-0) src/main-window.vala (+1/-1) src/shutdown-dialog.vala (+8/-2) |
To merge this branch: | bzr merge lp:~3v1n0/unity-greeter/shutdown-average-color-bg |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Ancell | Approve | ||
Review via email: mp+194758@code.launchpad.net |
Commit message
ShutdownDialog: use the average color as source when drawing the background
Description of the change
Use the background average color for generating the background color of the shutdown dialogue. Also set the average color for static backgrounds.
To post a comment you must log in.
This should be in BackgroundLoade r.load: background[ 0] == '#' && current_ background. length <= 7) background, out c); average_ color = {c.red/65535.0f, c.green/65535.0f, c.blue/65535.0f, 1.0f};
8 + if (current_
9 + {
10 + Gdk.Color c;
11 + Gdk.Color.parse (current_
12 + current.
13 + }
You should probably use a property instead of a method for get_average_color (), i.e.
public Gdk.RGBA average_color average_ color; }
{
get { return current.
}