[gtk/wip/jimmac/backdrop-assasination] Adwaita: limit scope of :backdrop
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/jimmac/backdrop-assasination] Adwaita: limit scope of :backdrop
- Date: Mon, 18 May 2020 20:56:48 +0000 (UTC)
commit 190e4b70a735211ce03223b91dff655c8d885c08
Author: Jakub Steiner <jimmac gmail com>
Date: Mon May 18 22:51:02 2020 +0200
Adwaita: limit scope of :backdrop
- most controls don't have:backdrop state
- different :backdrop state reserved for windows, headebars and toolbars
and some buttons
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/2694
gtk/theme/Adwaita/_colors.scss | 6 -
gtk/theme/Adwaita/_common.scss | 408 +----------------------------------------
2 files changed, 10 insertions(+), 404 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_colors.scss b/gtk/theme/Adwaita/_colors.scss
index 32c6998696..d58d0b6335 100644
--- a/gtk/theme/Adwaita/_colors.scss
+++ b/gtk/theme/Adwaita/_colors.scss
@@ -60,12 +60,6 @@ $backdrop_insensitive_color: if($variant == 'light', darken($backdrop_bg_color,
$backdrop_selected_fg_color: if($variant == 'light', $backdrop_base_color, $backdrop_text_color);
$backdrop_borders_color: mix($borders_color, $bg_color, 80%);
$backdrop_dark_fill: mix($backdrop_borders_color, $backdrop_bg_color, 35%);
-$backdrop_sidebar_bg_color: mix($backdrop_bg_color, $backdrop_base_color, 50%);
-
-$backdrop_scrollbar_bg_color: darken($backdrop_bg_color, 3%);
-$backdrop_scrollbar_slider_color: mix($backdrop_fg_color, $backdrop_bg_color, 40%);
-
-$backdrop_menu_color: if($variant == 'light', $backdrop_base_color, mix($backdrop_bg_color,
$backdrop_base_color, 20%));
//special cased widget colors
$suggested_bg_color: $selected_bg_color;
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 66e4e22b98..df88eb9e74 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -21,8 +21,6 @@ $button_fill: null; // global var defined within a parameter driven mixin. See i
background-color: $bg_color;
&:backdrop {
- color: $backdrop_fg_color;
- background-color: $backdrop_bg_color;
text-shadow: none;
-gtk-icon-shadow: none;
}
@@ -59,12 +57,6 @@ treeview.expander:disabled { -gtk-icon-filter: opacity(0.5); }
color: $text_color;
background-color: $base_color;
- &:backdrop {
- color: $backdrop_text_color;
- background-color: $backdrop_base_color;
- &:disabled { color: $backdrop_insensitive_color; }
- }
-
&:disabled {
color: $insensitive_fg_color;
background-color: $insensitive_bg_color;
@@ -137,7 +129,6 @@ flowbox {
border-radius: 0;
padding: 0;
- &:backdrop { background-color: if($variant=='light', transparent, darken($backdrop_base_color,5%)); }
&:active, &:selected { background-color: if($variant=='light', transparent, $selected_bg_color); }
&:disabled { background-color: if($variant=='light', transparent, $insensitive_bg_color); }
}
@@ -161,18 +152,9 @@ label {
button & { color: inherit; }
- &:backdrop {
- color: $backdrop_insensitive_color;
-
- button & { color: inherit; }
- }
-
> selection { @extend %selected_items_disabled; }
}
- &:backdrop {
- > selection { @extend %selected_items_backdrop; }
- }
}
.dim-label {
@@ -185,10 +167,6 @@ assistant {
background-color: $base_color;
border-top: 1px solid $borders_color;
- &:backdrop {
- background-color: $backdrop_base_color;
- border-color: $backdrop_borders_color;
- }
}
&.csd .sidebar { border-top-style: none; }
@@ -207,10 +185,6 @@ assistant {
text-shadow: 0 1px black;
-gtk-icon-shadow: 0 1px black;
- &:backdrop {
- text-shadow: none;
- -gtk-icon-shadow: none;
- }
}
@@ -326,14 +300,6 @@ entry {
&:disabled { @include entry(insensitive); }
- &:backdrop {
- @include entry(backdrop);
-
- transition: $backdrop_transition;
- }
-
- &:backdrop:disabled { @include entry(backdrop-insensitive); }
-
> text > selection { @extend %selected_items; }
// entry error and warning style
@@ -357,7 +323,6 @@ entry {
&:active { color: $selected_bg_color; }
- &:backdrop { color: mix($backdrop_fg_color, $backdrop_base_color, 80%); }
}
&.password image.caps-lock-indicator {
@@ -376,8 +341,6 @@ entry {
&:focus-within { @include entry(osd-focus); }
- &:backdrop { @include entry(osd-backdrop); }
-
&:disabled { @include entry(osd-insensitive); }
}
}
@@ -395,7 +358,6 @@ entry {
border-style: solid;
box-shadow: none;
- &:backdrop { background-color: transparent; }
}
// linked entries
@@ -414,8 +376,6 @@ entry {
&:not(:disabled) + entry:not(:disabled),
&:not(:disabled) + %entry:not(:disabled) {
border-top-color: mix($borders_color, $base_color, 30%);
-
- &:backdrop { border-top-color: mix($backdrop_borders_color, $backdrop_base_color, 30%); }
}
// brighter border between linked insensitive entries
@@ -618,20 +578,6 @@ button {
border: none;
box-shadow: none;
}
-
- &:disabled {
- &:backdrop, & {
- @include button(osd-insensitive);
-
- border: none;
- }
- }
-
- &:backdrop {
- @include button(osd-backdrop);
-
- border: none;
- }
}
//overlay / OSD style
@@ -646,8 +592,6 @@ button {
&:disabled { &:backdrop, & { @include button(osd-insensitive); }}
- &:backdrop { @include button(osd-backdrop); }
-
&.flat {
@include button(undecorated);
@@ -664,8 +608,6 @@ button {
box-shadow: none;
}
- &:backdrop { @include button(undecorated); }
-
&:active,
&:checked { @include button(osd-active); }
}
@@ -689,23 +631,8 @@ button {
&:active,
&:checked { @include button(active, $b_color, white); }
- &:backdrop,
- &.flat:backdrop {
- @include button(backdrop, $b_color, white);
-
- &:active,
- &:checked { @include button(backdrop-active, $b_color, white); }
-
- &:disabled {
- @include button(backdrop-insensitive);
-
- &:active,
- &:checked { @include button(backdrop-insensitive-active, $b_color, white); }
- }
- }
-
&.flat {
- &:backdrop, &:disabled, &:backdrop:disabled {
+ &:disabled {
@include button(undecorated);
color: transparentize($b_color, 0.2);
@@ -729,7 +656,6 @@ button {
&:disabled { &:backdrop, & { @include button(osd-insensitive, $b_color); }}
- &:backdrop { @include button(osd-backdrop, $b_color); }
}
}
}
@@ -885,13 +811,10 @@ modelbutton.flat {
&:disabled {
color: $insensitive_fg_color;
- &:backdrop { color: $backdrop_insensitive_color; }
+
}
&:selected { @extend %selected_items; }
-
- &:backdrop,
- &:backdrop:hover { @extend %undecorated_button; }
}
modelbutton.flat arrow {
@@ -936,7 +859,6 @@ button.color {
@if $variant == 'light' {
.osd &, & {
&:disabled,
- &:backdrop,
&:active,
&:checked { colorswatch:only-child { box-shadow: none; }}
}
@@ -982,9 +904,7 @@ link {
*:selected & { color: mix($selected_fg_color, $link_color, 80%); }
}
- &:disabled, &:disabled:backdrop { color: transparentize(desaturate($link_color, 100%), 0.2); }
-
- &:backdrop { color: transparentize($link_color, 0.1); }
+ &:disabled { color: transparentize(desaturate($link_color, 100%), 0.2); }
@at-root %link_selected,
&:selected,
@@ -1074,21 +994,6 @@ spinbutton {
box-shadow: inset 0 2px 3px -1px transparentize(black, 0.8);
}
- &:backdrop {
- color: mix($backdrop_fg_color, $backdrop_base_color, 90%);
- background-color: transparent;
- border-color: transparentize($backdrop_borders_color, 0.7);
- transition: $backdrop_transition;
- }
-
- &:backdrop:disabled {
- color: transparentize($backdrop_insensitive_color,0.7);
- background-color: transparent;
- border-style: none none none solid; // It is needed or it gets overridden
-
- &:dir(rtl) { border-style: none solid none none; }
- }
-
&:dir(ltr):last-child { border-radius: 0 $button_radius $button_radius 0; }
&:dir(rtl):first-child { border-radius: $button_radius 0 0 $button_radius; }
@@ -1123,15 +1028,6 @@ spinbutton {
box-shadow: none;
}
- &:backdrop {
- @include button(undecorated);
-
- color: $osd_fg_color;
- border-color: transparentize(opacify($osd_borders_color, 1), 0.5);
- -gtk-icon-shadow: none;
- box-shadow: none;
- }
-
&:disabled {
@include button(undecorated);
@@ -1157,8 +1053,6 @@ spinbutton {
// color
&:disabled { color: $insensitive_fg_color; }
- &:backdrop:disabled { color: $backdrop_insensitive_color; }
-
&:drop(active) {
border-color: transparent;
box-shadow: none;
@@ -1207,8 +1101,6 @@ spinbutton {
&:active { @include button(osd-active); }
&:disabled { @include button(osd-insensitive); }
-
- &:backdrop { @include button(osd-backdrop); }
}
// Misc
@@ -1623,11 +1515,6 @@ treeview.view {
@extend %selected_items;
}
-
- &:backdrop, & {
- border-left-color: $_treeview_backdrop_borders_color;
- border-top-color: $_treeview_backdrop_borders_color; // doesn't work unfortunatelly
- }
}
&:disabled {
@@ -1637,15 +1524,11 @@ treeview.view {
color: mix($selected_fg_color, $selected_bg_color, 40%);
&:backdrop { color: mix($backdrop_selected_fg_color, $selected_bg_color, 30%); }
}
-
- &:backdrop { color: $backdrop_insensitive_color; }
}
&.separator {
min-height: 2px;
color: $_treeview_borders_color;
-
- &:backdrop { color: transparentize($borders_color, 0.8); }
}
&:backdrop {
@@ -1683,13 +1566,9 @@ treeview.view {
color: mix($selected_fg_color, $selected_bg_color, 70%);
&:hover { color: $selected_fg_color; }
-
- &:backdrop { color: mix($backdrop_selected_fg_color, $selected_bg_color, 70%); }
}
&:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
-
- &:backdrop { color: mix($backdrop_fg_color, $backdrop_base_color, 70%); }
}
&.progressbar { // progress bar in treeviews
@@ -1719,13 +1598,6 @@ treeview.view {
}
}
}
-
- &:backdrop {
- @if $variant == 'light' { color: $backdrop_base_color; }
-
- background-image: none;
- box-shadow: none;
- }
}
&.trough { // progress bar trough in treeviews
@@ -1801,19 +1673,6 @@ treeview.view {
background-image: none;
}
- &:backdrop {
- color: mix($backdrop_fg_color, $backdrop_bg_color, 50%);
- border-color: $_treeview_backdrop_borders_color;
- border-style: none solid solid none;
- background-image: none;
- background-color: $backdrop_base_color;
-
- &:disabled {
- border-color: $backdrop_bg_color;
- background-image: none;
- }
- }
-
&:last-child { &:backdrop, & { border-right-style: none; }}
}
@@ -1833,11 +1692,6 @@ popover.background {
background-clip: padding-box;
border: 1px solid $_popover_border;
box-shadow: 0 1px 2px transparentize(black, 0.7);
-
- &:backdrop {
- background-color: $backdrop_bg_color;
- box-shadow: none;
- }
}
> contents {
@@ -1889,11 +1743,6 @@ notebook {
border-width: 1px;
background-color: $dark_fill;
- &:backdrop {
- border-color: $backdrop_borders_color;
- background-color: $backdrop_dark_fill;
- }
-
> tabs { margin: -1px; }
&.top {
@@ -1903,7 +1752,6 @@ notebook {
> tab {
&:hover { box-shadow: inset 0 -3px $borders_color; }
- &:backdrop { box-shadow: none; }
&:checked { box-shadow: inset 0 -3px $selected_bg_color; }
}
@@ -1917,8 +1765,6 @@ notebook {
> tab {
&:hover { box-shadow: inset 0 3px $borders_color; }
- &:backdrop { box-shadow: none; }
-
&:checked { box-shadow: inset 0 3px $selected_bg_color; }
}
}
@@ -1931,8 +1777,6 @@ notebook {
> tab {
&:hover { box-shadow: inset -3px 0 $borders_color; }
- &:backdrop { box-shadow: none; }
-
&:checked { box-shadow: inset -3px 0 $selected_bg_color; }
}
}
@@ -1945,8 +1789,6 @@ notebook {
> tab {
&:hover { box-shadow: inset 3px 0 $borders_color; }
- &:backdrop { box-shadow: none; }
-
&:checked { box-shadow: inset 3px 0 $selected_bg_color; }
}
}
@@ -2039,15 +1881,6 @@ notebook {
}
}
- &:backdrop {
- color: mix($backdrop_fg_color, $backdrop_bg_color, 60%);
-
- &.reorderable-page {
- border-color: transparent;
- background-color: transparent;
- }
- }
-
&:not(:checked) {
outline-color: transparent;
}
@@ -2062,21 +1895,11 @@ notebook {
}
}
- &:backdrop:checked {
- color: $backdrop_fg_color;
-
- &.reorderable-page {
- border-color: $backdrop_borders_color;
- background-color: $backdrop_bg_color;
- }
- }
-
// colors the button like the label, overridden otherwise
button.flat {
+ color: gtkalpha(currentColor, 0.3);
&:hover { color: currentColor; }
- &, &:backdrop { color: gtkalpha(currentColor, 0.3); }
-
padding: 0;
margin-top: 4px;
margin-bottom: 4px;
@@ -2148,8 +1971,6 @@ notebook {
> stack:not(:only-child) { // the :not(:only-child) is for "hidden" notebooks
background-color: $base_color;
-
- &:backdrop { background-color: $backdrop_base_color; }
}
}
@@ -2169,12 +1990,6 @@ scrollbar {
&.left { border-right: 1px solid $borders_color; }
&.right { border-left: 1px solid $borders_color; }
- &:backdrop {
- background-color: $backdrop_scrollbar_bg_color;
- border-color: $backdrop_borders_color;
- transition: $backdrop_transition;
- }
-
> range > trough > slider {
min-width: 6px;
min-height: 6px;
@@ -2188,8 +2003,6 @@ scrollbar {
&:hover:active { background-color: $scrollbar_slider_active_color; }
- &:backdrop { background-color: $backdrop_scrollbar_slider_color; }
-
&:disabled { background-color: transparent; }
}
@@ -2277,27 +2090,6 @@ switch {
text-shadow: none;
}
- &:backdrop {
- color: $backdrop_fg_color;
- border-color: $backdrop_borders_color;
- background-color: $backdrop_dark_fill;
- text-shadow: none;
- transition: $backdrop_transition;
-
- &:checked {
- @if $variant == 'light' { color: $backdrop_bg_color; }
- border-color: if($variant == 'light', $switch_borders_color,
- $switch_borders_color);
- background-color: $switch_bg_color;
- }
-
- &:disabled {
- color: $backdrop_insensitive_color;
- border-color: $backdrop_borders_color;
- background-color: $insensitive_bg_color;
- }
- }
-
> slider {
margin: -1px;
min-width: 24px;
@@ -2325,17 +2117,6 @@ switch {
&:disabled > slider { @include button(insensitive); }
- &:backdrop {
- > slider {
- transition: $backdrop_transition;
-
- @include button(backdrop);
- }
-
- &:checked > slider { border-color: $switch_borders_color; }
-
- &:disabled > slider { @include button(backdrop-insensitive); }
- }
row:selected & {
outline-color: $alt_focus_border_color;
@@ -2344,8 +2125,6 @@ switch {
box-shadow: none;
border-color: $switch_borders_color;
- &:backdrop { border-color: $switch_borders_color; }
-
> slider { &:checked, & { border-color: $switch_borders_color; } }
}
}
@@ -2415,9 +2194,7 @@ radio {
@each $state, $t in ("", "normal"),
(":hover", "hover"),
(":active", "active"),
- (":disabled", "insensitive"),
- (":backdrop", "backdrop"),
- (":backdrop:disabled", 'backdrop-insensitive') {
+ (":disabled", "insensitive") {
&#{$state} {
@include check($t, $_c);
}
@@ -2431,9 +2208,7 @@ radio {
@each $state, $t in ("", "normal"),
(":hover", "hover"),
(":active", "active"),
- (":disabled", "insensitive"),
- (":backdrop", "backdrop"),
- (":backdrop:disabled", 'backdrop-insensitive') {
+ (":disabled", "insensitive") {
&#{$state} {
@include check($t, $checkradio_bg_color, $checkradio_fg_color, $checked: true);
}
@@ -2441,8 +2216,6 @@ radio {
}
}
}
-
- &:backdrop { transition: $backdrop_transition; }
@if $variant == 'light' {
// the borders of the light variant versions of checks and radios are too similar in luminosity to the
selected background
@@ -2455,7 +2228,6 @@ radio {
&:hover { @include button(osd); }
&:active { @include button(osd-active); }
- &:backdrop { @include button(osd-backdrop); }
&:disabled { @include button(osd-insensitive); }
}
}
@@ -2511,17 +2283,6 @@ treeview.view radio:selected { &:focus, & { @extend %radio; }} // This is a work
border-color: $insensitive_borders_color;
}
- &:backdrop {
- background-color: $backdrop_dark_fill;
- border-color: $backdrop_borders_color;
- transition: $backdrop_transition;
-
- &:disabled {
- background-color: $insensitive_bg_color;
- border-color: $insensitive_borders_color;
- }
- }
-
// ...on selected list rows
row:selected & {
&:disabled, & {
@@ -2549,15 +2310,6 @@ treeview.view radio:selected { &:focus, & { @extend %radio; }} // This is a work
border-color: transparent;
}
- &:backdrop {
- border-color: if($variant=='light', $selected_bg_color,
- $selected_borders_color);
- &:disabled {
- background-color: transparent;
- border-color: transparent;
- }
- }
-
// ...on selected list rows
row:selected & { &:disabled, & { border-color: $selected_borders_color; }}
@@ -2636,10 +2388,8 @@ scale {
&:backdrop, & { background-color: $borders_color; }
&:disabled {
- &:backdrop, & {
- border-color: transparent;
- background-color: transparent;
- }
+ border-color: transparent;
+ background-color: transparent;
}
// OSD
@@ -2647,10 +2397,8 @@ scale {
background-color: mix($osd_fg_color, $osd_borders_color, 25%);
&:disabled {
- &:backdrop, & {
- border-color: transparent;
- background-color: transparent;
- }
+ border-color: transparent;
+ background-color: transparent;
}
}
}
@@ -2669,14 +2417,6 @@ scale {
&:disabled { @include button(insensitive); }
- &:backdrop {
- transition: $backdrop_transition;
-
- @include button(backdrop);
-
- &:disabled { @include button(backdrop-insensitive); }
- }
-
// ...on selected list rows
row:selected & { &:disabled, & { border-color: $selected_borders_color; } }
@@ -2700,16 +2440,6 @@ scale {
@include button(osd-insensitive);
background-color: opacify($osd_bg_color, 1); // solid background needed here
}
-
- &:backdrop {
- @include button(osd-backdrop);
- background-color: opacify($osd_bg_color, 1); // solid background needed here
-
- &:disabled {
- @include button(osd-backdrop-insensitive);
- background-color: opacify($osd_bg_color, 1); // solid background needed here
- }
- }
}
}
@@ -3002,11 +2732,6 @@ progressbar {
color: transparentize($fg_color, 0.6);
font-feature-settings: "tnum";
- &:backdrop {
- box-shadow: none;
- transition: $backdrop_transition;
- }
-
> trough { @extend %scale_trough; }
> trough > progress {
@@ -3017,12 +2742,6 @@ progressbar {
border-color: $insensitive_fg_color;
}
- &:backdrop:disabled {
- background-color: $backdrop_insensitive_color;
- border-color: $backdrop_insensitive_color;
- }
-
-
border-radius: 1.5px;
&.left {
@@ -3121,8 +2840,6 @@ levelbar {
}
}
- &:backdrop { transition: $backdrop_transition; }
-
> trough {
padding: 0;
}
@@ -3134,29 +2851,22 @@ levelbar {
&.low {
border-color: if($variant == 'light', darken($warning_color, 10%), $borders_color);
background-color: $warning_color;
-
- &:backdrop { border-color:if($variant == 'light', $warning_color, $borders_color); };
}
&.high,
&:not(.empty) {
border-color: if($variant == 'light', darken($selected_bg_color, 10%), $borders_color);
background-color: $selected_bg_color;
-
- &:backdrop { border-color:if($variant == 'light', $selected_bg_color, $borders_color); };
}
&.full {
border-color: if($variant == 'light', darken($success_color, 10%), $borders_color);
background-color: $success_color;
-
- &:backdrop { border-color: $success_color; };
}
&.empty {
background-color: darken($bg_color, 5%);
border-color: $borders_color;
- &:backdrop { border-color:if($variant == 'light', transparentize($borders_color,0.7), $borders_color);
};
}
}
}
@@ -3172,11 +2882,6 @@ printdialog {
border: none;
padding: 0;
- &:backdrop {
- color: $backdrop_fg_color;
- border-color: $backdrop_borders_color;
- }
-
paper {
background: white;
color: #2e3436;
@@ -3201,15 +2906,11 @@ frame,
border: 1px solid $borders_color;
&.flat { border-style: none; }
-
- &:backdrop { border-color: $backdrop_borders_color; }
}
actionbar > revealer > box {
padding: 6px;
border-top: 1px solid $borders_color;
-
- &:backdrop { border-color: $backdrop_borders_color; }
}
scrolledwindow {
@@ -3222,26 +2923,18 @@ scrolledwindow {
> overshoot {
&.top {
@include overshoot(top);
-
- &:backdrop { @include overshoot(top, backdrop); }
}
&.bottom {
@include overshoot(bottom);
-
- &:backdrop { @include overshoot(bottom, backdrop); }
}
&.left {
@include overshoot(left);
-
- &:backdrop { @include overshoot(left, backdrop); }
}
&.right {
@include overshoot(right);
-
- &:backdrop { @include overshoot(right, backdrop); }
}
}
@@ -3258,19 +2951,6 @@ scrolledwindow {
linear-gradient(to bottom, transparent 1px, $scrollbar_bg_color 1px),
linear-gradient(to left, transparent 1px, $scrollbar_bg_color 1px);
}
-
- &:backdrop {
- transition: $backdrop_transition;
- background: $backdrop_borders_color,
- linear-gradient(to bottom, transparent 1px, $backdrop_scrollbar_bg_color 1px),
- linear-gradient(to right, transparent 1px, $backdrop_scrollbar_bg_color 1px);
-
- &:dir(rtl) {
- background: $backdrop_borders_color,
- linear-gradient(to bottom, transparent 1px, $backdrop_scrollbar_bg_color 1px),
- linear-gradient(to left, transparent 1px, $backdrop_scrollbar_bg_color 1px);
- }
- }
}
}
@@ -3312,8 +2992,6 @@ row {
&:hover { transition: none; }
- &:backdrop { transition: $backdrop_transition; }
-
&.activatable {
&.has-open-popup, // this is for indicathing which row generated a popover see
https://bugzilla.gnome.org/show_bug.cgi?id=754411
@@ -3321,15 +2999,11 @@ row {
&:active { box-shadow: inset 0 2px 2px -2px transparentize(black, 0.8); }
- &:backdrop:hover { background-color: transparent; }
-
&:selected {
&:active { box-shadow: inset 0 2px 3px -1px transparentize(black, 0.5); }
&.has-open-popup,
&:hover { background-color: mix($fg_color, $selected_bg_color, 10%); }
-
- &:backdrop { background-color: $selected_bg_color; }
}
}
@@ -3355,11 +3029,6 @@ row {
transparent 2px);
background-clip: padding-box;
- &:backdrop {
- background-image: none;
- transition: $backdrop_transition;
- }
-
button { @extend %osd_button; }
border { border: none; }
@@ -3376,7 +3045,6 @@ expander {
&:dir(rtl) { -gtk-icon-source: -gtk-icontheme('pan-end-symbolic-rtl'); }
&:disabled { color: $insensitive_fg_color; }
- &:disabled:backdrop { color: $backdrop_insensitive_color; }
&:checked { -gtk-icon-source: -gtk-icontheme('pan-down-symbolic'); }
}
@@ -3458,10 +3126,6 @@ calendar {
}
}
- &:backdrop {
- color: $backdrop_text_color;
- border-color: $backdrop_borders_color;
- }
}
@@ -3516,8 +3180,6 @@ messagedialog { // Message Dialog styling
filechooser {
.dialog-action-box {
border-top: 1px solid $borders_color;
-
- &:backdrop { border-top-color: $backdrop_borders_color; }
}
#pathbarbox { border-bottom: 1px solid $bg_color; }
@@ -3557,12 +3219,6 @@ filechooserbutton:drop(active) {
}
}
- &:backdrop {
- background-color: $backdrop_sidebar_bg_color;
- border-color: $backdrop_borders_color;
- transition: $backdrop_transition;
- }
-
list { background-color: transparent; }
paned & { &.left, &.right, &.left:dir(rtl), &:dir(rtl), &:dir(ltr), & { border-style: none; }}
@@ -3587,10 +3243,6 @@ stacksidebar {
separator.sidebar {
background-color: $borders_color;
-
- &:backdrop {
- background-color: $backdrop_borders_color;
- }
}
@@ -3619,14 +3271,6 @@ placessidebar {
&:disabled { color: $insensitive_fg_color; }
- &:backdrop {
- color: $backdrop_fg_color;
-
- &:selected { color: $backdrop_selected_fg_color; }
-
- &:disabled { color: $backdrop_insensitive_color; }
- }
-
image.sidebar-icon {
&:dir(ltr) { padding-right: 8px; }
&:dir(rtl) { padding-left: 8px; }
@@ -3648,9 +3292,6 @@ placessidebar {
margin-bottom: 3px;
padding: 0;
border-radius: 100%;
-
- &:not(:hover):not(:active),
- &:backdrop { > image { opacity: $_placesidebar_icons_opacity; }}
}
// in the sidebar case it makes no sense to click the selected row
@@ -3713,20 +3354,12 @@ paned {
&:selected { background-image: image($selected_bg_color); } // FIXME is this needed?
- &:backdrop { background-image: image($backdrop_borders_color); }
-
&.wide {
min-width: 5px;
min-height: 5px;
background-color: $bg_color;
background-image: image($borders_color), image($borders_color);
background-size: 1px 1px, 1px 1px;
-
- &:backdrop {
- background-color: $backdrop_bg_color;
- background-image: image($backdrop_borders_color),
- image($backdrop_borders_color);
- }
}
}
@@ -3901,7 +3534,6 @@ colorswatch {
&:hover { border-color: if($variant == 'light', transparentize(black, 0.2), $borders_color); }
- &:backdrop { color: transparentize(white, 0.5); }
}
}
@@ -3913,7 +3545,6 @@ colorswatch {
&:hover { border-color: if($variant == 'light', transparentize(black, 0.5), $borders_color); }
- &:backdrop { color: transparentize(black, 0.5); }
}
}
@@ -3940,11 +3571,6 @@ colorswatch {
box-shadow: inset 0 1px transparentize(white, 0.6),
inset 0 -1px transparentize(black, 0.8);
}
-
- &:backdrop, &:backdrop:hover {
- border-color: if($variant == 'light', transparentize(black, 0.7), $borders_color);
- box-shadow: none;
- }
}
&#add-color-button {
@@ -3956,8 +3582,6 @@ colorswatch {
@include button(normal);
&:hover { @include button(hover); }
-
- &:backdrop { @include button(backdrop); }
}
}
@@ -3996,8 +3620,6 @@ colorchooser .popover.osd { border-radius: 5px; }
&:hover { -gtk-icon-filter: brightness(1.2); }
- &:backdrop { background-color: darken($bg_color,7%); }
-
> rubberband { @extend rubberband; }
}
@@ -4015,8 +3637,6 @@ colorchooser .popover.osd { border-radius: 5px; }
background-color: transparentize($fg_color,0.9);
border-radius: 5px;
}
-
- &:backdrop { &:hover, &:disabled, & { @extend %undecorated_button; }}
}
}
@@ -4187,11 +3807,6 @@ shortcut > .keycap {
box-shadow: if($variant == 'light', inset 0 -3px mix($base_color, $bg_color, 20%), inset 0 -3px
mix($borders_color, $base_color, 60%));
font-size: smaller;
- &:backdrop {
- background-color: $backdrop_base_color;
- color: $backdrop_fg_color;
- transition: $backdrop_transition;
- }
}
:not(decoration):not(window):drop(active):focus,
@@ -4263,7 +3878,6 @@ button.emoji-section {
&:dir(ltr):not(:last-child) { margin-right: 0; }
&:dir(rtl):not(:last-child) { margin-left: 0; }
- &:backdrop:not(:checked) { border-color: transparent; }
&:hover { border-color: if($variant == 'light', $borders_color, transparentize($fg_color, .9)); }
&:checked { border-color: $selected_bg_color; }
@@ -4313,8 +3927,6 @@ menubar {
padding: 0px;
box-shadow: inset 0 -1px transparentize(black, 0.9);
- &:backdrop { background-color: $backdrop_bg_color; }
-
> item {
min-height: 16px;
padding: 4px 8px;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]