TreeNode: Don't latch GetColorU32(ImGuiCol_TreeLines). (#2920)

Trade off doesn't seem worth it for large trees. User who really needs to alter colors can do it by adjusting Push/Pop locations.
This commit is contained in:
ocornut
2025-04-08 19:56:14 +02:00
parent e5b218e6d1
commit 39f34e1e58
3 changed files with 7 additions and 16 deletions

View File

@@ -64,8 +64,6 @@ Other changes:
which may be overriden in individual TreeNode() calls.
- Added style.TreeLinesSize (default to 1.0f).
- Added ImGuiCol_TreeLines (in default style this is the same as ImGuiCol_Border).
The color for a given hierarchy level is latched in TreeNode(),
allowing advanced tree drawing code to potentially alter it.
- The feature adds a little cost as extra data needs to be stored.
- Nav: fixed assertion when holding gamepad FaceLeft/West button to open
CTRL+Tab windowing + pressing a keyboard key. (#8525)