https://bugs.documentfoundation.org/show_bug.cgi?id=105415

            Bug ID: 105415
           Summary: System (theme) caret color and size not taken into
                    account
           Product: LibreOffice
           Version: 4.2.6.3 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: UI
          Assignee: [email protected]
          Reporter: [email protected]

All UI components in LO have a custom caret (insertion point), not following
the system theme's size and color for it (irrespective of options under
LO/Accessibility).  This applies to Writer's text area, Calc's cells, or any
text entries like the search box or some preferences.

It is problematic for accessibility purposes where some users want a
larger/differently colored caret to help spot it more easily.

GTK2 theme options for that are:

* GtkWidget::cursor_color (color:
https://developer.gnome.org/gtk2/stable/GtkWidget.html#GtkWidget--s-cursor-color)
* GtkWidget::secondary_cursor_color (color for secondary caret at RTL/LTR
bounds:
https://developer.gnome.org/gtk2/stable/GtkWidget.html#GtkWidget--s-secondary-cursor-color)
* GtkWidget::cursor_aspect_ratio (size:
https://developer.gnome.org/gtk2/stable/GtkWidget.html#GtkWidget--s-cursor-aspect-ratio)

Some themes (like HighContrast) set those on specific widgets instead, like
GtkTextView, GtkEntry and EelEditableLabel instead of GtkWidget directly.

This applies at least from 4.2 to 5.3.0.1, but probably also on older versions.
 Using the GTK2 backend, but the GTK3 one is likely affected.


Steps to reproduce:

1. Alter the caret color and size on your theme.  For example, drop the
following snippet in ~/.gtkrc-2.0:

# --8<--
style "caret"
{
  GtkWidget::cursor_color = "#FF0000"
  GtkWidget::cursor_aspect_ratio = 0.2
  GtkTextView::cursor_color = "#00FF00"
  GtkTextView::cursor_aspect_ratio = 0.2
  GtkEntry::cursor_color = "#0000FF"
  GtkEntry::cursor_aspect_ratio = 0.2
}
class "GtkWidget" style "caret"
# --8<--

2. Open any GTK2 app proposing text entries, and see the caret is larger and of
a different color (depending on the type of input field with my example).

3. Open LO, and see no changes to the caret.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to