godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.01k stars 21.17k forks source link

Editor window title and some button titles turn black when custom formatted tooltips are shown using Mobile/Forward+ renderer #96806

Open lostminds opened 2 months ago

lostminds commented 2 months ago

Tested versions

4.3.stable

System information

macOS 14.6.1

Issue description

When using the Mobile or Forward+ renderers the window title of the macOS editor window, (and unselected tab items to the left of the selected) turn black instead of white when the window loses focus. Interestingly, this also happens when you hover over FileSystem file items and get their tooltip popups (I guess these tooltips are implemented differently than other tooltips, causing the window to lose focus?).

The issue does not happen using the Compatibility renderer, which is also strange.

Expected appearance (compatibility renderer): Screenshot 2024-09-10 at 19 01 30

Mobile (same on Forward+): Screenshot 2024-09-10 at 19 02 20

Hover tooltip discrepancy. Notice effect when hovering over a file: https://github.com/user-attachments/assets/ad464126-5de5-4ee8-b1c8-18160cab7bf1

Steps to reproduce

Minimal reproduction project (MRP)

Just editor required.

AThousandShips commented 2 months ago

Can't reproduce in 4.4 [97ef3c837] on Windows 11 so might be macOS specific

lostminds commented 1 month ago

After a little more investigation it looks like this is related not to window focus loss, but rather showing the more advanced custom formatted hover tool tips that are used for example for files in the File system panel. And as you can see in the Export dialog, it also affects some button titles. However, it's not triggered if the window loses focus as I thought at first, but when these special formatted tooltips are shown.

Screenshot 2024-09-25 at 12 17 05