Merge lp:~3v1n0/ubuntu-themes/gs-decorations-fixes into lp:ubuntu-themes

Proposed by Marco Trevisan (Treviño)
Status: Merged
Approved by: Iain Lane
Approved revision: 553
Merged at revision: 539
Proposed branch: lp:~3v1n0/ubuntu-themes/gs-decorations-fixes
Merge into: lp:ubuntu-themes
Diff against target: 807 lines (+309/-221)
7 files modified
Ambiance/gtk-3.20/apps/unity.css (+4/-60)
Ambiance/gtk-3.20/gtk-main.css (+3/-2)
Ambiance/gtk-3.20/gtk-widgets.css (+144/-58)
Radiance/gtk-3.20/apps/unity.css (+4/-37)
Radiance/gtk-3.20/gtk-main.css (+3/-0)
Radiance/gtk-3.20/gtk-widgets-radiance.css (+1/-7)
Radiance/gtk-3.20/gtk-widgets.css (+150/-57)
To merge this branch: bzr merge lp:~3v1n0/ubuntu-themes/gs-decorations-fixes
Reviewer Review Type Date Requested Status
Iain Lane Approve
Ken VanDine Approve
Dmitry Shachnev Approve
Alberts Muktupāvels Pending
Review via email: mp+323760@code.launchpad.net

Commit message

Ambiance, Radiance: fix shadows, handlers, decorations look for CSD and SSD in GS

 - Gtk Decorations theme adapted to match unity
 - Shadows follows the unity7 design for all the csd widgets
 - Enabled the resize extents for windows
 - Implemented a theme for solid-csd windows
 - Fixed tooltips

To post a comment you must log in.
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

This is working *much* better than the current version. Tested with gnome-control-center, gnome-calcualtor, gnome-software, nautilus — everywhere the headerbars are working fine. Thanks a lot!

review: Approve
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Working great and looks good. Thanks for the fix!

review: Approve
554. By Marco Trevisan (Treviño)

Ambiance, Radiance: ensure all titlebars have the same padding

Revision history for this message
Iain Lane (laney) wrote :

I think I'll upload this. Thanks!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Ambiance/gtk-3.20/apps/unity.css'
--- Ambiance/gtk-3.20/apps/unity.css 2016-08-01 12:10:11 +0000
+++ Ambiance/gtk-3.20/apps/unity.css 2017-05-10 12:39:09 +0000
@@ -6,9 +6,9 @@
66
7 -UnityDecoration-shadow-offset-x: 1px;7 -UnityDecoration-shadow-offset-x: 1px;
8 -UnityDecoration-shadow-offset-y: 5px;8 -UnityDecoration-shadow-offset-y: 5px;
9 -UnityDecoration-active-shadow-color: rgba (0, 0, 0, 0.75);9 -UnityDecoration-active-shadow-color: alpha (@active_shadow_color, 0.75);
10 -UnityDecoration-active-shadow-radius: 30px;10 -UnityDecoration-active-shadow-radius: 30px;
11 -UnityDecoration-inactive-shadow-color: rgba (0, 0, 0, 0.3);11 -UnityDecoration-inactive-shadow-color: @inactive_shadow_color;
12 -UnityDecoration-inactive-shadow-radius: 25px;12 -UnityDecoration-inactive-shadow-radius: 25px;
1313
14 -UnityDecoration-glow-size: 10px;14 -UnityDecoration-glow-size: 10px;
@@ -19,64 +19,8 @@
19 -UnityDecoration-title-alignment: 0.0;19 -UnityDecoration-title-alignment: 0.0;
20}20}
2121
22UnityDecoration .top {22/* Definitions of UnityDecoration .top (and :backdrop) are now shared with
23 border: 1px solid rgba (0, 3, 5, 0.03); /* shade (@dark_bg_color, 1.04) - shade (@dark_bg_color, 1.5) */23 * Gtk .titlebar (and :backdrop); .left and .right are not used by this theme */
24 border-bottom-width: 0;
25 border-radius: 6px 6px 0 0;
26 padding: 1px 6px 0 6px;
27
28 box-shadow: inset 0 0 transparent, inset 0 0 transparent,
29 inset 0 1px shade (@dark_bg_color, 1.6), inset 0 0 transparent;
30
31 background-color: transparent;
32 background-clip: border-box;
33 background-image: -gtk-gradient (linear, left top, left bottom,
34 from (shade (@dark_bg_color, 1.5)),
35 to (shade (@dark_bg_color, 1.04)));
36
37 color: @dark_fg_color;
38 text-shadow: 1px 0 #333, -1px 0 #333, 0 1px #333, 0 -1px #333;
39}
40
41UnityDecoration .top:backdrop {
42 border: 1px solid rgba (14, 13, 0, 0.03); /* @dark_bg_color - shade (#474642, 0.92) */;
43 border-bottom-width: 0;
44 background-color: transparent;
45 background-clip: border-box;
46 background-image: -gtk-gradient (linear, left top, left bottom,
47 from (shade (#474642, 0.92)),
48 to (@dark_bg_color));
49 box-shadow: inset 0 0 transparent, inset 0 0 transparent,
50 inset 0 1px #474642, inset 0 0 transparent;
51 color: #807d78;
52}
53
54UnityDecoration .left,
55UnityDecoration .right {
56 background-color: shade (@bg_color, 0.7);
57 background-size: 1px 70px;
58 background-repeat: repeat-x;
59
60 /* start color: mix of the top border color and bg-image gradient end */
61 background-image: -gtk-gradient (linear, left top, left bottom,
62 color-stop (0, #2b2a2a),
63 color-stop (0.5, #2b2a2a),
64 color-stop (1, shade (@bg_color, 0.7)));
65}
66
67UnityDecoration .left:backdrop,
68UnityDecoration .right:backdrop {
69 /* start color: mix of the top border color and bg-image gradient end */
70 background-image: -gtk-gradient (linear, left top, left bottom,
71 color-stop (0, #373632),
72 color-stop (0.5, #373632),
73 color-stop (1, shade (@bg_color, 0.7)));
74}
75
76UnityDecoration .bottom {
77 background-image: none;
78 background-color: shade (@bg_color, 0.7);
79}
8024
81/* Panel Style */25/* Panel Style */
8226
8327
=== modified file 'Ambiance/gtk-3.20/gtk-main.css'
--- Ambiance/gtk-3.20/gtk-main.css 2016-08-30 09:51:51 +0000
+++ Ambiance/gtk-3.20/gtk-main.css 2017-05-10 12:39:09 +0000
@@ -13,6 +13,9 @@
1313
14@define-color borders shade(@bg_color, 0.82);14@define-color borders shade(@bg_color, 0.82);
1515
16@define-color active_shadow_color black;
17@define-color inactive_shadow_color alpha(black, 0.3);
18
16/* misc colors used by gtk+19/* misc colors used by gtk+
17 *20 *
18 * Gtk doesn't currently expand color variables for style properties. Thus,21 * Gtk doesn't currently expand color variables for style properties. Thus,
@@ -54,8 +57,6 @@
5457
55@define-color scale_highlight_bg #df784e;58@define-color scale_highlight_bg #df784e;
5659
57@define-color shadow_color alpha(black, 0.5);
58
59@define-color osd_fg_color #eeeeec;60@define-color osd_fg_color #eeeeec;
60@define-color osd_bg_color alpha(#202526, 0.7);61@define-color osd_bg_color alpha(#202526, 0.7);
61@define-color osd_border_color alpha(black, 0.7);62@define-color osd_border_color alpha(black, 0.7);
6263
=== modified file 'Ambiance/gtk-3.20/gtk-widgets.css'
--- Ambiance/gtk-3.20/gtk-widgets.css 2017-01-25 17:43:32 +0000
+++ Ambiance/gtk-3.20/gtk-widgets.css 2017-05-10 12:39:09 +0000
@@ -637,17 +637,6 @@
637 border-width: 1px 0px 1px 0px;637 border-width: 1px 0px 1px 0px;
638}638}
639639
640
641/****************
642 * window-frame *
643 ****************/
644
645.csd.popup {
646 border-style: none;
647 border-radius: 0;
648 box-shadow: 0 3px 8px @shadow_color;
649}
650
651/************640/************
652 * iconview *641 * iconview *
653 ************/642 ************/
@@ -833,6 +822,11 @@
833 font-weight: normal;822 font-weight: normal;
834}823}
835824
825.background.popup.csd {
826 /* Delete menus background, we don't need border-radious here */
827 background-color: transparent;
828}
829
836/***********830/***********
837 * menubar *831 * menubar *
838 ***********/832 ***********/
@@ -1953,12 +1947,8 @@
1953 background-color: @base_color;1947 background-color: @base_color;
1954}1948}
19551949
1956headerbar {
1957 padding: 2px 6px;
1958}
1959
1960/*1950/*
1961 * Header Bars1951 * Header Bars and decorations
1962 *1952 *
1963 * The following rules only style header bars when they are used as a window's1953 * The following rules only style header bars when they are used as a window's
1964 * titlebar widget (i.e., they have .titlebar set as well).1954 * titlebar widget (i.e., they have .titlebar set as well).
@@ -1967,19 +1957,132 @@
1967 * that prefer showing traditional title bars. The rules for those are further1957 * that prefer showing traditional title bars. The rules for those are further
1968 * down grouped with normal toolbars.1958 * down grouped with normal toolbars.
1969 */1959 */
1970.titlebar {1960decoration {
1961 margin: 10px;
1962 border-radius: 6px 6px 0 0;
1963 box-shadow: 1px 5px 13px alpha(@active_shadow_color, 0.85);
1964}
1965
1966decoration:backdrop,
1967tooltip.csd decoration,
1968.popup decoration {
1969 box-shadow: 1px 5px 13px transparent, /* this should match normal shadow geometries */
1970 1px 5px 8px @inactive_shadow_color;
1971 transition: 100ms ease-out;
1972}
1973
1974.ssd decoration {
1975 box-shadow: none;
1976}
1977
1978popover {
1979/* FIXME: we can't reuse the default shadow definition as increasing marging
1980 * would break the tip
1981 */
1982 margin: 13px;
1983 box-shadow: 1px 3px 6px @inactive_shadow_color;
1984}
1985
1986popover:backdrop,
1987popover.background:backdrop {
1988 box-shadow: 1px 3px 6px alpha(@inactive_shadow_color, 0.5);
1989}
1990
1991tooltip decoration {
1992 background-color: transparent;
1993 background-image: none;
1994}
1995
1996.maximized decoration,
1997.fullscreen decoration,
1998.unity-csd decoration {
1999 margin: 0;
2000 border-radius: 0;
2001 box-shadow: none;
2002}
2003
2004.tiled decoration {
2005 border-radius: 0;
2006}
2007
2008.default-decoration.titlebar:not(headerbar),
2009headerbar.default-decoration {
2010 min-height: 26px;
2011}
2012
2013.solid-csd .titlebar:backdrop:dir(rtl):not(headerbar),
2014.solid-csd .titlebar:backdrop:dir(ltr):not(headerbar),
2015.solid-csd .titlebar:dir(rtl):not(headerbar),
2016.solid-csd .titlebar:dir(ltr):not(headerbar),
2017.solid-csd headerbar:backdrop:dir(rtl),
2018.solid-csd headerbar:backdrop:dir(ltr),
2019.solid-csd headerbar,
2020.solid-csd headerbar:dir(ltr) {
2021 margin-left: 0;
2022 margin-right: 0;
2023 margin-top: 0;
2024 border-radius: 0;
2025 box-shadow: none;
2026}
2027
2028.solid-csd decoration {
2029 margin: 0;
2030 box-shadow: none;
2031 border-width: 2px;
2032 border-style: solid;
2033 border-color: shade (@dark_bg_color, 1.15);
2034 border-radius: 0;
2035}
2036
2037.solid-csd:backdrop decoration {
2038 border-color: @dark_bg_color
2039}
2040
2041.titlebar,
2042UnityDecoration .top {
2043 border: 1px solid rgba (0, 3, 5, 0.03); /* shade (@dark_bg_color, 1.04) - shade (@dark_bg_color, 1.5) */
2044 border-bottom-width: 0;
2045 border-radius: 6px 6px 0 0;
2046 padding: 1px 6px 0 6px;
2047
2048 box-shadow: inset 0 0 transparent, inset 0 0 transparent,
2049 inset 0 1px shade (@dark_bg_color, 1.6), inset 0 0 transparent;
2050
2051 background-color: transparent;
2052 background-clip: border-box;
1971 background-image: -gtk-gradient (linear, left top, left bottom,2053 background-image: -gtk-gradient (linear, left top, left bottom,
1972 from (shade (@dark_bg_color, 1.5)),2054 from (shade (@dark_bg_color, 1.5)),
2055 to (shade (@dark_bg_color, 1.04)));
2056
2057 color: @dark_fg_color;
2058 text-shadow: 1px 0 #333, -1px 0 #333, 0 1px #333, 0 -1px #333;
2059}
2060
2061.titlebar:backdrop,
2062UnityDecoration .top:backdrop {
2063 border: 1px solid rgba (14, 13, 0, 0.03); /* @dark_bg_color - shade (#474642, 0.92) */;
2064 border-bottom-width: 0;
2065 background-color: transparent;
2066 background-clip: border-box;
2067 background-image: -gtk-gradient (linear, left top, left bottom,
2068 from (shade (#474642, 0.92)),
1973 to (@dark_bg_color));2069 to (@dark_bg_color));
1974 border-color: shade (@dark_bg_color, 1.5);2070 box-shadow: inset 0 0 transparent, inset 0 0 transparent,
1975 border-style: solid;2071 inset 0 1px #474642, inset 0 0 transparent;
1976 border-width: 1px 0 0 0;2072 color: #807d78;
1977 border-radius: 7px 7px 0 0;2073}
19782074
1979 color: @dark_fg_color;2075.maximized .titlebar,
1980 text-shadow: 0 -1px shade (@dark_bg_color, 0.7);2076.tiled .titlebar {
19812077 border-radius: 0;
1982 box-shadow: inset 0 1px shade (@dark_bg_color, 1.65);2078 border-image: none;
2079 border: none;
2080 box-shadow: none;
2081}
2082
2083.maximized .titlebar:not(:backdrop):not(.toolbar-mode),
2084.tiled .titlebar:not(:backdrop):not(.toolbar-mode) {
2085 box-shadow: inset 0 1px shade (@dark_bg_color, 1.6);
1983}2086}
19842087
1985.titlebar .title {2088.titlebar .title {
@@ -1991,23 +2094,6 @@
1991 opacity: 0.5;2094 opacity: 0.5;
1992}2095}
19932096
1994.titlebar:backdrop {
1995 color: @backdrop_fg_color;
1996 background-image: none;
1997 background-color: @dark_bg_color;
1998 border-top-color: @dark_bg_color;
1999 box-shadow: inset 0 1px shade (@dark_bg_color, 1.2);
2000}
2001
2002.maximized .titlebar {
2003 border-radius: 0;
2004 border: none;
2005}
2006
2007.maximized .titlebar.toolbar-mode {
2008 box-shadow: none;
2009}
2010
2011.titlebar button.titlebutton {2097.titlebar button.titlebutton {
2012 background-clip: padding-box;2098 background-clip: padding-box;
2013 border: 1px solid #383734;2099 border: 1px solid #383734;
@@ -2050,6 +2136,8 @@
2050}2136}
20512137
20522138
2139
2140
2053/***********2141/***********
2054 * toolbar *2142 * toolbar *
2055 ***********/2143 ***********/
@@ -2070,8 +2158,7 @@
2070 * primary-toolbar *2158 * primary-toolbar *
2071 *******************/2159 *******************/
2072.primary-toolbar,2160.primary-toolbar,
2073headerbar,2161.titlebar.toolbar-mode {
2074.maximized headerbar.titlebar:not(:backdrop) {
2075 -GtkWidget-window-dragging: true;2162 -GtkWidget-window-dragging: true;
20762163
2077 background-image: -gtk-gradient (linear, left top, left bottom,2164 background-image: -gtk-gradient (linear, left top, left bottom,
@@ -2089,12 +2176,8 @@
2089 box-shadow: inset 0 1px shade (@dark_bg_color, 0.94);2176 box-shadow: inset 0 1px shade (@dark_bg_color, 0.94);
2090}2177}
20912178
2092.maximized headerbar.titlebar.toolbar-mode:not(:backdrop) {
2093 border-width: 0;
2094}
2095
2096.primary-toolbar:backdrop,2179.primary-toolbar:backdrop,
2097headerbar:backdrop {2180.titlebar.toolbar-mode:backdrop {
2098 background-image: none;2181 background-image: none;
2099 background-color: @dark_bg_color;2182 background-color: @dark_bg_color;
2100 box-shadow: none;2183 box-shadow: none;
@@ -2105,11 +2188,13 @@
2105}2188}
21062189
2107.primary-toolbar:disabled,2190.primary-toolbar:disabled,
2191.titlebar.toolbar-mode:disabled,
2108headerbar:disabled {2192headerbar:disabled {
2109 text-shadow: 0 -1px shade (@dark_bg_color, 0.7);2193 text-shadow: 0 -1px shade (@dark_bg_color, 0.7);
2110}2194}
21112195
2112.primary-toolbar button,2196.primary-toolbar button,
2197.titlebar button,
2113headerbar button,2198headerbar button,
2114headerbar button:disabled,2199headerbar button:disabled,
2115.primary-toolbar button.flat:hover {2200.primary-toolbar button.flat:hover {
@@ -2365,12 +2450,20 @@
2365 background-image: -gtk-gradient (radial, center 0, 0, center 0, 0.8,2450 background-image: -gtk-gradient (radial, center 0, 0, center 0, 0.8,
2366 from (alpha (mix (@tooltip_bg_color, #ffffff, 0.2), 0.86)),2451 from (alpha (mix (@tooltip_bg_color, #ffffff, 0.2), 0.86)),
2367 to (alpha (@tooltip_bg_color, 0.86)));2452 to (alpha (@tooltip_bg_color, 0.86)));
2368 border-color: alpha (#ffffff, 0.2);2453 border-color: alpha (white, 0.2);
2369 border-radius: 5px;2454 border-radius: 5px;
2370 border-style: solid;2455 border-style: solid;
2371 border-width: 1px;2456 border-width: 1px;
2372}2457}
23732458
2459tooltip.csd:not(.unity-csd) decoration {
2460 border-radius: 5px;
2461}
2462
2463tooltip.background {
2464 background-color: transparent;
2465}
2466
2374tooltip label {2467tooltip label {
2375 color: @tooltip_fg_color;2468 color: @tooltip_fg_color;
2376}2469}
@@ -2428,16 +2521,9 @@
24282521
2429 border-radius: 5px;2522 border-radius: 5px;
2430 border: 1px solid darker(@bg_color);2523 border: 1px solid darker(@bg_color);
2431
2432 box-shadow: 0 2px 3px @shadow_color;
2433 margin: 10px;
2434 padding: 2px;2524 padding: 2px;
2435}2525}
24362526
2437popover:backdrop {
2438 box-shadow: none;
2439}
2440
2441/* Popover menuitems are actually buttons. The following rules reset most of2527/* Popover menuitems are actually buttons. The following rules reset most of
2442 * the button styles for them.2528 * the button styles for them.
2443 */2529 */
24442530
=== modified file 'Radiance/gtk-3.20/apps/unity.css'
--- Radiance/gtk-3.20/apps/unity.css 2016-08-04 16:31:00 +0000
+++ Radiance/gtk-3.20/apps/unity.css 2017-05-10 12:39:09 +0000
@@ -6,9 +6,9 @@
66
7 -UnityDecoration-shadow-offset-x: 1px;7 -UnityDecoration-shadow-offset-x: 1px;
8 -UnityDecoration-shadow-offset-y: 5px;8 -UnityDecoration-shadow-offset-y: 5px;
9 -UnityDecoration-active-shadow-color: rgba (0, 0, 0, 0.78);9 -UnityDecoration-active-shadow-color: alpha (@active_shadow_color, 0.78);
10 -UnityDecoration-active-shadow-radius: 30px;10 -UnityDecoration-active-shadow-radius: 30px;
11 -UnityDecoration-inactive-shadow-color: rgba (0, 0, 0, 0.3);11 -UnityDecoration-inactive-shadow-color: @inactive_shadow_color;
12 -UnityDecoration-inactive-shadow-radius: 25px;12 -UnityDecoration-inactive-shadow-radius: 25px;
1313
14 -UnityDecoration-glow-size: 10px;14 -UnityDecoration-glow-size: 10px;
@@ -19,41 +19,8 @@
19 -UnityDecoration-title-alignment: 0.0;19 -UnityDecoration-title-alignment: 0.0;
20}20}
2121
22UnityDecoration .top {22/* Definitions of UnityDecoration .top (and :backdrop) are now shared with
23 border: 1px solid rgba (85, 40, 0, 0.04); /* shade (@dark_bg_color) (shade (#edebe6, 1.06) */23 * Gtk .titlebar (and :backdrop); .left and .right are not used by this theme */
24 border-bottom-width: 0;
25 border-radius: 6px 6px 0 0;
26 padding: 1px 6px 0 6px;
27
28 box-shadow: inset 0 0 transparent, inset 0 0 transparent,
29 inset 0 1px shade (@edebe6, 1.065), inset 0 0 transparent;
30
31 background-color: transparent;
32 background-clip: border-box;
33 background-image: -gtk-gradient (linear, left top, left bottom,
34 from (shade (#edebe6, 1.06)),
35 to (@dark_bg_color));
36
37 color: shade (@dark_bg_color, 0.4);
38 text-shadow: 1px 0 shade (@dark_bg_color, 1.06), -1px 0 shade (@dark_bg_color, 1.06),
39 0 1px shade (@dark_bg_color, 1.06), 0 -1px shade (@dark_bg_color, 1.06);
40}
41
42UnityDecoration .top:backdrop {
43 border: 1px solid rgba (110, 27, 0, 0.04); /* shade @dark_bg_color - shade (#edebe6, 0.96) */
44 border-bottom-width: 0;
45 background-color: transparent;
46 background-clip: border-box;
47 background-image: -gtk-gradient (linear, left top, left bottom,
48 from (shade (#edebe6, 0.96)),
49 to (@dark_bg_color));
50 box-shadow: inset 0 0 transparent, inset 0 0 transparent,
51 inset 0 1px shade (#edebe6, 0.97), inset 0 0 transparent;
52
53 color: #a39e9a;
54 text-shadow: 1px 0 1px shade (@dark_bg_color, 1.08), -1px 0 1px shade (@dark_bg_color, 1.08),
55 0 1px 1px shade (@dark_bg_color, 1.08), 0 -1px 1px shade (@dark_bg_color, 1.08);
56}
5724
58UnityDecoration .left,25UnityDecoration .left,
59UnityDecoration .right {26UnityDecoration .right {
6027
=== modified file 'Radiance/gtk-3.20/gtk-main.css'
--- Radiance/gtk-3.20/gtk-main.css 2016-08-30 09:51:51 +0000
+++ Radiance/gtk-3.20/gtk-main.css 2017-05-10 12:39:09 +0000
@@ -13,6 +13,9 @@
1313
14@define-color borders shade(@bg_color, 0.82);14@define-color borders shade(@bg_color, 0.82);
1515
16@define-color active_shadow_color black;
17@define-color inactive_shadow_color alpha(black, 0.3);
18
16/* misc colors used by gtk+19/* misc colors used by gtk+
17 *20 *
18 * Gtk doesn't currently expand color variables for style properties. Thus,21 * Gtk doesn't currently expand color variables for style properties. Thus,
1922
=== modified file 'Radiance/gtk-3.20/gtk-widgets-radiance.css'
--- Radiance/gtk-3.20/gtk-widgets-radiance.css 2016-10-06 18:53:39 +0000
+++ Radiance/gtk-3.20/gtk-widgets-radiance.css 2017-05-10 12:39:09 +0000
@@ -70,9 +70,7 @@
70}70}
7171
72/* primary-toolbar */72/* primary-toolbar */
73.primary-toolbar,73.primary-toolbar {
74headerbar,
75.maximized headerbar.titlebar:not(:backdrop) {
76 background-image: -gtk-gradient (linear, left top, left bottom,74 background-image: -gtk-gradient (linear, left top, left bottom,
77 from (shade (@dark_bg_color, 0.96)),75 from (shade (@dark_bg_color, 0.96)),
78 to (shade (@dark_bg_color, 1.1)));76 to (shade (@dark_bg_color, 1.1)));
@@ -104,7 +102,3 @@
104 from (shade (@dark_bg_color, 1.03)),102 from (shade (@dark_bg_color, 1.03)),
105 to (shade (@dark_bg_color, 0.96)));103 to (shade (@dark_bg_color, 0.96)));
106}104}
107
108.titlebar {
109 border-top-width: 0px;
110}
111105
=== modified file 'Radiance/gtk-3.20/gtk-widgets.css'
--- Radiance/gtk-3.20/gtk-widgets.css 2016-10-31 04:08:49 +0000
+++ Radiance/gtk-3.20/gtk-widgets.css 2017-05-10 12:39:09 +0000
@@ -646,17 +646,6 @@
646 border-width: 1px 0px 1px 0px;646 border-width: 1px 0px 1px 0px;
647}647}
648648
649
650/****************
651 * window-frame *
652 ****************/
653
654.csd.popup {
655 border-style: none;
656 border-radius: 0;
657 box-shadow: 0 3px 8px @shadow_color;
658}
659
660/************649/************
661 * iconview *650 * iconview *
662 ************/651 ************/
@@ -842,6 +831,11 @@
842 font-weight: normal;831 font-weight: normal;
843}832}
844833
834.background.popup.csd {
835 /* Delete menus background, we don't need border-radious here */
836 background-color: transparent;
837}
838
845/***********839/***********
846 * menubar *840 * menubar *
847 ***********/841 ***********/
@@ -1952,12 +1946,8 @@
1952 background-color: @base_color;1946 background-color: @base_color;
1953}1947}
19541948
1955headerbar {
1956 padding: 2px 6px;
1957}
1958
1959/*1949/*
1960 * Header Bars1950 * Header Bars and decorations
1961 *1951 *
1962 * The following rules only style header bars when they are used as a window's1952 * The following rules only style header bars when they are used as a window's
1963 * titlebar widget (i.e., they have .titlebar set as well).1953 * titlebar widget (i.e., they have .titlebar set as well).
@@ -1966,16 +1956,136 @@
1966 * that prefer showing traditional title bars. The rules for those are further1956 * that prefer showing traditional title bars. The rules for those are further
1967 * down grouped with normal toolbars.1957 * down grouped with normal toolbars.
1968 */1958 */
1969.titlebar {1959decoration {
1970 background-image: -gtk-gradient (linear, left top, left bottom,1960 margin: 10px;
1971 from (shade (@dark_bg_color, 1.5)),1961 border-radius: 6px 6px 0 0;
1972 to (@dark_bg_color));1962 box-shadow: 1px 5px 13px alpha(@active_shadow_color, 0.85);
1973 border-color: shade (@dark_bg_color, 1.5);1963}
1964
1965decoration:backdrop,
1966tooltip.csd decoration,
1967.popup decoration {
1968 box-shadow: 1px 5px 13px transparent, /* this should match normal shadow geometries */
1969 1px 5px 8px @inactive_shadow_color;
1970 transition: 100ms ease-out;
1971}
1972
1973.ssd decoration {
1974 box-shadow: none;
1975}
1976
1977popover {
1978/* FIXME: we can't reuse the default shadow definition as increasing marging
1979 * would break the tip
1980 */
1981 margin: 13px;
1982 box-shadow: 1px 3px 6px @inactive_shadow_color;
1983}
1984
1985popover:backdrop,
1986popover.background:backdrop {
1987 box-shadow: 1px 3px 6px alpha(@inactive_shadow_color, 0.5);
1988}
1989
1990tooltip decoration {
1991 background-color: transparent;
1992 background-image: none;
1993}
1994
1995.maximized decoration,
1996.fullscreen decoration,
1997.unity-csd decoration {
1998 margin: 0;
1999 border-radius: 0;
2000 box-shadow: none;
2001}
2002
2003.tiled decoration {
2004 border-radius: 0;
2005}
2006
2007.default-decoration.titlebar:not(headerbar),
2008headerbar.default-decoration {
2009 min-height: 26px;
2010}
2011
2012.solid-csd .titlebar:backdrop:dir(rtl):not(headerbar),
2013.solid-csd .titlebar:backdrop:dir(ltr):not(headerbar),
2014.solid-csd .titlebar:dir(rtl):not(headerbar),
2015.solid-csd .titlebar:dir(ltr):not(headerbar),
2016.solid-csd headerbar:backdrop:dir(rtl),
2017.solid-csd headerbar:backdrop:dir(ltr),
2018.solid-csd headerbar,
2019.solid-csd headerbar:dir(ltr) {
2020 margin-left: 0;
2021 margin-right: 0;
2022 margin-top: 0;
2023 border-radius: 0;
2024 box-shadow: none;
2025}
2026
2027.solid-csd decoration {
2028 margin: 0;
2029 box-shadow: none;
2030 border-width: 2px;
1974 border-style: solid;2031 border-style: solid;
1975 border-width: 1px 0 0 0;2032 border-color: shade (@dark_bg_color, 0.85);
1976 border-radius: 7px 7px 0 0;2033 border-radius: 0;
19772034}
1978 color: @dark_fg_color;2035
2036.solid-csd:backdrop decoration {
2037 border-color: @dark_bg_color
2038}
2039
2040.titlebar,
2041UnityDecoration .top {
2042 border: 1px solid rgba (85, 40, 0, 0.04); /* shade (@dark_bg_color) (shade (#edebe6, 1.06) */
2043 border-bottom-width: 0;
2044 border-radius: 6px 6px 0 0;
2045 padding: 1px 6px 0 6px;
2046
2047 box-shadow: inset 0 0 transparent, inset 0 0 transparent,
2048 inset 0 1px shade (@edebe6, 1.065), inset 0 0 transparent;
2049
2050 background-color: transparent;
2051 background-clip: border-box;
2052 background-image: -gtk-gradient (linear, left top, left bottom,
2053 from (shade (#edebe6, 1.06)),
2054 to (@dark_bg_color));
2055
2056 color: shade (@dark_bg_color, 0.4);
2057 text-shadow: 1px 0 shade (@dark_bg_color, 1.06), -1px 0 shade (@dark_bg_color, 1.06),
2058 0 1px shade (@dark_bg_color, 1.06), 0 -1px shade (@dark_bg_color, 1.06);
2059}
2060
2061.titlebar:backdrop,
2062UnityDecoration .top:backdrop {
2063 border: 1px solid rgba (110, 27, 0, 0.04); /* shade @dark_bg_color - shade (#edebe6, 0.96) */
2064 border-bottom-width: 0;
2065 background-color: transparent;
2066 background-clip: border-box;
2067 background-image: -gtk-gradient (linear, left top, left bottom,
2068 from (shade (#edebe6, 0.96)),
2069 to (@dark_bg_color));
2070 box-shadow: inset 0 0 transparent, inset 0 0 transparent,
2071 inset 0 1px shade (#edebe6, 0.97), inset 0 0 transparent;
2072
2073 color: #a39e9a;
2074 text-shadow: 1px 0 1px shade (@dark_bg_color, 1.08), -1px 0 1px shade (@dark_bg_color, 1.08),
2075 0 1px 1px shade (@dark_bg_color, 1.08), 0 -1px 1px shade (@dark_bg_color, 1.08);
2076}
2077
2078.maximized .titlebar,
2079.tiled .titlebar {
2080 border-radius: 0;
2081 border-image: none;
2082 border: none;
2083 box-shadow: none;
2084}
2085
2086.maximized .titlebar:not(:backdrop):not(.toolbar-mode),
2087.tiled .titlebar:not(:backdrop):not(.toolbar-mode) {
2088 box-shadow: inset 0 1px shade (#edebe6, 1.08);
1979}2089}
19802090
1981.titlebar .title {2091.titlebar .title {
@@ -1987,23 +2097,6 @@
1987 opacity: 0.5;2097 opacity: 0.5;
1988}2098}
19892099
1990.titlebar:backdrop {
1991 color: @backdrop_fg_color;
1992 background-image: none;
1993 background-color: @dark_bg_color;
1994 border-top-color: @dark_bg_color;
1995 box-shadow: inset 0 1px shade (@dark_bg_color, 1.2);
1996}
1997
1998.maximized .titlebar {
1999 border-radius: 0;
2000 border: none;
2001}
2002
2003.maximized .titlebar.toolbar-mode {
2004 box-shadow: none;
2005}
2006
2007.titlebar button.titlebutton {2100.titlebar button.titlebutton {
2008 background-clip: padding-box;2101 background-clip: padding-box;
2009 border: 1px solid #d0c7bf;2102 border: 1px solid #d0c7bf;
@@ -2046,6 +2139,8 @@
2046}2139}
20472140
20482141
2142
2143
2049/***********2144/***********
2050 * toolbar *2145 * toolbar *
2051 ***********/2146 ***********/
@@ -2066,8 +2161,7 @@
2066 * primary-toolbar *2161 * primary-toolbar *
2067 *******************/2162 *******************/
2068.primary-toolbar,2163.primary-toolbar,
2069headerbar,2164.titlebar.toolbar-mode {
2070.maximized headerbar.titlebar:not(:backdrop) {
2071 -GtkWidget-window-dragging: true;2165 -GtkWidget-window-dragging: true;
20722166
2073 background-image: -gtk-gradient (linear, left top, left bottom,2167 background-image: -gtk-gradient (linear, left top, left bottom,
@@ -2085,12 +2179,8 @@
2085 box-shadow: inset 0 1px shade (@dark_bg_color, 0.94);2179 box-shadow: inset 0 1px shade (@dark_bg_color, 0.94);
2086}2180}
20872181
2088.maximized headerbar.titlebar.toolbar-mode:not(:backdrop) {
2089 border-width: 0;
2090}
2091
2092.primary-toolbar:backdrop,2182.primary-toolbar:backdrop,
2093headerbar:backdrop {2183.titlebar.toolbar-mode:backdrop {
2094 background-image: none;2184 background-image: none;
2095 background-color: @dark_bg_color;2185 background-color: @dark_bg_color;
2096 box-shadow: none;2186 box-shadow: none;
@@ -2101,11 +2191,13 @@
2101}2191}
21022192
2103.primary-toolbar:disabled,2193.primary-toolbar:disabled,
2194.titlebar.toolbar-mode:disabled,
2104headerbar:disabled {2195headerbar:disabled {
2105 text-shadow: 0 -1px shade (@dark_bg_color, 0.7);2196 text-shadow: 0 -1px shade (@dark_bg_color, 0.7);
2106}2197}
21072198
2108.primary-toolbar button,2199.primary-toolbar button,
2200.titlebar button,
2109headerbar button,2201headerbar button,
2110headerbar button:disabled,2202headerbar button:disabled,
2111.primary-toolbar button.flat:hover {2203.primary-toolbar button.flat:hover {
@@ -2361,12 +2453,20 @@
2361 background-image: -gtk-gradient (radial, center 0, 0, center 0, 0.8,2453 background-image: -gtk-gradient (radial, center 0, 0, center 0, 0.8,
2362 from (alpha (mix (@tooltip_bg_color, #ffffff, 0.2), 0.86)),2454 from (alpha (mix (@tooltip_bg_color, #ffffff, 0.2), 0.86)),
2363 to (alpha (@tooltip_bg_color, 0.86)));2455 to (alpha (@tooltip_bg_color, 0.86)));
2364 border-color: alpha (#ffffff, 0.2);2456 border-color: alpha (white, 0.2);
2365 border-radius: 5px;2457 border-radius: 5px;
2366 border-style: solid;2458 border-style: solid;
2367 border-width: 1px;2459 border-width: 1px;
2368}2460}
23692461
2462tooltip.csd:not(.unity-csd) decoration {
2463 border-radius: 5px;
2464}
2465
2466tooltip.background {
2467 background-color: transparent;
2468}
2469
2370tooltip label {2470tooltip label {
2371 color: @tooltip_fg_color;2471 color: @tooltip_fg_color;
2372}2472}
@@ -2419,16 +2519,9 @@
24192519
2420 border-radius: 5px;2520 border-radius: 5px;
2421 border: 1px solid darker(@bg_color);2521 border: 1px solid darker(@bg_color);
2422
2423 box-shadow: 0 2px 3px @shadow_color;
2424 margin: 10px;
2425 padding: 2px;2522 padding: 2px;
2426}2523}
24272524
2428popover:backdrop {
2429 box-shadow: none;
2430}
2431
2432/* Popover menuitems are actually buttons. The following rules reset most of2525/* Popover menuitems are actually buttons. The following rules reset most of
2433 * the button styles for them.2526 * the button styles for them.
2434 */2527 */

Subscribers

People subscribed via source and target branches