$backdrop_fg_color: mix($fg_color, $backdrop_bg_color, 50%);
$backdrop_insensitive_color: if($variant == 'light', darken($backdrop_bg_color, 15%), lighten($backdrop_bg_color, 15%));
$backdrop_selected_fg_color: if($variant == 'light', $backdrop_base_color, $backdrop_text_color);
+$backdrop_selected_bg_color: transparentize(desaturate($selected_bg_color,100%),0.5);
$backdrop_borders_color: mix($borders_color, $bg_color, 80%);
$backdrop_dark_fill: mix($backdrop_borders_color, $backdrop_bg_color, 35%);
> text {
@extend %view;
- > selection { &:focus, & { @extend %selected_items; }}
+ > selection {
+ background-color: $backdrop_selected_bg_color;
+
+ &:focus-within {
+ background-color: $selected_bg_color;
+ }
+ }
}
&:drop(active) {
&:selected { @extend %nobg_selected_items; }
> selection {
- background-color: $selected_bg_color;
+ background-color: $backdrop_selected_bg_color;
color: $selected_fg_color;
+ &:focus-within {
+ background-color: $selected_bg_color;
+ }
}
&:disabled {
&:disabled { @include entry(insensitive); }
- > text > selection { @extend %selected_items; }
+ > text > selection {
+ background-color: $backdrop_selected_bg_color;
+ color: transparent;
+ &:focus-within {
+ background-color: $selected_bg_color;
+ color: $selected_fg_color;
+ }
+ }
// entry error and warning style
@each $e_type, $e_color in (error, $error_color),
padding: 0;
border-radius: 0;
- > selection { @extend %selected_items; }
+ > selection {
+ background-color: $backdrop_selected_bg_color;
+ color: transparent;
+ &:focus-within {
+ background-color: $selected_bg_color;
+ color: $selected_fg_color;
+ }
+ }
> block-cursor { @include entry(block_cursor); }
}
}
columnview row:not(:selected) cell editablelabel.editing text selection {
- color: $selected_fg_color;
- background-color: $selected_bg_color;
+ background-color: $backdrop_selected_bg_color;
+ color: transparent;
+ &:focus-within {
+ background-color: $selected_bg_color;
+ color: $selected_fg_color;
+ }
}
/*******************************************************