Merge lp:~danrabbit/egtk/sidebar-select-backdrop into lp:egtk/1.0

Proposed by Danielle Foré
Status: Merged
Approved by: Cassidy James Blaede
Approved revision: 503
Merged at revision: 514
Proposed branch: lp:~danrabbit/egtk/sidebar-select-backdrop
Merge into: lp:egtk/1.0
Diff against target: 38 lines (+17/-0)
2 files modified
gtk-3.0/gtk-widgets.css (+2/-0)
gtk-3.0/sidebar.css (+15/-0)
To merge this branch: bzr merge lp:~danrabbit/egtk/sidebar-select-backdrop
Reviewer Review Type Date Requested Status
Cassidy James Blaede Approve
Review via email: mp+109780@code.launchpad.net

Description of the change

Adds a :backdrop style for selected section of the sidebar. Removes color and makes text dark again.

To post a comment you must log in.
Revision history for this message
Cassidy James Blaede (cassidyjames) wrote :

Looks good!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'gtk-3.0/gtk-widgets.css'
2--- gtk-3.0/gtk-widgets.css 2012-06-12 00:46:41 +0000
3+++ gtk-3.0/gtk-widgets.css 2012-06-12 06:52:19 +0000
4@@ -188,6 +188,8 @@
5 .secondary-toolbar.toolbar .button,
6 .sidebar,
7 .sidebar.view,
8+.sidebar.view:selected:backdrop,
9+.sidebar.view:prelight:selected:backdrop,
10 .toolbar,
11 GraniteWidgetsStatusBar,
12 GtkSwitch {
13
14=== modified file 'gtk-3.0/sidebar.css'
15--- gtk-3.0/sidebar.css 2012-06-12 00:46:41 +0000
16+++ gtk-3.0/sidebar.css 2012-06-12 06:52:19 +0000
17@@ -33,6 +33,21 @@
18 to (alpha (#fff, 0.10)));
19 }
20
21+.sidebar.view:selected:backdrop,
22+.sidebar.view:prelight:selected:backdrop {
23+ background-image: -gtk-gradient (linear,
24+ left top,
25+ left bottom,
26+ from (shade (@bg_color, 0.95)),
27+ to (shade (@bg_color, 0.83)));
28+
29+ -unico-border-gradient: -gtk-gradient (linear,
30+ left top, left bottom,
31+ from (shade (@bg_color, 0.85)),
32+ to (shade (@bg_color, 0.73)));
33+
34+ color: shade (@bg_color, 0.50);
35+}
36
37 .sidebar.view:prelight {
38 background-color: shade (@bg_color, 1.10);

Subscribers

People subscribed via source and target branches

to all changes: