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 309861 - option for changing current line highlight color
option for changing current line highlight color
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
2.14.x
Other All
: High enhancement
: ---
Assigned To: Gedit maintainers
Gedit maintainers
: 359533 (view as bug list)
Depends on: 310847
Blocks:
 
 
Reported: 2005-07-09 00:59 UTC by Mike Miller
Modified: 2007-08-17 12:45 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Mike Miller 2005-07-09 00:59:37 UTC
The current line hightlight is very useful feature.  However, the color it
chooses to highlight the line with is typically darker, matching the color of
the buttons and panels.

Since I use a color scheme that has grey backgrounds for text areas, I'd like
the highlight to be a brighter color, like white or yellow, for example.

Please provide the capability for a user-configurable highlight color, thank you.
Comment 1 Paolo Maggi 2005-07-21 17:02:56 UTC
I agree with you that we need a way to change the current line highlight color. 
BTW, I think the color should be somewhat automatically computed given the color
of background and text color.

Comment 2 Mike Miller 2005-07-22 18:34:21 UTC
Sounds good to me.  Perhaps an algorithm to maximize contrast at that line.
Comment 3 Paolo Borelli 2005-07-22 18:40:54 UTC
maximixing the contrast would not work for black on white which is the most
common case, would it?

This looks like one of the many things that needs symbolic name colors in gtk
(see  bug #114355 ) to be solved properly.
Comment 4 Mike Miller 2005-07-22 20:15:56 UTC
Yes, you are correct, it will have to be slightly more complex than the simple
example I gave.  I would be nice if the default color was chosen automatically,
but could be overidden if need be, like the other text area features.
Comment 5 Paolo Maggi 2005-08-04 20:39:17 UTC
We will not be able to  fix this bug for 2.12 since it requires changes to
GtkSourceView we cannot introduce at this stage of the development cycle.
In particular it depends on bug #310847.

Changing Target Milestone.
Comment 6 Jeroen Zwartepoorte 2005-08-05 07:16:37 UTC
On a side note: what about making the current line highlight color, gutter
color, line number font color etc. style properties so a theme creator can
change them via a .gtkrc file?
Comment 7 Paolo Maggi 2005-08-05 08:31:03 UTC
Jeroen: I completely agree... waiting for patches :)
Please, open a bug report against GtkSourceView to track this RFE.
Comment 8 André Klapper 2006-10-16 14:38:40 UTC
*** Bug 359533 has been marked as a duplicate of this bug. ***
Comment 9 Paolo Borelli 2007-08-17 12:45:46 UTC
current line color can now be specified in the style scheme.