Merge lp:~christhehorton/salience/fix_titlebar_blending into lp:salience

Proposed by Christopher Kyle Horton
Status: Merged
Approved by: Christopher Kyle Horton
Approved revision: 110
Merged at revision: 105
Proposed branch: lp:~christhehorton/salience/fix_titlebar_blending
Merge into: lp:salience
Diff against target: 446 lines (+152/-101)
8 files modified
gtk-2.0/gtkrc (+10/-1)
gtk-3.0/apps/nautilus.css (+61/-1)
gtk-3.0/button.css (+41/-8)
gtk-3.0/sidebar.css (+2/-55)
gtk-3.0/toolbar.css (+9/-5)
gtk-3.0/unity.css (+4/-6)
metacity-1/metacity-theme-2.xml (+13/-13)
metacity-1/metacity-theme-3.xml (+12/-12)
To merge this branch: bzr merge lp:~christhehorton/salience/fix_titlebar_blending
Reviewer Review Type Date Requested Status
Aditya V Approve
Review via email: mp+123153@code.launchpad.net

Description of the change

This branch makes the bottoms of titlebars integrate more smoothly into the tops of windows which don't have toolbars, and it also darkens toolbars/sidebars a bit to work with the change. Also, there are some improvements to theming for toolbar buttons.

To post a comment you must log in.
109. By Christopher Kyle Horton

Move more Nautilus-specific code into nautilus.css and darken the browsing background in Nautilus.

110. By Christopher Kyle Horton

Merge from trunk.

Revision history for this message
Aditya V (kroq-gar78) wrote :

Looks good!

Also, I don't think you need to merge from trunk unless you just want to make sure it's still working. I think bzr will do that for us :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'gtk-2.0/Button/toolbar.png'
2Binary files gtk-2.0/Button/toolbar.png 2012-06-10 03:32:54 +0000 and gtk-2.0/Button/toolbar.png 2012-09-07 19:56:22 +0000 differ
3=== modified file 'gtk-2.0/gtkrc'
4--- gtk-2.0/gtkrc 2012-09-07 19:47:04 +0000
5+++ gtk-2.0/gtkrc 2012-09-07 19:56:22 +0000
6@@ -563,13 +563,21 @@
7 function = BOX
8 recolorable = TRUE
9 file = "Button/toolbar.png"
10- border = { 0, 0, 0, 0}
11+ border = {2, 0, 0, 1}
12 stretch = TRUE
13 orientation = HORIZONTAL
14 }
15 }
16 }
17
18+style "murrine-toolbar-button" = "murrine-button"
19+{
20+ engine "murrine"
21+ {
22+ gradient_shades = {1.00,0.90,0.80,0.60}
23+ }
24+}
25+
26 style "murrine-tooltips"
27 {
28 xthickness = 6
29@@ -729,6 +737,7 @@
30 widget_class "*<GtkCheckButton>*" style "murrine-default"
31
32 widget_class "*<GtkButton>" style "murrine-button"
33+widget_class "*<GtkToolbar>*<GtkButton>" style "murrine-toolbar-button"
34
35 # Treeview header
36 widget_class "*.<GtkTreeView>.<GtkButton>" style "murrine-treeview-header"
37
38=== modified file 'gtk-3.0/apps/nautilus.css'
39--- gtk-3.0/apps/nautilus.css 2012-09-06 00:45:21 +0000
40+++ gtk-3.0/apps/nautilus.css 2012-09-07 19:56:22 +0000
41@@ -1,4 +1,10 @@
42-/* Nautilus window item theming */
43+/****************************
44+* Nautilus-specific theming *
45+*****************************/
46+
47+NautilusWindow *.view {
48+ background-color: shade (@bg_color, 0.8);
49+}
50
51 .nautilus-canvas-item:active {
52 color: @theme_text_color;
53@@ -86,3 +92,57 @@
54 -GtkButton-image-spacing: 0;
55 -GtkButton-inner-border: 0;
56 }
57+
58+/* Nautilus Sidebar */
59+
60+NautilusWindow .sidebar,
61+NautilusWindow .sidebar .view,
62+NautilusWindow .sidebar .frame,
63+NautilusWindow > GtkTable > .pane-separator,
64+NautilusWindow > GtkList > .pane-separator {
65+ padding: 0;
66+ background-color: @bg_color;
67+ color: @fg_color;
68+ background-image: none;
69+
70+ border-color: shade (@bg_dark_color, 0.52);
71+ border-width: 0 1px 0 0;
72+ border-style: solid;
73+
74+ -unico-inner-stroke-width: 0 1px 0 0;
75+ -unico-inner-stroke-gradient: -gtk-gradient (linear,
76+ right top, left top,
77+ from (@bg_dark_color),
78+ to (transparent));
79+
80+}
81+
82+NautilusWindow .sidebar .view:selected {
83+ color: @selected_fg_color;
84+ border-style: solid;
85+ border-width: 1px 1px 1px 0;
86+
87+ -unico-inner-stroke-width: 1px 1px 1px 0;
88+
89+ background-image: -gtk-gradient (linear,
90+ left top,
91+ left bottom,
92+ from (shade (@selected_bg_color, 1.25)),
93+ to (shade (@selected_bg_color, 0.98)));
94+
95+ -unico-border-gradient: -gtk-gradient (linear,
96+ left top, left bottom,
97+ from (shade (@bg_color, 0.8)),
98+ to (shade (@bg_dark_color, 0.66)));
99+
100+ -unico-inner-stroke-gradient: -gtk-gradient (linear,
101+ left top, left bottom,
102+ from (alpha (#fff, 0.20)),
103+ to (alpha (#fff, 0.10)));
104+}
105+
106+NautilusWindow .sidebar .view:selected:backdrop {
107+ color: @insensitive_color;
108+ background-image: none;
109+ background-color: shade (@bg_dark_color, 0.78);
110+}
111
112=== modified file 'gtk-3.0/button.css'
113--- gtk-3.0/button.css 2012-09-05 05:13:58 +0000
114+++ gtk-3.0/button.css 2012-09-07 19:56:22 +0000
115@@ -9,7 +9,6 @@
116 }
117
118 .button {
119-
120 -GtkButton-child-displacement-x: 0;
121 -GtkButton-child-displacement-y: 0;
122 -GtkButton-default-border: 0;
123@@ -31,7 +30,6 @@
124 }
125
126 .button:hover {
127-
128 background-image: -gtk-gradient (linear,
129 left top,
130 left bottom,
131@@ -48,7 +46,6 @@
132 .button:active:focused,
133 .button:hover:active,
134 .button:hover:active:focused {
135-
136 background-image: -gtk-gradient (linear,
137 left top,
138 left bottom,
139@@ -73,7 +70,12 @@
140 .button:active,
141 .button:active:focused,
142 .button:hover:active,
143-.button:hover:active:focused {
144+.button:hover:active:focused,
145+.toolbar .button:hover,
146+.toolbar .button:active,
147+.toolbar .button:active:focused,
148+.toolbar .button:hover:active,
149+.toolbar .button:hover:active:focused {
150 color: @selected_fg_color;
151 text-shadow: 0 1 alpha (#000, 0.5),
152 -1 -1 alpha (@selected_fg_color, 0.2),
153@@ -109,7 +111,6 @@
154 .button:active:focused:backdrop,
155 .button:hover:active:backdrop,
156 .button:hover:active:focused:backdrop {
157-
158 background-image: -gtk-gradient (linear,
159 left top,
160 left bottom,
161@@ -130,11 +131,43 @@
162
163 }
164
165+/******************
166+* Toolbar buttons *
167+*******************/
168
169 .toolbar .button {
170- padding: 2.5px;
171- text-shadow: 0 1 alpha (#000, 0.75);
172- icon-shadow: none;
173+ padding: 2.5px;
174+ text-shadow: 0 1 alpha (#000, 0.5);
175+ icon-shadow: 0 1 alpha (#000, 0.5);
176+
177+ background-image: -gtk-gradient (linear,
178+ left top,
179+ left bottom,
180+ color-stop (0.00, shade (@bg_color, 1.00)),
181+ color-stop (0.33, shade (@bg_color, 0.90)),
182+ color-stop (0.66, shade (@bg_color, 0.80)),
183+ color-stop (1.00, shade (@bg_color, 0.60)));
184+}
185+
186+.toolbar .button:hover {
187+ background-image: -gtk-gradient (linear,
188+ left top,
189+ left bottom,
190+ color-stop (0.00, shade (@bg_color, 1.10)),
191+ color-stop (0.33, shade (@bg_color, 1.00)),
192+ color-stop (0.66, shade (@bg_color, 0.90)),
193+ color-stop (1.00, shade (@bg_color, 0.70)));
194+}
195+
196+.toolbar .button:active,
197+.toolbar .button:active:focused,
198+.toolbar .button:hover:active,
199+.toolbar .button:hover:active:focused {
200+ background-image: -gtk-gradient (linear,
201+ left top,
202+ left bottom,
203+ from (shade (@selected_bg_color, 0.75)),
204+ to (shade (@selected_bg_color, 1.24)));
205 }
206
207 /***************************
208
209=== modified file 'gtk-3.0/sidebar.css'
210--- gtk-3.0/sidebar.css 2012-09-05 04:19:45 +0000
211+++ gtk-3.0/sidebar.css 2012-09-07 19:56:22 +0000
212@@ -10,8 +10,8 @@
213 .sidebar.view,
214 .sidebar .view {
215 padding: 0;
216- background-color: shade (@bg_dark_color, 0.80);
217- color: @fg_color;
218+ background-color: @bg_color;
219+ color: @fg_color;
220 text-shadow: 0 1 alpha(#000, 0.5);
221 icon-shadow: 0 1 alpha(#000, 0.5);
222
223@@ -102,56 +102,3 @@
224 background-image: none;
225 background-color: shade (@bg_dark_color, 0.78);
226 }
227-
228-/* Nautilus Sidebar */
229-
230-NautilusWindow .sidebar,
231-NautilusWindow .sidebar .view,
232-NautilusWindow .sidebar .frame,
233-NautilusWindow > GtkTable > .pane-separator,
234-NautilusWindow > GtkList > .pane-separator {
235- padding: 0;
236- background-color: shade (@bg_dark_color, 0.80);
237- color: @fg_color;
238-
239- border-color: shade (@bg_dark_color, 0.52);
240- border-width: 0 1px 0 0;
241- border-style: solid;
242-
243- -unico-inner-stroke-width: 0 1px 0 0;
244- -unico-inner-stroke-gradient: -gtk-gradient (linear,
245- right top, left top,
246- from (@bg_dark_color),
247- to (transparent));
248-
249-}
250-
251-NautilusWindow .sidebar .view:selected {
252- color: @selected_fg_color;
253- border-style: solid;
254- border-width: 1px 1px 1px 0;
255-
256- -unico-inner-stroke-width: 1px 1px 1px 0;
257-
258- background-image: -gtk-gradient (linear,
259- left top,
260- left bottom,
261- from (shade (@selected_bg_color, 1.25)),
262- to (shade (@selected_bg_color, 0.98)));
263-
264- -unico-border-gradient: -gtk-gradient (linear,
265- left top, left bottom,
266- from (shade (@bg_color, 0.8)),
267- to (shade (@bg_dark_color, 0.66)));
268-
269- -unico-inner-stroke-gradient: -gtk-gradient (linear,
270- left top, left bottom,
271- from (alpha (#fff, 0.20)),
272- to (alpha (#fff, 0.10)));
273-}
274-
275-NautilusWindow .sidebar .view:selected:backdrop {
276- color: @insensitive_color;
277- background-image: none;
278- background-color: shade (@bg_dark_color, 0.78);
279-}
280
281=== modified file 'gtk-3.0/toolbar.css'
282--- gtk-3.0/toolbar.css 2012-09-06 00:23:59 +0000
283+++ gtk-3.0/toolbar.css 2012-09-07 19:56:22 +0000
284@@ -18,8 +18,10 @@
285 background-image: -gtk-gradient (linear,
286 left top,
287 left bottom,
288- from (shade (@bg_dark_color, 0.80)),
289- to (shade (@bg_dark_color, 0.62)));
290+ color-stop (0.00, shade (@bg_color, 1.00)),
291+ color-stop (0.33, shade (@bg_color, 0.90)),
292+ color-stop (0.66, shade (@bg_color, 0.80)),
293+ color-stop (1.00, shade (@bg_color, 0.60)));
294 }
295
296 .secondary-toolbar.toolbar {
297@@ -28,7 +30,7 @@
298 -unico-inner-stroke-color: @bg_dark_color;
299
300 background-image: none;
301- background-color: shade (@bg_dark_color, 0.62);
302+ background-color: shade (@bg_color, 0.80);
303
304 }
305
306@@ -46,8 +48,10 @@
307 background-image: -gtk-gradient (linear,
308 left top,
309 left bottom,
310- from (shade (@bg_dark_color, 0.80)),
311- to (shade (@bg_dark_color, 0.62)));
312+ color-stop (0.00, shade (@bg_color, 1.00)),
313+ color-stop (0.33, shade (@bg_color, 0.90)),
314+ color-stop (0.66, shade (@bg_color, 0.80)),
315+ color-stop (1.00, shade (@bg_color, 0.60)));
316 }
317
318 /********************
319
320=== modified file 'gtk-3.0/unity.css'
321--- gtk-3.0/unity.css 2012-09-07 17:33:38 +0000
322+++ gtk-3.0/unity.css 2012-09-07 19:56:22 +0000
323@@ -8,12 +8,10 @@
324 background-image: -gtk-gradient (linear,
325 left top,
326 left bottom,
327- from (@bg_dark_color),
328- color-stop (0.06, shade (@bg_dark_color, 1.18)),
329- color-stop (0.06, shade (@bg_dark_color, 1.09)),
330- color-stop (0.94, shade (@bg_dark_color, 0.80)),
331- color-stop (0.94, shade (@bg_dark_color, 0.80)),
332- to (shade (@bg_dark_color, 0.80)));
333+ color-stop (0.00, shade (@bg_color, 1.40)),
334+ color-stop (0.33, shade (@bg_color, 1.20)),
335+ color-stop (0.66, shade (@bg_color, 1.10)),
336+ color-stop (1.00, shade (@bg_color, 1.00)));
337 border-image: none;
338 border-style: solid;
339 border-width: 0;
340
341=== modified file 'metacity-1/metacity-theme-2.xml'
342--- metacity-1/metacity-theme-2.xml 2012-09-06 05:34:31 +0000
343+++ metacity-1/metacity-theme-2.xml 2012-09-07 19:56:22 +0000
344@@ -111,7 +111,7 @@
345 <!-- window decorations -->
346
347 <draw_ops name="entire_background_focused">
348- <rectangle color="shade/gtk:bg[NORMAL]/1.29" x="0" y="0" width="width" height="height" filled="true" />
349+ <rectangle color="gtk:bg[NORMAL]" x="0" y="0" width="width" height="height" filled="true" />
350 </draw_ops>
351
352 <draw_ops name="entire_background_unfocused">
353@@ -120,28 +120,28 @@
354
355 <draw_ops name="titlebar_fill_focused">
356 <gradient type="vertical" x="0" y="0" width="width" height="height">
357- <color value="shade/gtk:bg[NORMAL]/1.66"/>
358- <color value="shade/gtk:bg[NORMAL]/1.49"/>
359- <color value="shade/gtk:bg[NORMAL]/1.36"/>
360- <color value="shade/gtk:bg[NORMAL]/1.29"/>
361+ <color value="shade/gtk:bg[NORMAL]/1.40"/>
362+ <color value="shade/gtk:bg[NORMAL]/1.20"/>
363+ <color value="shade/gtk:bg[NORMAL]/1.10"/>
364+ <color value="shade/gtk:bg[NORMAL]/1.00"/>
365 </gradient>
366 </draw_ops>
367
368 <draw_ops name="titlebar_fill_focused_alt">
369 <gradient type="vertical" x="0" y="0" width="width" height="height">
370- <color value="shade/gtk:bg[NORMAL]/1.66"/>
371- <color value="shade/gtk:bg[NORMAL]/1.49"/>
372- <color value="shade/gtk:bg[NORMAL]/1.36"/>
373- <color value="shade/gtk:bg[NORMAL]/1.29"/>
374+ <color value="shade/gtk:bg[NORMAL]/1.40"/>
375+ <color value="shade/gtk:bg[NORMAL]/1.20"/>
376+ <color value="shade/gtk:bg[NORMAL]/1.10"/>
377+ <color value="shade/gtk:bg[NORMAL]/1.00"/>
378 </gradient>
379 </draw_ops>
380
381 <draw_ops name="titlebar_fill_unfocused">
382 <gradient type="vertical" x="0" y="0" width="width" height="height">
383- <color value="shade/gtk:bg[NORMAL]/1.66"/>
384- <color value="shade/gtk:bg[NORMAL]/1.49"/>
385- <color value="shade/gtk:bg[NORMAL]/1.36"/>
386- <color value="shade/gtk:bg[NORMAL]/1.29"/>
387+ <color value="shade/gtk:bg[NORMAL]/1.40"/>
388+ <color value="shade/gtk:bg[NORMAL]/1.20"/>
389+ <color value="shade/gtk:bg[NORMAL]/1.10"/>
390+ <color value="shade/gtk:bg[NORMAL]/1.00"/>
391 </gradient>
392 </draw_ops>
393
394
395=== modified file 'metacity-1/metacity-theme-3.xml'
396--- metacity-1/metacity-theme-3.xml 2012-09-06 05:34:31 +0000
397+++ metacity-1/metacity-theme-3.xml 2012-09-07 19:56:22 +0000
398@@ -151,7 +151,7 @@
399 <!-- window decorations -->
400
401 <draw_ops name="entire_background_focused">
402- <rectangle color="shade/gtk:bg[NORMAL]/1.29" x="0" y="0" width="width" height="height" filled="true" />
403+ <rectangle color="gtk:bg[NORMAL]" x="0" y="0" width="width" height="height" filled="true" />
404 </draw_ops>
405
406 <draw_ops name="entire_background_unfocused">
407@@ -160,29 +160,29 @@
408
409 <draw_ops name="titlebar_fill_focused">
410 <gradient type="vertical" x="0" y="0" width="width" height="height">
411- <color value="shade/gtk:bg[NORMAL]/1.66"/>
412- <color value="shade/gtk:bg[NORMAL]/1.49"/>
413- <color value="shade/gtk:bg[NORMAL]/1.36"/>
414- <color value="shade/gtk:bg[NORMAL]/1.29"/>
415+ <color value="shade/gtk:bg[NORMAL]/1.40"/>
416+ <color value="shade/gtk:bg[NORMAL]/1.20"/>
417+ <color value="shade/gtk:bg[NORMAL]/1.10"/>
418+ <color value="shade/gtk:bg[NORMAL]/1.00"/>
419 </gradient>
420 </draw_ops>
421
422
423 <draw_ops name="titlebar_fill_attached_focused"> <!-- gradient for attached and modal dialogs titlebar-->
424 <gradient type="vertical" x="0" y="0" width="width" height="height">
425- <color value="shade/gtk:bg[NORMAL]/1.29"/>
426+ <color value="shade/gtk:bg[NORMAL]/1.40"/>
427 <color value="shade/gtk:bg[NORMAL]/1.20"/>
428- <color value="shade/gtk:bg[NORMAL]/1.07"/>
429- <color value="gtk:bg[NORMAL]"/>
430+ <color value="shade/gtk:bg[NORMAL]/1.10"/>
431+ <color value="shade/gtk:bg[NORMAL]/1.00"/>
432 </gradient>
433 </draw_ops>
434
435 <draw_ops name="titlebar_fill_unfocused">
436 <gradient type="vertical" x="0" y="0" width="width" height="height">
437- <color value="shade/gtk:bg[NORMAL]/1.66"/>
438- <color value="shade/gtk:bg[NORMAL]/1.49"/>
439- <color value="shade/gtk:bg[NORMAL]/1.36"/>
440- <color value="shade/gtk:bg[NORMAL]/1.29"/>
441+ <color value="shade/gtk:bg[NORMAL]/1.40"/>
442+ <color value="shade/gtk:bg[NORMAL]/1.20"/>
443+ <color value="shade/gtk:bg[NORMAL]/1.10"/>
444+ <color value="shade/gtk:bg[NORMAL]/1.00"/>
445 </gradient>
446 </draw_ops>
447

Subscribers

People subscribed via source and target branches