elementary / stylesheet

The GTK Stylesheet for elementary OS
https://elementary.io
GNU General Public License v3.0
321 stars 74 forks source link

Selection box in LibreOffice Calc is invisible when using light theme #1225

Open Romchec opened 1 year ago

Romchec commented 1 year ago

What Happened?

It's hard to use LibreOffice Calc because selection box is blends into the background. Снимок экрана от 2022-09-04 15 01 44 Снимок экрана от 2022-09-04 15 03 02

Steps to Reproduce

  1. Set one of default elementary OS themes
  2. Turn on light mode
  3. Open LibreOffice Calc
  4. Select cell with cursor

Expected Behavior

Selection box and dot at the bottom right corner should be more visible, not white. Here's how it works in dark mode and another GTK theme: Снимок экрана от 2022-09-04 15 03 27 Снимок экрана от 2022-09-04 15 04 33 Снимок экрана от 2022-09-04 15 04 00

OS Version

6.x (Odin)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

No response

IanHead commented 1 year ago

Appending the style sheet with this (for Blue, in this case) worked around the issue for me.

* {
  -gtk-secondary-caret-color: @selected_bg_color;
}

.view:selected:focus, .view:selected, iconview:selected,
.view text:selected,
iconview text:selected,
textview text:selected {
  background-color: @selected_bg_color;
} 

Result:

ksnip_20230601-135439

LibreOffice seems to pay attention to these for setting the selection colours. It perhaps is a clue as to how to fix the problem permanently going forward?