Task #2076
Native tooltips colors for GTK3
| Status: | Approved | Start date: | 09/24/2020 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | Zbigniew Rebacz | % Done: | 0% | |
| Category: | CtrlLib | Spent 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...
History
#1 Updated by Miroslav Fidler about 5 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 about 5 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 about 5 years ago
- Target version changed from Release 2020.2 to Release 2021.1
#4 Updated by Miroslav Fidler almost 5 years ago
- Status changed from Patch ready to Approved
