Dark themes don't work well with highlighted current line in gedit

Bug #1857191 reported by Paul White
430
This bug affects 71 people
Affects Status Importance Assigned to Milestone
GtkSourceView
Fix Released
Unknown
Yaru Theme
New
Unknown
gtksourceview4 (Ubuntu)
Triaged
Low
Unassigned
Jammy
Confirmed
Undecided
Unassigned
yaru-theme (Ubuntu)
Confirmed
Undecided
Unassigned
Jammy
Confirmed
Undecided
Unassigned

Bug Description

In order to checkout out an old bug report I started gedit, enabled "Highlight current line" and changed the application theme to "Yaru-dark" The current line is highlighted correctly but the text is unreadable because it is too light. The text needs to be much darker.

This is not a theme that I would normally use so I'm not too bothered about how the problem is fixed but this configuration makes gedit very difficult to use as you can't actually see the text that you're adding, changing or deleting.

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: yaru-theme-gtk 19.10.4
ProcVersionSignature: Ubuntu 5.3.0-24.26-generic 5.3.10
Uname: Linux 5.3.0-24-generic x86_64
ApportVersion: 2.20.11-0ubuntu15
Architecture: amd64
CurrentDesktop: GNOME
Date: Sat Dec 21 16:33:03 2019
InstallationDate: Installed on 2019-05-17 (218 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Alpha amd64 (20190517)
PackageArchitecture: all
SourcePackage: yaru-theme
UpgradeStatus: Upgraded to focal on 2019-11-08 (42 days ago)

Revision history for this message
Paul White (paulw2u) wrote :
Revision history for this message
Paul White (paulw2u) wrote :

https://gitlab.gnome.org/GNOME/gtksourceview/issues/29
seems related as subsequent testing shows other dark themes
affect gedit's usability when the current line is
set to be highlighted.

affects: yaru → gtksourceview
Changed in gtksourceview:
status: Unknown → New
Changed in yaru-theme (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gtksourceview4 (Ubuntu):
status: New → Confirmed
Paul White (paulw2u)
summary: - yaru-dark doesn't work well with highlighted current line in gedit
+ Dark themes don't work well with highlighted current line in gedit
Revision history for this message
Joe Barnett (thejoe) wrote :

Interesting that I didn't see this in eoan, but did once upgrading to focal. appears the "Highlight current line" option default changed to true maybe?

Revision history for this message
Lee Clark (lclark125) wrote :

The same issue happens with other applications too. It's not just gedit.

Revision history for this message
Paul White (paulw2u) wrote :

Which other applications?

Revision history for this message
Lee Clark (lclark125) wrote :

I've attached a screen shot from a program called Ghidra. It is a Java application and so it may be that it is a different issue. But it is using the GTK theme and the colours look the same as gedit.

Changed in gtksourceview4 (Ubuntu):
importance: Undecided → Low
status: Confirmed → Triaged
Revision history for this message
Carlo Lobrano (c-lobrano) wrote :

Is the problem reproducible with adwaita-dark?

Revision history for this message
Lee Clark (lclark125) wrote :

Yes, just tested both applications with Adwaita-dark.

Revision history for this message
Lee Clark (lclark125) wrote :

Both applications are fine with standard Yaru and Adwaita.

Revision history for this message
Carlo Lobrano (c-lobrano) wrote :

As reported in the upstream ticket, the "Classic" gedit colorscheme does not fit well with dark theme, both Yaru and Adwaita, but there are others to choose.

Revision history for this message
Ben Bromley (benuski) wrote :
Revision history for this message
Coci Web (cociweb) wrote :

Really old bug, and misleading descriptions/comments.
The issue has a solution under a correct bug description:

https://bugs.launchpad.net/ubuntu/+source/gtksourceview4/+bug/1887311

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Coci,

9 months is not old. And you should be able to change the title/description of this bug if you can think of something better.

Revision history for this message
Eduardo (eltimbol) wrote :

My apologies. I haven't been keeping up with my email and I just saw the comments. Please close this bug report if there are existing solutions for this one. I don't want to take up more of your time. As mentioned by c-lobrano, I just changed the Gedit theme to another one. It's a workaround, but it works well enough.

Revision history for this message
Lin Manfu (linmanfu) wrote :

The solution in https://bugs.launchpad.net/ubuntu/+source/gtksourceview4/+bug/1887311 also works for me. Could this please be changed in Ubuntu?

Revision history for this message
Frederik Feichtmeier (feichtmeier) wrote :
Changed in yaru-theme (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks. The fix is not in Ubuntu yet, so not "released".

Changed in yaru-theme (Ubuntu):
status: Fix Released → Fix Committed
Revision history for this message
Allie Campbell (64bitamoeba) wrote :

Good evening! Does anyone know when a fix might be pushed to Ubuntu? And if it would come to LTS? Thanks.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Looks like the fix is in 21.04 now. Not sure about the plan for LTS.

Changed in yaru-theme (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Allie Campbell (64bitamoeba) wrote :

Thank you :)

Changed in gtksourceview:
status: New → Fix Released
tags: added: fixed-in-5.2.0 fixed-upstream
Revision history for this message
Craig McQueen (cmcqueen1975) wrote :

What does it take to get bugs fixed in LTS?

Revision history for this message
Phoenix Gabriel (m-ubunau-0) wrote :

I'm on 22.04 and still experiencing this bug. I thought this was fixed in 21.04? What happened?

Revision history for this message
Coci Web (cociweb) wrote :

#14 Is two initial LTS release enough long? (still not backported to 20.04) and also not corrected in 22.04 and in 22.04.1 as well. c'mon it's just a hex number in an xml file... Please, LTS means Long Term Support and not Long Term sh!t.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The Yaru team would be unaware of this bug because it is still closed for the Yaru project. I'll reopen it now, but someone please also report the issue to the Yaru design team at https://github.com/ubuntu/yaru/issues and then mention the new issue ID here.

Changed in yaru-theme (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Jan Schürmann (visionfactory.net) wrote :

Its still a bug in 22.04.

as a normal user i can change the highlight active line setting as a "workaround" but that is not possible if gedit is started as root.

tags: removed: fixed-in-5.2.0 fixed-upstream
Revision history for this message
Coci Web (cociweb) wrote :

Daniel, Could you please link the reopened Yaru team issue?
Reopened the case for the Yaru Design team: https://github.com/ubuntu/yaru/issues/2090

Revision history for this message
Coci Web (cociweb) wrote (last edit ):

According to the ticket in #27 please try to change the color schema in the preferences->Fonts&Colors.
https://help.gnome.org/users/gedit/stable/gedit-change-color-scheme.html.en
Gedit can has a different schema than the system...
AND if you upgraded from previous version, you can easily inherit the old classic schema.

Changed in yaru:
status: Unknown → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gtksourceview4 (Ubuntu Jammy):
status: New → Confirmed
Changed in yaru-theme (Ubuntu Jammy):
status: New → Confirmed
Revision history for this message
Emilien Klein (emilien-klein) wrote (last edit ):

I did a fresh install of Ubuntu Desktop 23.04 (the light version, with few pre-installed programs), during installation I selected Dark Theme, then installed gedit with APT.
Same screenshots as visible https://askubuntu.com/questions/1230173/selected-lines-contents-arent-readable-in-gedit-while-using-dark-theme-on-ubun

Gedit is really ununsable in this default configuration, and one should not have to go search for workarounds on the internet to make this basic program work ;)

I "fixed" it by going to Gedit's properties, Fonts and Colors, and changing from the default selected Tango theme to Oblivion. All good now.

Revision history for this message
Daniel Tang (daniel-z-tg) wrote :

I "fixed" this problem by switching from gedit to gnome-text-editor. People say it's the successor to gedit and is recommended as the default.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.