Task #2076

Native tooltips colors for GTK3

Added by Zbigniew Rebacz over 3 years ago. Updated over 3 years ago.

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

0%

Category:CtrlLibSpent time:-
Target version:Release 2021.1

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 over 3 years 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 over 3 years 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..

#3 Updated by Zbigniew Rebacz over 3 years ago

  • Target version changed from Release 2020.2 to Release 2021.1

#4 Updated by Miroslav Fidler over 3 years ago

  • Status changed from Patch ready to Approved

Also available in: Atom PDF