Gtk theme link_color is not being used

Bug #1883438 reported by Frederik Feichtmeier
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

In the "softwar updater" UI the color of links is not taken from the Gtk theme.
Yaru and Adwaita themes both "export" a "@theme_link_color" at the top of their gtk theme.
The software manager UI should also use this link color. Especially in the yaru-dark theme the blue that is actually used has a very bad contrast against the background.

Please look at the screenshot where I have compared the software updater to the about dialogue in files (which uses the correct $link_color, which can be selected as "@theme_link_color" in gtk apps).

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: update-manager 1:20.04.10
ProcVersionSignature: Ubuntu 5.4.0-37.41-generic 5.4.41
Uname: Linux 5.4.0-37-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.2
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: ubuntu:GNOME
Date: Sun Jun 14 18:00:10 2020
InstallationDate: Installed on 2020-03-15 (91 days ago)
InstallationMedia: Ubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203.1)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: update-manager
UpgradeStatus: Upgraded to focal on 2020-04-23 (52 days ago)

Revision history for this message
Frederik Feichtmeier (feichtmeier) wrote :
Changed in update-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Balint Harmath (bharmath) wrote :

Reproducible error on the UI.

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

See also bug 1882988

Revision history for this message
Frederik Feichtmeier (feichtmeier) wrote :

I think I found the place:

ChangelogViewer.py

line 120

tag = self.buffer.create_tag(None, foreground="blue",
                                     underline=Pango.Underline.SINGLE)

I guess instead of this "blue", we need the @theme_link_color from yaru/adwaita

Revision history for this message
123 (numbers654) wrote :

Since the background color of this application will be set according to the GTK3 theme that the user has chosen, using a static color for link text - which we currently do - will result in that text being difficult or impossible to read for some users. This is unacceptable. So, until someone patches this application to render links according to the theme-set link color, I think it is most appropriate to render links in the normal text color, as we can assume that this is readable. Text being uncolored and readable is preferable to being colored and unreadable. Links are still underlined after applying this patch.

Revision history for this message
123 (numbers654) wrote :

Screenshots of link color before and after applying patch.

Revision history for this message
123 (numbers654) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "ChangelogViewer.py.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
123 (numbers654)
summary: - Gtk theme link_color is not beeing used
+ Gtk theme link_color is not being used
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.