Mercurial > repos > other > Adwaita-Dark-Green
changeset 47:d1b3ef174846
Remove deprecated use of linear-gradient with one colour
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 10 Apr 2017 13:37:01 +0100 |
parents | c60ad4cc19f7 |
children | ad922cd4c540 |
files | gtk-3.20/gtk.css gtk-3.20/gtk.scss |
diffstat | 2 files changed, 22 insertions(+), 39 deletions(-) [+] |
line wrap: on
line diff
--- a/gtk-3.20/gtk.css Mon Apr 10 13:30:07 2017 +0100 +++ b/gtk-3.20/gtk.css Mon Apr 10 13:37:01 2017 +0100 @@ -4776,6 +4776,14 @@ @define-color wm_button_active_color_a shade(#3D3D3D, 0.85); @define-color wm_button_active_color_b shade(#3D3D3D, 0.89); @define-color wm_button_active_color_c shade(#3D3D3D, 0.9); +/************************** + * * + * Adwaita Dark Overrides * + * * + * And now do our own * + * overrides of styling! * + * * + **************************/ *:disabled { -gtk-icon-effect: highlight; } @@ -4946,27 +4954,18 @@ .titlebar column-header button.titlebutton:hover { color: black; } -entry, .linked.vertical > entry, .linked.vertical > entry:first-child, .linked.vertical > entry:last-child, spinbutton:not(.vertical) { - background-image: linear-gradient(to bottom, #F0F0F0); +spinbutton:not(.vertical), +entry { background-color: #F0F0F0; } - entry:focus, .linked.vertical > entry:focus, .linked.vertical > entry:first-child:focus, .linked.vertical > entry:last-child:focus, spinbutton:not(.vertical):focus { - background-image: linear-gradient(to bottom, #F0F0F0); } - entry:disabled, .linked.vertical > entry:disabled, .linked.vertical > entry:first-child:disabled, .linked.vertical > entry:last-child:disabled, spinbutton:not(.vertical):disabled { - background-image: linear-gradient(to bottom, #c6c6c6); } - entry:backdrop, .linked.vertical > entry:backdrop, .linked.vertical > entry:first-child:backdrop, .linked.vertical > entry:last-child:backdrop, spinbutton:not(.vertical):backdrop { - background-image: none; + spinbutton:disabled:not(.vertical), + entry:disabled { + background-color: #c6c6c6; } + spinbutton:backdrop:not(.vertical), + entry:backdrop { background-color: #ededed; } - entry:backdrop:disabled, .linked.vertical > entry:backdrop:disabled, .linked.vertical > entry:first-child:backdrop:disabled, .linked.vertical > entry:last-child:backdrop:disabled, spinbutton:not(.vertical):backdrop:disabled { - background-image: linear-gradient(to bottom, #c6c6c6); } - -.linked.vertical > spinbutton:not(:disabled):not(.vertical) + entry:not(:disabled), .linked.vertical > spinbutton:not(:disabled):not(.vertical) + spinbutton:not(:disabled):not(.vertical), .linked.vertical > -entry:not(:disabled) + entry:not(:disabled), .linked.vertical > -entry:not(:disabled) + spinbutton:not(:disabled):not(.vertical) { - background-image: linear-gradient(to bottom, #F0F0F0); } - .linked.vertical > spinbutton:not(:disabled):not(.vertical) + entry:not(:disabled):backdrop, .linked.vertical > spinbutton:not(:disabled):not(.vertical) + spinbutton:not(:disabled):backdrop:not(.vertical), .linked.vertical > - entry:not(:disabled) + entry:not(:disabled):backdrop, .linked.vertical > - entry:not(:disabled) + spinbutton:not(:disabled):backdrop:not(.vertical) { - background-image: linear-gradient(to bottom, #F0F0F0); } + spinbutton:backdrop:disabled:not(.vertical), + entry:backdrop:disabled { + background-color: #c6c6c6; } spinbutton:not(.vertical) button:hover { background-color: rgba(198, 198, 198, 0.4);
--- a/gtk-3.20/gtk.scss Mon Apr 10 13:30:07 2017 +0100 +++ b/gtk-3.20/gtk.scss Mon Apr 10 13:37:01 2017 +0100 @@ -331,28 +331,12 @@ .titlebar column-header button.titlebutton:hover { color: $fg_color_emphasis; } -entry, .linked.vertical > entry, .linked.vertical > entry:first-child, .linked.vertical > entry:last-child, spinbutton:not(.vertical) { - background-image: linear-gradient(to bottom, $text_input_color); - background-color: $text_input_color; - - &:focus { background-image: linear-gradient(to bottom, $text_input_color); } - &:disabled { background-image: linear-gradient(to bottom, $insensitive_bg_color); } - &:backdrop { background-image: none; background-color: $backdrop_text_input_color; } - &:backdrop:disabled { background-image: linear-gradient(to bottom, $insensitive_bg_color); } -} %entry, entry { - %entry_basic, & { - } - .linked.vertical > & { - &:not(:disabled) + entry:not(:disabled), - &:not(:disabled) + %entry:not(:disabled) { - background-image: linear-gradient(to bottom, $text_input_color); - &:backdrop { - background-image: linear-gradient(to bottom, $text_input_color); - } - } - } + background-color: $text_input_color; + &:disabled { background-color: $insensitive_bg_color; } + &:backdrop { background-color: $backdrop_text_input_color; } + &:backdrop:disabled { background-color: $insensitive_bg_color; } } spinbutton:not(.vertical) button:hover { background-color: transparentize($bg_color,0.6);