godotengine / godot

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

Editor Tooltip has transparency background with transparent font color. #92712

Open hydescarf opened 1 month ago

hydescarf commented 1 month ago

Tested versions

System information

Godot v4.3.beta1 - Windows 10.0.22631 (Windows 11) - GLES3 (Compatibility) - NVIDIA GeForce GTX 1050 (NVIDIA; 31.0.15.3734) - 12th Gen Intel(R) Core(TM) i5-12400 (12 Threads)

Issue description

Tooltip has color issue, but I was not able to identify the problem through Editor Theming. Removing Godot folders from AppData (Local & Roaming) does not fix the problem. On the other hand, my old laptop runs v4.3.dev6 without issues. I suspect this to be related to system components (GPU?) Old laptop specs:

Steps to reproduce

  1. Fresh install of Godot v4.3.dev6 / beta1, with related folders in AppData deleted.
  2. Hover to icons and stuff to pop up the tooltip.

During dark mode, background is transparency. image During light mode, text is fully transparent. image

Compare to previous versions ~v4.3.dev5 (working normal colors): image image

Minimal reproduction project (MRP)

N/A

AThousandShips commented 1 month ago

I can't confirm on Windows 10 with Compatibility or Forward+, so this seems like it'd be hardware specific

Calinou commented 1 month ago

It looks like tooltips are using window transparency now (which is a good thing, so their rounded corners can actually be seen). However, premultiplied alpha is used for window transparency in 4.x. This means that transparent black is invisible, but transparent white is visible as pure additive white. See https://github.com/godotengine/godot/issues/83939.