I am unable to see what I type in the Gedit editor using dark theme.

Gedit problem showcase

This is due to the default setting of highlighting the current line.

Gedit highlight current line setting

  • 1
    This is a known bug for 20.04. You can draw more attention to this bug by checking the relevant option on the top of the bug report to let the developers know that it also affects you. – BeastOfCaerbannog Apr 24 '20 at 9:33

Here's my workaround.

Go to the Preferences menu on Gedit and change the Color Scheme on Fonts & Colors tab:

Color Scheme on Preferences menu

Check if the text is now comfortably readable even with the presence of the highlighted content on the selected line.

Readable highlighted text


As you can see in the images, by default the Higlight current line feature is enabled in Gedit editor on Ubuntu 20.04 LTS (Focal).

Due to that, you can't see what you type in the current line properly, since the font color and highlight color are almost the same.

You can disable Highlight current line in the preferences of Gedit or change the color of the text in Font & Colors settings.

  • 1
    Works. Would be fine if by default changing the theme Ubuntu make that automaticly. – ambigus9 May 20 '20 at 13:23

You have two options:

  1. Open the theme file /usr/share/gtksourceview-4/styles/tango.xml with root access and around the line 50 there should be something like this :

    <color name="aluminium1"                  value="#eeeeec"/>

    Change the color to something less harsh like #99999c.

  2. Use another theme.The default theme when the global appearance is set to dark is tango but you can also use Classic or Oblivion depending on your mood and your preferences.None of them have the problem of unreadable text when a line is highlighted.Just go to Preferences -> Font and colors and change that.

Also you can take a look at this theme repository to find more themes if you want.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.