Text cursor does not change color according to the theme

Bug #1041429 reported by Otto Robba
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
UberWriter (moved to github!)
Fix Released
Wishlist
Wolf Vollprecht

Bug Description

I'm using the Orion theme (http://satya164.deviantart.com/art/Orion-GTK3-Theme-281431756) which uses blue as the highlight color. The cursor in UberWriter, however, is orange.

I can understand how well it meshes with Radiance or Ambiance but it looks out of place and is a bit distracting when everything else is in a different color pallete. Selecting text, the ayatana scrollbar, etc... all blue.

It would be nice if UberWriter could pick the color from the GTK theme instead of having it set on orange only.

Changed in uberwriter:
status: New → Confirmed
importance: Undecided → Wishlist
assignee: nobody → Wolf (w-vollprecht)
Revision history for this message
Wolf Vollprecht (w-vollprecht) wrote :

Hey Otto,

I leaved this as it is for now, because I found the "theme-orange" of ambiance too light.

However, it's fairly easy to change: Just go to

     /opt/extras.ubuntu.com/uberwriter/share/uberwriter/media/

and modify style.css and style_dark.css to your needs. The line you'll need to change is this one:

    -GtkWidget-cursor-color: #FA5B0F;

and then use either "@selected_bg_color" or any other hex color you like.

Cheers,

Wolf

PS: In the future I might add that one can load a custom css from ~/.uberwriter/ or so :)

Revision history for this message
Otto Robba (otto-ottorobba) wrote :

Seems reasonable.

What if you take the idea of custom css and use it for Ambiance, along with picking the @selected_bg_color for other themes?

This way, it would look fine for the defaults used with Ubuntu and also work with other themes.

Revision history for this message
Wolf Vollprecht (w-vollprecht) wrote :

Yes, I would love to do that, but need to find the function to detect the theme the user uses ...

Will investigate further :)

Revision history for this message
vovkkk (vovkkk) wrote :

Hey Wolf, you may do a colour darker like this
-GtkWidget-cursor-color: shade (@selected_bg_color, 0.9);
instead 0.9 you may set e.g. 0.15 (gonna be black) or 1.5 (will be lighter)

I think this'll okay with any theme and simple, so no need to detect the theme

Revision history for this message
Wolf Vollprecht (w-vollprecht) wrote :

Hi vovkkk,

very good idea, will do that in the next release.

Revision history for this message
Wolf Vollprecht (w-vollprecht) wrote :

Thanks for linking the branch, @vovkkk

Changed in uberwriter:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.