I have LibreOffice 6.0.3.2 in 16.04 via the fresh ppa.
GTK3 themes maybe easily modified by the user or they may not: the latter are compiled and will have files like /usr/share/themes/Numix/gtk-3.0/**gtk.gresource
and a folder like /usr/share/themes/Numix/gtk-3.0/scss
.
What follows isn't easily possible to do with compiled themes.
If you have a gtk3 theme you can edit, open its gtk-widgets.css
with a plain text editor and, a few lines from the top of the file, look for something like:
/* default */
* {
-GtkArrow-arrow-scaling: 0.6;
-GtkButton-child-displacement-x: 0;
-GtkButton-child-displacement-y: 0;
-GtkButton-default-border: 0;
-GtkButton-image-spacing: 0;
***..... lines deleted .....***
-GtkTextView-error-underline-color: @error_color;
-GtkToolButton-icon-spacing: 6;
-GtkToolItemGroup-expander-size: 11;
-GtkTreeView-expander-size: 11;
-GtkWidget-focus-line-width: 0;
-GtkWidget-focus-padding: 0;
-GtkWidget-link-color: @link_color;
-GtkWidget-visited-link-color: @link_color;
-GtkWindow-resize-grip-height: 13;
-GtkWindow-resize-grip-width: 13;
-WnckTasklist-fade-overlay-rect: 0;
background-clip: padding-box;
outline-color: alpha(@theme_fg_color, 0.3);
outline-style: dashed;
outline-offset: 2px;
-GtkWidget-cursor-aspect-ratio: 0.2;
}
What is important is the last line with -GtkWidget-cursor-aspect-ratio: 0.2;
which may not be present normally. You will need to add it. If you are modifying the theme in usr/share/themes
, keep in mind, you'll need elevated privileges to edit the file and that an update to the theme may require you to edit the file all over again.
I prefer to copy over entire themes to ~/.themes
and to rename the top theme folder to something convenient that I can tell them apart.
Without a line dealing with -GtkWidget-cursor-aspect-ratio
, you'll have a thin insertion bar:
If you edit the value to 0.1
, you'll have a thick bar:
And, if you edit the value to 0.2
, you'll have an even thicker bar:
Note that this will affect all your applications that use gtk3
.
Credit to: caret-color and caret-width
/usr/share/themes/Numix/gtk-3.0/**gtk.gresource
. Also, is the difficult to see insertion cursor only in LibreOffice or in other text editors and text areas (such as those in your browser)?