Merge lp:~cimi/light-themes/ambiance-gtk3-unico into lp:~ubuntu-art-pkg/light-themes/trunk

Proposed by Andrea Cimitan
Status: Merged
Merged at revision: 90
Proposed branch: lp:~cimi/light-themes/ambiance-gtk3-unico
Merge into: lp:~ubuntu-art-pkg/light-themes/trunk
Diff against target: 615 lines (+600/-0)
3 files modified
Ambiance/gtk-3.0/gtk-widgets.css (+564/-0)
Ambiance/gtk-3.0/gtk.css (+33/-0)
Ambiance/gtk-3.0/settings.ini (+3/-0)
To merge this branch: bzr merge lp:~cimi/light-themes/ambiance-gtk3-unico
Reviewer Review Type Date Requested Status
Ken VanDine Approve
Review via email: mp+65033@code.launchpad.net

Description of the change

First draft of the gtk+3 theme using unico engine

To post a comment you must log in.
Revision history for this message
Ken VanDine (ken-vandine) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory 'Ambiance/gtk-3.0'
=== added file 'Ambiance/gtk-3.0/gtk-widgets.css'
--- Ambiance/gtk-3.0/gtk-widgets.css 1970-01-01 00:00:00 +0000
+++ Ambiance/gtk-3.0/gtk-widgets.css 2011-06-17 16:23:40 +0000
@@ -0,0 +1,564 @@
1/* NOTES to contributors: use 4 spaces intends, and keep code ALIGNED and ORDERED */
2
3/* default */
4* {
5 -GtkButton-child-displacement-x: 1;
6 -GtkButton-child-displacement-y: 1;
7 -GtkButton-default-border: 0;
8 -GtkButton-image-spacing: 0;
9 -GtkButton-interior-focus: true;
10 -GtkButton-inner-border: 3;
11 -GtkCheckButton-indicator-size: 16;
12 -GtkCheckMenuItem-indicator-size: 14;
13 -GtkEntry-inner-border: 2;
14 -GtkEntry-progress-border: 0;
15 -GtkExpander-expander-size: 10;
16 -GtkHTML-link-color: @link_color;
17 -GtkIMHtml-hyperlink-color: @link_color;
18 -GtkMenu-horizontal-padding: 0;
19 -GtkMenu-vertical-padding: 3;
20 -GtkMenuBar-internal-padding: 0;
21 -GtkNotebook-tab-overlap: 0;
22 -GtkPaned-handle-size: 6;
23 -GtkProgressBar-min-horizontal-bar-height: 14;
24 -GtkProgressBar-min-vertical-bar-width: 14;
25 -GtkRange-trough-border: 0;
26 -GtkRange-slider-width: 14;
27 -GtkRange-stepper-size: 13;
28 -GtkRange-trough-under-steppers: 1;
29 -GtkRange-stepper-spacing: 0;
30 -GtkScale-trough-border: 0;
31 -GtkScale-trough-side-details: 1;
32 -GtkScrollbar-activate-slider: 1;
33 -GtkScrollbar-trough-border: 0;
34 -GtkScrollbar-slider-width: 13;
35 -GtkScrollbar-min-slider-length: 31;
36 -GtkScrolledWindow-scrollbar-spacing: 0;
37 -GtkScrolledWindow-scrollbars-within-bevel: 1;
38 -GtkSeparatorMenuItem-horizontal-padding: 0;
39 -GtkTextView-error-underline-color: @error_color;
40 -GtkToolButton-icon-spacing: 6;
41 -GtkToolItemGroup-expander-size: 11;
42 -GtkToolbar-internal-padding: 0;
43 -GtkTreeView-expander-size: 8;
44 -GtkTreeView-vertical-separator: 0;
45 -GtkWidget-wide-separators: 1;
46 -GtkWidget-separator-width: 2;
47 -GtkWidget-separator-height: 2;
48 -GtkWidget-focus-padding: 0;
49 -GtkWidget-focus-line-width: 1;
50 -GtkWidget-link-color: @link_color;
51 -GtkWidget-visited-link-color: @link_color;
52 -WnckTasklist-fade-overlay-rect: 0;
53
54 border-width: 1;
55
56 engine: unico;
57}
58
59*:insensitive {
60 color: shade (@theme_bg_color, 0.6);
61 text-shadow: 0 1 alpha (shade (@theme_bg_color, 1.25), 0.5);
62}
63
64*:active {
65}
66
67*:active:hover:insensitive {
68}
69
70*:active:insensitive {
71}
72
73*:hover {
74}
75
76*:hover:insensitive {
77}
78
79*:selected {
80}
81
82*:selected:focused {
83}
84
85/* border and inner stroke */
86.button,
87.frame,
88.notebook {
89 -unico-border-gradient: -gtk-gradient (linear, left top, left bottom,
90 from (shade (@theme_bg_color, 0.8)),
91 to (shade (@theme_bg_color, 0.7)));
92 -unico-inner-stroke-style: custom;
93 -unico-inner-stroke-color: alpha (shade (@theme_bg_color, 1.26), 0.2);
94}
95
96.button:insensitive,
97.frame:insensitive,
98.notebook:insensitive {
99 -unico-border-gradient: -gtk-gradient (linear, left top, left bottom,
100 from (shade (@theme_bg_color, 0.8)),
101 to (shade (@theme_bg_color, 0.8)));
102}
103
104/* inset */
105.button:active,
106.button:insensitive,
107.check,
108.entry,
109.radio
110{
111 -unico-outer-stroke-style: custom;
112 -unico-outer-stroke-gradient: -gtk-gradient (linear, left top, left bottom,
113 from (alpha (shade (@theme_bg_color, 0.85), 0.6)),
114 to (alpha (shade (@theme_bg_color, 1.25), 0.6)));
115}
116
117/* shadow */
118.button,
119.check:active,
120.frame,
121GtkProgressBar.progressbar,
122.notebook .button,
123.notebook,
124.radio:active {
125 -unico-outer-stroke-style: custom;
126 -unico-outer-stroke-gradient: -gtk-gradient (linear, left top, left bottom,
127 from (alpha (shade (@theme_bg_color, 0.05), 0.02)),
128 to (alpha (shade (@theme_bg_color, 0.05), 0.06)));
129}
130
131/* background */
132.background {
133 border-width: 0;
134 background-color: @theme_bg_color;
135}
136
137/* button */
138GtkScale.slider,
139.button {
140 border-radius: 4;
141 text-shadow: 0 1 alpha (shade (@button_bg_color, 1.25), 0.4);
142 background-image: -gtk-gradient (linear, left top, left bottom,
143 from (shade (@button_bg_color, 1.1)),
144 to (shade (@button_bg_color, 0.9)));
145
146 -unico-border-gradient: -gtk-gradient (linear, left top, left bottom,
147 from (shade (@button_bg_color, 0.85)),
148 to (shade (@button_bg_color, 0.7)));
149 -unico-inner-stroke-style: custom;
150 -unico-inner-stroke-color: alpha (shade (@button_bg_color, 1.26), 0.2);
151}
152
153.button:active {
154 background-image: -gtk-gradient (linear, left top, left bottom,
155 from (shade (@button_bg_color, 0.9)),
156 to (shade (@button_bg_color, 0.95)));
157
158 -unico-border-gradient: -gtk-gradient (linear, left top, left bottom,
159 from (shade (@button_bg_color, 0.6)),
160 to (shade (@button_bg_color, 0.7)));
161 -unico-inner-stroke-style: custom;
162 -unico-inner-stroke-color: alpha (shade (@button_bg_color, 0.8), 0.5);
163}
164
165.button:insensitive {
166 text-shadow: 0 1 alpha (shade (@button_bg_color, 1.25), 0.4);
167 background-image: -gtk-gradient (linear, left top, left bottom,
168 from (shade (@button_insensitive_bg_color, 1.04)),
169 to (shade (@button_insensitive_bg_color, 0.96)));
170
171 -unico-border-gradient: -gtk-gradient (linear, left top, left bottom,
172 from (shade (@button_insensitive_bg_color, 0.8)),
173 to (shade (@button_insensitive_bg_color, 0.8)));
174}
175
176.button:insensitive:active {
177 background-image: -gtk-gradient (linear, left top, left bottom,
178 from (shade (@button_insensitive_bg_color, 0.97)),
179 to (shade (@button_insensitive_bg_color, 1.0)));
180
181 -unico-inner-stroke-style: custom;
182 -unico-inner-stroke-color: alpha (shade (@button_insensitive_bg_color, 0.9), 0.2);
183}
184
185column-header .button,
186GtkScale.slider,
187.notebook .button,
188.toolbar .button {
189 text-shadow: 0 1 alpha (shade (@theme_bg_color, 1.25), 0.4);
190 background-image: -gtk-gradient (linear, left top, left bottom,
191 from (shade (@theme_bg_color, 1.1)),
192 to (shade (@theme_bg_color, 0.94)));
193
194 -unico-border-gradient: -gtk-gradient (linear, left top, left bottom,
195 from (shade (@theme_bg_color, 0.84)),
196 to (shade (@theme_bg_color, 0.74)));
197 -unico-inner-stroke-style: custom;
198 -unico-inner-stroke-color: alpha (shade (@theme_bg_color, 1.26), 0.4);
199}
200
201.notebook .button:active,
202.toolbar .button:active {
203 background-image: -gtk-gradient (linear, left top, left bottom,
204 from (shade (@theme_bg_color, 0.9)),
205 to (shade (@theme_bg_color, 0.95)));
206
207 -unico-border-gradient: -gtk-gradient (linear, left top, left bottom,
208 from (shade (@theme_bg_color, 0.6)),
209 to (shade (@theme_bg_color, 0.7)));
210 -unico-inner-stroke-style: custom;
211 -unico-inner-stroke-color: alpha (shade (@theme_bg_color, 0.8), 0.5);
212}
213
214.notebook .button:insensitive,
215.toolbar .button:insensitive {
216 background-image: -gtk-gradient (linear, left top, left bottom,
217 from (shade (@theme_bg_color, 1.04)),
218 to (shade (@theme_bg_color, 0.96)));
219}
220
221/* check and radio */
222.check,
223.check row,
224.radio,
225.radio row {
226 background-image: -gtk-gradient (linear, left top, left bottom,
227 from (shade (@theme_base_color, 0.96)),
228 color-stop (0.10, shade (@theme_base_color, 0.98)),
229 to (@theme_base_color));
230
231 -unico-border-gradient: -gtk-gradient (linear, left top, left bottom,
232 from (shade (@theme_bg_color, 0.68)),
233 to (shade (@theme_bg_color, 0.68)));
234 -unico-inner-stroke-style: custom;
235 -unico-inner-stroke-color: alpha (shade (@theme_base_color, 0.1), 0.02);
236}
237
238.check,
239.check row {
240 border-radius: 3;
241}
242
243.radio,
244.radio row {
245 border-radius: 10;
246}
247
248.check:active,
249.check row:selected:active,
250.check row:selected:focused:active,
251.notebook .check:active,
252.notebook .radio:active,
253.radio:active,
254.radio row:selected:active,
255.radio row:selected:focused:active {
256 background-image: -gtk-gradient (linear, left top, left bottom,
257 from (shade (@theme_selected_bg_color, 1.1)),
258 to (shade (@theme_selected_bg_color, 0.9)));
259
260 -unico-bullet-color: shade (@theme_selected_bg_color, 0.535);
261 -unico-bullet-outline-color: shade (@theme_selected_bg_color, 1.2);
262 -unico-border-gradient: -gtk-gradient (linear, left top, left bottom,
263 from (shade (@theme_selected_bg_color, 0.7)),
264 to (shade (@theme_selected_bg_color, 0.7)));
265 -unico-inner-stroke-style: custom;
266 -unico-inner-stroke-color: alpha (shade (@theme_selected_bg_color, 1.26), 0.4);
267 -unico-outer-stroke-style: custom;
268 -unico-outer-stroke-gradient: -gtk-gradient (linear, left top, left bottom,
269 from (alpha (shade (@theme_bg_color, 0.05), 0.02)),
270 to (alpha (shade (@theme_bg_color, 0.05), 0.08)));
271}
272
273.check:insensitive,
274.radio:insensitive {
275 background-image: none;
276 background-color: shade (@theme_bg_color, 0.96);
277}
278
279.check:insensitive:active,
280.radio:insensitive:active {
281 background-image: -gtk-gradient (linear, left top, left bottom,
282 from (shade (@theme_bg_color, 0.96)),
283 to (shade (@theme_bg_color, 0.9)));
284
285 -unico-bullet-color: shade (@theme_bg_color, 0.6);
286 -unico-bullet-outline-color: shade (@theme_bg_color, 1.0);
287 -unico-border-gradient: -gtk-gradient (linear, left top, left bottom,
288 from (shade (@theme_bg_color, 0.8)),
289 to (shade (@theme_bg_color, 0.7)));
290 -unico-inner-stroke-style: custom;
291 -unico-inner-stroke-gradient: none;
292 -unico-inner-stroke-color: alpha (shade (@theme_bg_color, 1.26), 0.2);
293}
294
295/* column-header */
296column-header .button {
297 border-radius: 0;
298
299 -unico-outer-stroke-style: none;
300}
301
302/* entry */
303.entry {
304 border-radius: 4;
305 background-image: -gtk-gradient (linear, left top, left bottom,
306 from (shade (@theme_base_color, 0.90)),
307 color-stop (0.10, shade (@theme_base_color, 0.94)),
308 to (@theme_base_color));
309
310 -unico-border-gradient: -gtk-gradient (linear, left top, left bottom,
311 from (shade (@theme_bg_color, 0.65)),
312 to (shade (@theme_bg_color, 0.7)));
313 -unico-inner-stroke-style: custom;
314 -unico-inner-stroke-gradient: -gtk-gradient (linear, left top, left bottom,
315 from (alpha (shade (@theme_bg_color, 0.05), 0.06)),
316 to (alpha (shade (@theme_bg_color, 0.05), 0.03)));
317
318}
319
320.entry:focused {
321 -unico-border-gradient: -gtk-gradient (linear, left top, left bottom,
322 from (shade (@selected_bg_color, 0.75)),
323 to (shade (@selected_bg_color, 0.8)));
324 -unico-inner-stroke-style: custom;
325 -unico-inner-stroke-coloe: alpha (@selected_bg_color, 0.5);
326 -unico-inner-stroke-gradient: none;
327}
328
329.entry:insensitive {
330 background-image: none;
331 background-color: shade (@theme_bg_color, 0.96);
332
333 -unico-inner-stroke-style: custom;
334 -unico-inner-stroke-gradient: -gtk-gradient (linear, left top, left bottom,
335 from (alpha (shade (@theme_bg_color, 0.05), 0.04)),
336 to (alpha (shade (@theme_bg_color, 0.05), 0.02)));
337}
338
339/* frame */
340.frame {
341 border-radius: 3;
342}
343
344/* GtkProgressBar */
345GtkProgressBar {
346 padding: 0;
347 border-radius: 8;
348
349 -unico-border-gradient: -gtk-gradient (linear, left top, left bottom,
350 from (shade (@theme_bg_color, 0.75)),
351 to (shade (@theme_bg_color, 1.05)));
352}
353
354GtkProgressBar.vertical {
355 -unico-border-gradient: -gtk-gradient (linear, left top, right top,
356 from (shade (@theme_bg_color, 0.75)),
357 to (shade (@theme_bg_color, 1.05)));
358}
359
360GtkProgressBar.progressbar {
361 background-image: -gtk-gradient (linear, left top, left bottom,
362 from (shade (@theme_selected_bg_color, 1.13)),
363 to (shade (@theme_selected_bg_color, 0.9)));
364
365 -unico-border-gradient: -gtk-gradient (linear, left top, left bottom,
366 from (shade (@theme_selected_bg_color, 0.75)),
367 to (shade (@theme_selected_bg_color, 0.75)));
368 -unico-inner-stroke-style: custom;
369 -unico-inner-stroke-color: alpha (shade (@theme_selected_bg_color, 1.26), 0.3);
370}
371
372GtkProgressBar.progressbar.vertical {
373 background-image: -gtk-gradient (linear, left top, right top,
374 from (shade (@theme_selected_bg_color, 1.13)),
375 to (shade (@theme_selected_bg_color, 0.9)));
376
377 -unico-border-gradient: -gtk-gradient (linear, left top, right top,
378 from (shade (@theme_selected_bg_color, 0.75)),
379 to (shade (@theme_selected_bg_color, 0.75)));
380}
381
382GtkProgressBar.trough {
383 background-image: -gtk-gradient (linear, left top, left bottom,
384 from (shade (@theme_bg_color, 0.92)),
385 to (shade (@theme_bg_color, 0.96)));
386
387 -unico-outer-stroke-style: none;
388}
389
390GtkProgressBar.trough.vertical {
391 background-image: -gtk-gradient (linear, left top, right top,
392 from (shade (@theme_bg_color, 0.92)),
393 to (shade (@theme_bg_color, 0.96)));
394}
395
396/* GtkScale */
397GtkScale {
398 -GtkScale-slider-length: 10;
399 -GtkRange-slider-width: 17;
400 -GtkRange-trough-border: 1;
401
402 border-radius: 8;
403}
404
405/* GtkScrolledWindow */
406GtkScrolledWindow.frame {
407 border-radius: 0;
408}
409
410/* GtkSeparator */
411GtkSeparator {
412 border-style: solid;
413 border-color: shade (@theme_bg_color, 0.8);
414
415 -unico-border-gradient: none;
416 -unico-inner-stroke-style: custom;
417 -unico-inner-stroke-color: alpha (shade (@theme_bg_color, 1.26), 0.6);
418}
419
420.button GtkSeparator {
421 border-style: solid;
422 border-color: shade (@button_bg_color, 0.8);
423
424 -unico-inner-stroke-style: custom;
425 -unico-inner-stroke-color: alpha (shade (@button_bg_color, 1.26), 0.4);
426}
427
428.menuitem.separator {
429 border-style: solid;
430 border-color: shade (@dark_bg_color, 0.8);
431
432 -unico-border-gradient: none;
433 -unico-inner-stroke-style: custom;
434 -unico-inner-stroke-color: alpha (shade (@dark_bg_color, 1.26), 0.5);
435}
436
437/* GtkSpinButton */
438GtkSpinButton.button {
439 -unico-outer-stroke-style: none;
440}
441
442GtkSpinButton.button:insensitive {
443 -unico-outer-stroke-style: none;
444}
445
446/* GtkStatusbar */
447GtkStatusbar .frame {
448 border-style: none;
449
450 -unico-outer-stroke-style: none;
451}
452
453/* menu */
454.menu {
455 padding: 0;
456 background-image: none;
457 background-color: @dark_bg_color;
458 border-color: shade (@dark_bg_color, 0.9);
459 color: @dark_fg_color;
460}
461
462/* menubar */
463.menubar {
464 -GtkWidget-window-dragging: true;
465
466 color: @dark_fg_color;
467 text-shadow: 0 -1 shade (@dark_bg_color, 0.6);
468 background-image: none;
469 background-color: @dark_bg_color;
470
471 -unico-border-gradient: -gtk-gradient (linear, left top, left bottom,
472 from (shade (@dark_bg_color, 1.1)),
473 to (shade (@dark_bg_color, 0.75)));
474}
475
476.menubar.menuitem {
477 border-radius: 4;
478}
479
480.menubar.menuitem:prelight {
481 color: #ffffff;
482 background-image: -gtk-gradient (linear, left top, left bottom,
483 from (shade (@dark_bg_color, 1.38)),
484 to (shade (@dark_bg_color, 1.11)));
485
486 -unico-border-gradient: -gtk-gradient (linear, left top, left bottom,
487 from (shade (@dark_bg_color, 0.9)),
488 to (shade (@dark_bg_color, 1.0)));
489 -unico-inner-stroke-style: custom;
490 -unico-inner-stroke-color: alpha (@dark_bg_color, 0.02);
491}
492
493/* menuitem */
494.menuitem {
495 padding: 2;
496 border-width: 1;
497 border-radius: 0;
498 border-style: solid;
499 color: @dark_fg_color;
500 background-image: -gtk-gradient (linear, left top, left bottom,
501 from (shade (@theme_selected_bg_color, 1.1)),
502 to (shade (@theme_selected_bg_color, 0.9)));
503
504 -unico-bullet-color: @dark_fg_color;
505 -unico-border-gradient: -gtk-gradient (linear, left top, left bottom,
506 from (shade (@theme_selected_bg_color, 0.7)),
507 to (shade (@theme_selected_bg_color, 0.7)));
508 -unico-inner-stroke-style: custom;
509 -unico-inner-stroke-color: alpha (shade (@theme_selected_bg_color, 1.26), 0.4);
510}
511
512.menuitem:prelight,
513.menuitem *:prelight {
514 color: @selected_fg_color;
515}
516
517.menuitem:insensitive,
518.menuitem *:insensitive {
519 color: mix (@dark_fg_color, @dark_bg_color, 0.5);
520 text-shadow: 0 -1 shade (@dark_bg_color, 0.6);
521}
522
523.menuitem.check:active,
524.menuitem.radio:active {
525 color: @dark_fg_color;
526
527 -unico-bullet-color: @dark_fg_color;
528}
529
530.menuitem.check:active:prelight,
531.menuitem.radio:active:prelight {
532 color: @selected_fg_color;
533
534 -unico-bullet-color: @selected_fg_color;
535}
536
537/* notebook */
538.notebook {
539 border-radius: 3;
540 background-image: none;
541 background-color: shade (@theme_bg_color, 1.02);
542
543 -unico-inner-stroke-style: custom;
544 -unico-inner-stroke-color: alpha (shade (@theme_bg_color, 1.26), 0.3);
545}
546
547.notebook tab {
548 padding: 0;
549 background-image: -gtk-gradient (linear, left top, left bottom,
550 from (shade (@theme_bg_color, 0.97)),
551 color-stop (0.60, shade (@theme_bg_color, 0.95)),
552 to (shade (@theme_bg_color, 0.9)));
553}
554
555.notebook tab:active {
556 background-image: -gtk-gradient (linear, left top, left bottom,
557 from (shade (@theme_bg_color, 1.1)),
558 to (shade (@theme_bg_color, 1.02)));
559}
560
561/* toolbar */
562.toolbar {
563 border-style: none;
564}
0565
=== added file 'Ambiance/gtk-3.0/gtk.css'
--- Ambiance/gtk-3.0/gtk.css 1970-01-01 00:00:00 +0000
+++ Ambiance/gtk-3.0/gtk.css 2011-06-17 16:23:40 +0000
@@ -0,0 +1,33 @@
1/* default color scheme */
2@define-color bg_color #f2f1f0;
3@define-color fg_color #4c4c4c;
4@define-color base_color #ffffff;
5@define-color text_color #3C3C3C;
6@define-color selected_bg_color #f07746;
7@define-color selected_fg_color #ffffff;
8@define-color tooltip_bg_color #000;
9@define-color tooltip_fg_color #ffffff;
10
11/* other color schemes could simply override these */
12@define-color theme_bg_color @bg_color;
13@define-color theme_fg_color @fg_color;
14@define-color theme_base_color @base_color;
15@define-color theme_text_color @text_color;
16@define-color theme_selected_bg_color @selected_bg_color;
17@define-color theme_selected_fg_color @selected_fg_color;
18@define-color theme_tooltip_bg_color @tooltip_bg_color;
19@define-color theme_tooltip_fg_color @tooltip_fg_color;
20
21/* misc colors used by gtk+ */
22@define-color link_color #4a90d9;
23@define-color warning_color #f57900;
24@define-color error_color #cc0000;
25@define-color success_color #4e9a06;
26
27/* theme common colors */
28@define-color button_bg_color #cdcdcd;
29@define-color button_insensitive_bg_color mix (@button_bg_color, @theme_bg_color, 0.6);
30@define-color dark_bg_color #3c3b37;
31@define-color dark_fg_color #dfdbd2;
32
33@import url("gtk-widgets.css");
034
=== added file 'Ambiance/gtk-3.0/settings.ini'
--- Ambiance/gtk-3.0/settings.ini 1970-01-01 00:00:00 +0000
+++ Ambiance/gtk-3.0/settings.ini 2011-06-17 16:23:40 +0000
@@ -0,0 +1,3 @@
1[Settings]
2gtk-color-scheme = "base_color:#ffffff\nbg_color:#f2f1f0\ntooltip_bg_color:#000000\nselected_bg_color:#f07746\ntext_color:#3C3C3C\nfg_color:#4c4c4c\ntooltip_fg_color:#ffffff\nselected_fg_color:#ffffff\nlink_color:#DD4814\nbg_color_dark:#3c3b37\nfg_color_dark:#dfdbd2"
3gtk-auto-mnemonics = 1