Discussion:
Can one change the cursor color?
Paulo Silva
2009-07-29 06:22:00 UTC
Permalink
Hi again,
Just noticed that I sent my previous message with the wrong subject.
Here it goes again.

Is it possible to change the cursor color in qt-creator (Currently using
1.1.80)

Thanks
Paulo
Thorbjørn Lindeijer
2009-08-17 14:39:35 UTC
Permalink
Post by Paulo Silva
Hi again,
Just noticed that I sent my previous message with the wrong subject.
Here it goes again.
Is it possible to change the cursor color in qt-creator (Currently using
1.1.80)
At least for me, using Qt Creator on X11, the text cursor is the same
colour as the standard text (for example with the dark FakeVim theme,
the cursor is gray).

In another post you said you were using a black background, but surely
your text isn't also set to black in that case.

Regards,
Bjørn
--
Thorbjørn Lindeijer
Software Engineer
Nokia, Qt Development Frameworks
paulo
2009-11-08 21:49:46 UTC
Permalink
Hi,
this is a rather old thread, but I only saw the reply now... coff coff

In my case, I have the comments with black background and yellow text,
yet the cursor is still black.

That was why I was asking if I could change the cursor color.
I would like to make it bold red (easier to see in my opinion.)

Thanks
Paulo
Post by Thorbjørn Lindeijer
Post by Paulo Silva
Hi again,
Just noticed that I sent my previous message with the wrong subject.
Here it goes again.
Is it possible to change the cursor color in qt-creator (Currently using
1.1.80)
At least for me, using Qt Creator on X11, the text cursor is the same
colour as the standard text (for example with the dark FakeVim theme,
the cursor is gray).
In another post you said you were using a black background, but surely
your text isn't also set to black in that case.
Regards,
Bjørn
paulo
2009-11-11 00:50:18 UTC
Permalink
Hi,
Post by Thorbjørn Lindeijer
At least for me, using Qt Creator on X11, the text cursor is the same
colour as the standard text (for example with the dark FakeVim theme,
the cursor is gray).
In another post you said you were using a black background, but surely
your text isn't also set to black in that case.
Regards,
Bjørn
I just notice that what you say is true. But the cursor will take the
color of the normal text (usually black over white) and, when you change
to another time of text (say a comment with yellow text over black) the
cursor still keeps the normal text color (black), therefore becomes
"invisible".

I'm sure this is not the expected behavior, right?

Regards,
Paulo
m***@public.gmane.org
2009-11-10 21:02:34 UTC
Permalink
Different background colors for certain elements in the syntax highlighter is a bad idea anway. It looks noisy and it limits what can be highlighted with extra selections. The color schemes we ship should not do that, I'd rather disallow it in the editor completely. At a bare minimum the the schemes should not pick background colors which do not contrast with the standard text color.

The alternatives are worse:

a) like open office: the cursor just "inverts" the pixels underneath. Plain ugly, looks like painting artefacts.
b) like mozilla's rich text edit: use the text color for the cursor. This means the cursor also in the normal scheme changes color wherever it is. Also confusing.

What else can we do? Flip between standard foreground and background depending on what gives the best contrast at a certain position?

Matthias

________________________________________
From: qt-creator-bounces-Ihz76zOu8S21Z/+***@public.gmane.org [qt-creator-bounces-Ihz76zOu8S21Z/+***@public.gmane.org] On Behalf Of ext paulo [paulo.jnkml-***@public.gmane.org]
Sent: Wednesday, November 11, 2009 1:50 AM
To: qt-creator-Ihz76zOu8S21Z/+***@public.gmane.org
Subject: [Qt-creator] About the cursor color

Hi,
Post by Thorbjørn Lindeijer
At least for me, using Qt Creator on X11, the text cursor is the same
colour as the standard text (for example with the dark FakeVim theme,
the cursor is gray).
In another post you said you were using a black background, but surely
your text isn't also set to black in that case.
Regards,
Bjørn
I just notice that what you say is true. But the cursor will take the
color of the normal text (usually black over white) and, when you change
to another time of text (say a comment with yellow text over black) the
cursor still keeps the normal text color (black), therefore becomes
"invisible".

I'm sure this is not the expected behavior, right?

Regards,
Paulo
Alan Westbrook
2009-11-10 22:28:43 UTC
Permalink
I agree with Matthias, having different elements have different background
colors is probably a bad idea to use in practice as it would probably
introduce too much cognitive load, like reading a ransom note.

I vaguely remember they did this in some parts of the Commodore Vic 20, but
haven't seen anything like that nice then, probably for this very reason.

Alan
Post by m***@public.gmane.org
Different background colors for certain elements in the syntax highlighter
is a bad idea anway. It looks noisy and it limits what can be highlighted
with extra selections. The color schemes we ship should not do that, I'd
rather disallow it in the editor completely. At a bare minimum the the
schemes should not pick background colors which do not contrast with the
standard text color.
a) like open office: the cursor just "inverts" the pixels underneath. Plain
ugly, looks like painting artefacts.
b) like mozilla's rich text edit: use the text color for the cursor. This
means the cursor also in the normal scheme changes color wherever it is.
Also confusing.
What else can we do? Flip between standard foreground and background
depending on what gives the best contrast at a certain position?
Matthias
________________________________________
Sent: Wednesday, November 11, 2009 1:50 AM
Subject: [Qt-creator] About the cursor color
Hi,
Post by Thorbjørn Lindeijer
At least for me, using Qt Creator on X11, the text cursor is the same
colour as the standard text (for example with the dark FakeVim theme,
the cursor is gray).
In another post you said you were using a black background, but surely
your text isn't also set to black in that case.
Regards,
BjÞrn
I just notice that what you say is true. But the cursor will take the
color of the normal text (usually black over white) and, when you change
to another time of text (say a comment with yellow text over black) the
cursor still keeps the normal text color (black), therefore becomes
"invisible".
I'm sure this is not the expected behavior, right?
Regards,
Paulo
_______________________________________________
Qt-creator mailing list
http://lists.trolltech.com/mailman/listinfo/qt-creator
_______________________________________________
Qt-creator mailing list
http://lists.trolltech.com/mailman/listinfo/qt-creator
paulo
2009-11-12 01:27:10 UTC
Permalink
If you care to know my opinion, one (non exclusive) solution is to allow
the user to select the cursor color.
At least it gives more flexibility without confusing anyone.

How about that?

Paulo
Post by Alan Westbrook
I agree with Matthias, having different elements have different
background colors is probably a bad idea to use in practice as it
would probably introduce too much cognitive load, like reading a
ransom note.
I vaguely remember they did this in some parts of the Commodore Vic
20, but haven't seen anything like that nice then, probably for this
very reason.
Alan
Different background colors for certain elements in the syntax
highlighter is a bad idea anway. It looks noisy and it limits what
can be highlighted with extra selections. The color schemes we
ship should not do that, I'd rather disallow it in the editor
completely. At a bare minimum the the schemes should not pick
background colors which do not contrast with the standard text color.
a) like open office: the cursor just "inverts" the pixels
underneath. Plain ugly, looks like painting artefacts.
b) like mozilla's rich text edit: use the text color for the
cursor. This means the cursor also in the normal scheme changes
color wherever it is. Also confusing.
What else can we do? Flip between standard foreground and
background depending on what gives the best contrast at a certain
position?
Matthias
________________________________________
Sent: Wednesday, November 11, 2009 1:50 AM
Subject: [Qt-creator] About the cursor color
Hi,
Post by Thorbjørn Lindeijer
At least for me, using Qt Creator on X11, the text cursor is the
same
Post by Thorbjørn Lindeijer
colour as the standard text (for example with the dark FakeVim
theme,
Post by Thorbjørn Lindeijer
the cursor is gray).
In another post you said you were using a black background, but
surely
Post by Thorbjørn Lindeijer
your text isn't also set to black in that case.
Regards,
BjÞrn
I just notice that what you say is true. But the cursor will take the
color of the normal text (usually black over white) and, when you change
to another time of text (say a comment with yellow text over black) the
cursor still keeps the normal text color (black), therefore becomes
"invisible".
I'm sure this is not the expected behavior, right?
Regards,
Paulo
_______________________________________________
Qt-creator mailing list
http://lists.trolltech.com/mailman/listinfo/qt-creator
_______________________________________________
Qt-creator mailing list
http://lists.trolltech.com/mailman/listinfo/qt-creator
------------------------------------------------------------------------
_______________________________________________
Qt-creator mailing list
http://lists.trolltech.com/mailman/listinfo/qt-creator
Continue reading on narkive:
Loading...