Ultimately, this remains a bug, because Autokey-GTK's phrase-editor does
not inherit a dark background from dark themes, yet it does inherit
cursor-color from dark themes.

Compare this to Autokey's script editor, it inherits both background-
color and caret-color from dark themes.

Autokey-GTK's phrase-editor keeps a white background no matter what the
theme says to do. Yet it complies with the caret-color specified by the
themes.

Since the dark theme calls for a white cursor, white on white makes the
caret-cursor invisible.

I was given a work-around here:
https://askubuntu.com/questions/1185289/

The work-around was to change the dark theme's caret color to a color
that would show up on both light and dark backgrounds.

Since I'm using the Yaru-dark theme now, I changed the cursor color to
red by appending the following text to the file /usr/share/themes/Yaru-
dark/gtk-3.20/.gtk-dark.css :

*
{
        padding: 0;
        -GtkToolButton-icon-spacing: 4;
        -GtkTextView-error-underline-color: #cc0000;
        -GtkScrolledWindow-scrollbar-spacing: 0;
        -GtkToolItemGroup-expander-size: 11;
        -GtkWidget-text-handle-width: 20;
        -GtkWidget-text-handle-height: 24;
        -GtkDialog-button-spacing: 4;
        -GtkDialog-action-area-border: 0;
        outline-color: alpha(currentColor,0.3);
        outline-style: dashed; outline-offset: -3px;
        outline-width: 1px;
        -gtk-outline-radius: 3px;
        -gtk-secondary-caret-color: #456789;
        caret-color: red;
}

The key line above is
caret-color: red;

A similar work-around could be applied to the "Adwaita-dark" theme.

This work-around is not ideal, because all applications have to have
this red caret-color, just so I can get Autokey-gtk to work with a dark
theme.

Perhaps someone can modify the autokey-gtk code so that its phrase-
editor acts like its script-editor with respect to inheriting both
background-color AND caret-color from the GNOME 3 themes.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1849992

Title:
  Phrase-Editor has no typing cursor when using Gnome3 dark themes

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-tweaks/+bug/1849992/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to