#1145660 gucharmap: unreadable text due to hardcoded colour

Package:
gucharmap
Source:
gucharmap
Description:
Unicode character picker and font browser
Submitter:
astian
Date:
2026-08-27 03:47:01 UTC
Severity:
normal
Tags:
#1145660#5
Date:
2026-08-26 12:16:45 UTC
From:
To:
Dear Maintainer,

The "annotations and cross-reference" section of the "details" page for
a given character can contain links which, depending on the active
theme, are unreadable or difficult to read because gucharmap hardcodes
the text colour as "blue" (#0000ff).

Hardcoding a foreground colour but not the corresponding background
colour (or viceversa) is braindamaged.

Should use the theme's link colour instead.

Attached is a patch.

Also attached is a patch I needed in order to build with muon.  I'm not
sure if the problem is in gucharmap's meson.build, in meson, or in muon.
I'm also not sure if I fixed it the proper way; but it worked.

Also attached is a patch that fixes a GCC warning is the same function.

#1145660#12
Date:
2026-08-26 16:30:24 UTC
From:
To:
Thank you for taking the time to report this issue and proposed fixes.
Could you propose the fixes upstream at
https://gitlab.gnome.org/GNOME/gucharmap/-/merge_requests/ ?

Jeremy Bícha

#1145660#17
Date:
2026-08-27 03:39:27 UTC
From:
To:
Tiny corrections:

s/LHS/RHS/

Derp.

I guess GObject perfectionists might want the cast/debug macro here:

g_object_set (G_OBJECT (tag), "foreground-rgba", &link_colour, NULL);

#1145660#22
Date:
2026-08-27 03:37:59 UTC
From:
To:
If they accept patches via email or some web interface actually working
without a pile of javashit, then I might, otherwise, I'll pass.