You are not logged in.
I'm trying to set up Kvantum together with the KvLibadwaitaDark theme under Gnome, to make my Qt and Gnome apps have a unified look and feel.
KvLibadwaitaDark has tooltips with white text on a dark gray background. This works fine with some apps, like for example kvantummanager:
However, many Qt apps seem to force-set tooltip text colour to black or dark gray. Combined with the dark gray background, this makes tooltips for these apps unreadable. For example wireshark:
The best workaround I could think for this was to create a custom version of KvLibadwaitaDark, that uses black text on a light yellow background for tooltips. Here are my diffs:
--- KvLibadwaita/KvLibadwaitaDark.kvconfig 2023-12-03 20:58:48.063336752 +0200
+++ KvMyLibadwaitaDark/KvMyLibadwaitaDark.kvconfig 2023-12-04 16:00:11.921534893 +0200
@@ -90,7 +90,7 @@
window.text.color=#dfdfdf
button.text.color=#dfdfdf
disabled.text.color=#696969
-tooltip.text.color=#efefef
+tooltip.text.color=#000000
highlight.text.color=#ffffff
link.color=#0057AE
link.visited.color=#E040FB
--- KvLibadwaita/KvLibadwaitaDark.svg 2023-12-03 21:07:40.958338155 +0200
+++ KvMyLibadwaitaDark/KvMyLibadwaitaDark.svg 2023-12-04 16:00:52.038511833 +0200
@@ -5736,7 +5736,7 @@
<path
id="tooltip-normal"
d="m 384.99991,572.00001 h 48 v 48 h -48 z"
- style="fill:#000000;fill-opacity:0.8" />
+ style="fill:#ffffcc;fill-opacity:0.8" />
<g
id="tooltip-normal-left"
transform="translate(262.73991,-131.74999)">
@@ -5815,7 +5815,7 @@
<path
d="m 63.13,879.72 h 50 v 5.99991 h -50 z"
id="path1226"
- style="opacity:1;fill:#000000;fill-opacity:0.8;stroke-width:0.755923" />
+ style="opacity:1;fill:#ffffcc;fill-opacity:0.8;stroke-width:0.755923" />
<path
d="m 63.13,878.72 h 50 v 1 h -50 z"
id="path5786"
@@ -5865,7 +5865,7 @@
<path
d="m 270.989,575.9903 a 6,6 0 0 1 6,-6 v 6 z"
id="path1275"
- style="opacity:1;fill:#000000;fill-opacity:0.8" />
+ style="opacity:1;fill:#ffffcc;fill-opacity:0.8" />
</g>
<use
x="0"
This seems to solve the problem:
Is this the best way to do this, though? Or am I missing something? An environment variable I'm not aware of, for instance? I'm mostly a Gnome user and not very familiar with Qt. There are a few Qt apps I use, though, and I really like being able to read my tooltips.
Note that this issue doesn't seem to be specific to KvLibadwaitaDark, as most Kvantum themes seem to use dark backgrounds for tooltips.
-- Fixing bugs with Arch is lots of fun!
Offline