Task #2076

Native tooltips colors for GTK3

Added by Zbigniew Rebacz 27 days ago. Updated 21 days ago.

Status:Patch readyStart date:09/24/2020
Priority:NormalDue date:
Assignee:Zbigniew Rebacz% Done:

0%

Category:CtrlLibSpent time:-
Target version:Release 2020.2

Description

It's seems that we can obtain appropriate tool-tip colors for GTK3 apps:

    Gtk_New("tooltip.background");
        SColorInfo_Write(GetBackgroundColor());
    Gtk_New("tooltip.color");
        SColorInfoText_Write(GetInkColor());

Instead of:
    Gtk_New("tooltip.background");
        SColorInfo_Write(GetBackgroundColor());
                SColorInfoText_Write(GetInkColor());

Now the font color is appropriate and looks similar to native system tooltips.

Patch attached for whole change scope...

GTK3TooltipNativeColors.diff Magnifier (610 Bytes) Zbigniew Rebacz, 09/24/2020 09:32 PM

History

#1 Updated by Miroslav Fidler 22 days ago

  • Assignee changed from Miroslav Fidler to Zbigniew Rebacz

On how many distros and themes have you tested?

I remember trying this, problem is that while often you seem to have it correct with one of them, it breaks completely with another.

#2 Updated by Zbigniew Rebacz 21 days ago

I remembered these kind of problems for the GTK2, but when I use the fix it works fine for all KDE GTK themes. Probably worth checking on other themes as well..

Also available in: Atom PDF