After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 764204 - Primary and secondary carets/cursors not distinguishable by default
Primary and secondary carets/cursors not distinguishable by default
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Themes
3.20.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-03-25 17:42 UTC by Sébastien Wilmet
Modified: 2016-04-02 09:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gedit 3.20 with secondary caret (13.82 KB, image/png)
2016-03-25 17:42 UTC, Sébastien Wilmet
Details

Description Sébastien Wilmet 2016-03-25 17:42:30 UTC
Created attachment 324766 [details]
gedit 3.20 with secondary caret

See the gedit screenshot. The two cursors are around "aa" inside a RTL text.

The secondary cursor is not distinguishable from the primary cursor by default.

The colors are tunable with CSS, but it would be better to have good defaults.

If you want to play with caret colors in CSS, here is an example:
* {
  caret-color: blue;
  -gtk-secondary-caret-color: red;
}

The text used in the screenshot:
> ﺩَّﺓِ ﻪﻳ ﺲﻠﺴﻟﺓٌ ﻢﻧ ﺎﻠﺤﻣﻼﺗ ﺎﻠﻌﺴﻛaaﺮﻳَّﺓ ﺎﻠﺘﻳ ﺶﻨَّﻫﺍ
Comment 1 Lapo Calamandrei 2016-03-25 18:11:44 UTC
I think the primary one could work as it is (text color), no?
What is the seconday caret color for?
Comment 2 Matthias Clasen 2016-03-25 20:18:25 UTC
(In reply to Lapo Calamandrei from comment #1)
> I think the primary one could work as it is (text color), no?
> What is the seconday caret color for?

Its for coloring the secondary caret
Comment 3 Lapo Calamandrei 2016-03-29 13:28:48 UTC
I set the secondary caret the selection blue, closing, feel free to reopen if it doesn't work (I'm not too fond on rtl languages).
Comment 4 Sébastien Wilmet 2016-04-01 14:37:14 UTC
Can you link to the git commit? On gtk+ master the two cursors are still black.
Comment 5 Sébastien Wilmet 2016-04-01 14:43:10 UTC
BTW I don't know exactly myself how the secondary cursor is supposed to be used, but I guess it helps to edit the text when there is a mix of LTR and RTL text in the same paragraph. When both cursors are visible, some keys act on the primary cursor, and others act on the secondary cursor. For example backspace vs delete. It is clearer with the LTR text 'ab' instead of 'aa', so we can see whether 'a' or 'b' is deleted.
Comment 6 Lapo Calamandrei 2016-04-01 14:51:39 UTC
Forgot to push, sorry Sébastien, here we go tho b1205a9c9622e9b01b078e571309ab8d29c2685c

I did some googling about the usage w/o much success so I have no idea if the color is right, but at least it's different than the primary one.
Comment 7 Sébastien Wilmet 2016-04-02 09:22:43 UTC
Thanks, works fine.