Merge lp:~mitya57/ubuntu-themes/wncktask into lp:ubuntu-themes

Proposed by Dmitry Shachnev
Status: Merged
Approved by: Iain Lane
Approved revision: 409
Merged at revision: 411
Proposed branch: lp:~mitya57/ubuntu-themes/wncktask
Merge into: lp:ubuntu-themes
Diff against target: 30 lines (+20/-0)
1 file modified
Ambiance/gtk-3.0/apps/gnome-panel.css (+20/-0)
To merge this branch: bzr merge lp:~mitya57/ubuntu-themes/wncktask
Reviewer Review Type Date Requested Status
Lars Karlitski (community) Approve
Alberts Muktupāvels (community) Approve
Iain Lane Abstain
Ubuntu Artwork Packagers Pending
Review via email: mp+245292@code.launchpad.net

Commit message

gnome-panel.css: Fix styling for checked GtkToggleButtons.

Description of the change

In revision 407, this code was added:

.button:checked {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (#cecece),
                                     to (#e8e8e8));
    border-image-source: url("assets/button-active.png");
}

This breaks WnckTasklist on gnome-panel because the panel is dark, and active tasks in the tasklist should have dark background as well.

I have added an override style for that.

Update: Show Desktop applet is also affected (because it also uses GtkToggleButton), updated the code to fix it as well.

To post a comment you must log in.
Revision history for this message
Iain Lane (laney) wrote :

Letting Lars take this. :)

review: Abstain
Revision history for this message
Alberts Muktupāvels (muktupavels) wrote :

https://code.launchpad.net/~l3on/ubuntu-themes/gnome-shell-fixes/+merge/214003
This merge proposal already includes fix for gnome-panel.

Your merge proposal will make buttons only solid color, but previously it had gradient.

review: Needs Fixing
lp:~mitya57/ubuntu-themes/wncktask updated
409. By Dmitry Shachnev

gnome-panel.css: Add styling for checked GtkButton.

This fixes look of WnckTasklist and Show Desktop applets.

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Lars told me on IRC that it's unlikely that Leo's branch will be merged soon (as it has way too many unrelated changes), so let's go with this one to fix gnome-panel.

I have now used a gradient instead of a solid color, and also added :prelight and :prelight:active styles.

Revision history for this message
Alberts Muktupāvels (muktupavels) :
review: Approve
Revision history for this message
Lars Karlitski (larsu) wrote :

This will work, but I don't like it :) App-specific rules always smell bad.

Approving anyway, because gnome-panel probably won't be fixed anytime soon. Thanks for the patch!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Ambiance/gtk-3.0/apps/gnome-panel.css'
2--- Ambiance/gtk-3.0/apps/gnome-panel.css 2013-07-10 16:38:17 +0000
3+++ Ambiance/gtk-3.0/apps/gnome-panel.css 2015-01-18 11:57:04 +0000
4@@ -89,6 +89,26 @@
5 border-left-color: alpha (shade (@dark_bg_color, 1.5), 0.4);
6 }
7
8+PanelApplet .button:checked {
9+ background-image: -gtk-gradient (linear, left top, left bottom,
10+ from (shade (@dark_bg_color, 0.95)),
11+ to (shade (@dark_bg_color, 1.1)));
12+}
13+
14+PanelApplet .button:checked:prelight {
15+ background-image: -gtk-gradient (linear, left top, left bottom,
16+ from (shade (@dark_bg_color, 1.15)),
17+ to (shade (@dark_bg_color, 1.3)));
18+}
19+
20+PanelApplet .button:checked:prelight:active {
21+ border-image: none;
22+ background-image: -gtk-gradient (linear, left top, left bottom,
23+ from (shade (@dark_bg_color, 0.75)),
24+ to (shade (@dark_bg_color, 0.9)));
25+ border-color: shade (@dark_bg_color, 0.8);
26+}
27+
28 ClockBox {
29 text-shadow: 0 -1px shade (@dark_bg_color, 0.6);
30 }

Subscribers

People subscribed via source and target branches