In
previous post, I wrote an article about fixing Ambiance theme (Ubuntu default theme), and also created a new theme called zonModAmbiance (a modified version of Ambiance), containing some fix mainly for the GNOME Panel in Classic session in Ubuntu 12.04.
Later, I found that Ambiance theme is also has some problem with Gedit text editor. If you use Gedit with its default settings/preferences, you won't see any problem when using Ambiance them.
The problem will appear when you activate the "
Display line numbers" and "
Highlight current line" features in
Gedit Preferences.
Like you can see in the screenshot above, the current line is not highlighted, just like other lines in the main text area. And also, the line numbers is displayed without any difference from the main text area.
This won't be a big problem if you just use Gedit to open one or two text files. But if you use it a lot with many tabs opened, especially when working with long line of codes, this gives you a problem to quickly recognize the cursor position in current line from others.
So, to fix this issue, I made some other modifications to the original Ambiance theme. Here is a screenshot of the modification, displaying current line and line numbers:
O.K., without further bla bla bla, how to fix this issue? Here it is.