Fixed LibreOffice Calc issues, :drop(active) too.

This commit is contained in:
Eudaimon 2022-04-01 14:07:29 +02:00
parent df7786568e
commit 7f309059a5
2 changed files with 27 additions and 14 deletions

View File

@ -1,7 +1,8 @@
# To do:
- "treeview.view:drop(active)" done, needs checking
- For some reason LibreOffice Calc draws a black background in formula bar, which makes selected text there difficult to see (also because it doesn't respect selected text color, there). Tried to solve it without success. Apparently there are few explicit black backgrounds. I need to dig more into that.
- "*:drop(active)" done, needs checking.
- Check that LibreOffice Calc's fix does not introduce any regressions somewhere else, because it required modifieng the .view selector, which is very general.
- Create new previews
- Better xfwm integration

View File

@ -30,7 +30,7 @@
@define-color button_hover_gradient_color_b shade(@button_gradient_color_b, 1.2);
@define-color insensitive_bg_color alpha(#0b0b0d, 0.2);
@define-color insensitive_fg_color black; /*alpha(#ababab, 0.7);*/
@define-color insensitive_fg_color #000000; /*alpha(#ababab, 0.7);*/
@define-color insensitive_border_color alpha(#717171, 0.50);
@define-color frame_color #707070;
@ -74,7 +74,7 @@
@define-color app_notification_a shade(@theme_bg_color, 1.35); /*#656568*/
@define-color app_notification_b shade(@theme_bg_color, 1.05); /*#39393A*/
@define-color app_notification_c @theme_bg_color; /*#333334*/
@define-color app_notification_border black;
@define-color app_notification_border #000000;
@define-color content_view_bg @less_dark_color;
@ -348,18 +348,26 @@ row {
/*********
* Views *
*********/
.view,
.view:disabled {
color: mix(@theme_fg_color, @insensitive_fg_color, 0.5);
.view{
color: @theme_text_color;
/*color: @theme_fg_color;*/
/*color: @insensitive_fg_color;*/
border-radius: 0;
/*background-color: @theme_bg_color*/;
/*border-width: 3;*/
background-color: @view_color;
}
/*.view:selected,
.view:active,*/
.view:disabled, .view :disabled {
color: @insensitive_fg_color;
}
*:drop(active) {
box-shadow: inset 0 0 0 1px @green;
}
.view:selected,
.view:active,
.view :selected,
.view :active,
@ -398,15 +406,18 @@ entry selection:focus {
/* It's better not to have too bright text views. */
textview.view,
textview.view:disabled,
iconview.view, iconview.view:disabled,
treeview.view, treeview.view:disabled,
iconview.view,
treeview.view,
GtkHTML
{ /* For Evolution (not enough; see entries section below) */
background-color: @view_color;
color: @theme_text_color;
}
textview.view:disabled, iconview.view:disabled, treeview.view:disabled {
color: @insensitive_fg_color;
}
/* This is for highlighting the current line in source views. */
textview {
background-color: shade (@view_color, 1.2); /* #dddddd; */
@ -1053,6 +1064,7 @@ treeview.view:hover {
treeview.view:drop(active) {
/*color: @theme_main_color;*/
background-color: alpha(@theme_selected_bg_color, 0.4);
box-shadow: inset 0 0 0 1px green;
}
@ -4062,4 +4074,4 @@ read if you used those and something break with a version upgrade you're on your
@define-color wm_button_active_color_a shade(#3d3d3e, 0.85);
@define-color wm_button_active_color_b shade(#3d3d3e, 0.89);
@define-color wm_button_active_color_c shade(#3d3d3e, 0.9);
@define-color content_view_bg @bgcolor;
@define-color content_view_bg @view_color;