TranslateProject/sources/tech/20210120 Highlighted Text Not Visible in gedit in Dark Mode- Here-s What You Can Do.md
DarkSun 9ea93bf4b1 选题[tech]: 20210120 Highlighted Text Not Visible in gedit in Dark Mode? Here’s What You Can Do
sources/tech/20210120 Highlighted Text Not Visible in gedit in Dark Mode- Here-s What You Can Do.md
2021-01-20 05:04:57 +08:00

4.3 KiB
Raw Blame History

Highlighted Text Not Visible in gedit in Dark Mode? Heres What You Can Do

I love using dark mode in Ubuntu. Its soothing on the eyes and makes the system look aesthetically more pleasing, in my opinion.

One minor annoyance I noticed is with gedit text editor and if you use it with the dark mode in your system, you might have encountered it too.

By default, gedit highlights the line where your cursor is. Thats a useful feature but it becomes a pain if you are using dark mode in your Linux system. Why? Because the highlighted text is not readable anymore. Have a look at it yourself:

Text on the highlighted line is hardly visible

If you select the text, it becomes readable but its not really a pleasant reading or editing experience.

Selecting the text makes it better but that’s not a convenient thing to do for all lines

The good thing is that you dont have to live with it. Ill show a couple of steps you can take to enjoy dark mode system and gedit together.

Making gedit reader-friendly in dark mode

You basically have two options:

  1. Disable highlight the current line but then youll have to figure out which line you are at.
  2. Change the default color settings but then the colors of the editor will be slightly different, and it wont switch to light mode automatically if you change the system theme.

Its a workaround and compromise that youll have to make until the gedit or GNOME developers fix the issue.

Option 1: Disable highlighting current line

When you have gedit opened, click on the hamburger menu and select Preferences.

Go to Preferences

In the View tab, you should see the “Highlight current line” option under Highlighting section. Uncheck this. The effects are visible immediately.

Disable highlighting current line

Highlighting current line is a usable feature and if you want to continue using it, opt for the second option.

Option 2: Change the editor color theme

In the Preferences window, go to Font & Colors tab and change the color scheme to Oblivion, Solarized Dark or Cobalt.

Change the color scheme

As I mentioned earlier, the drawback is that when you switch the system theme to a light theme, the editor theme isnt switched automatically to the light theme.

A bug that should be fixed by devs

There are several text editors available for Linux but for quick reading or editing a text file, I prefer using gedit. Its a minor annoyance but an annoyance nonetheless. The developers should fix it in future version of this awesome text editor so that we dont have to resort to these worarounds.

How about you? Do you use dark mode on your system or light mode? Had you noticed this trouble with gedit? Did you take any steps to fix it? Feel free to share your experience.


via: https://itsfoss.com/gedit-dark-mode-problem/

作者:Abhishek Prakash 选题:lujun9972 译者:译者ID 校对:校对者ID

本文由 LCTT 原创编译,Linux中国 荣誉推出