You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without modifying ImGui itself this is not possible.
There was an extension when text drawing routines received support for ANSI color codes, you can find it here: imGuiAnsiColor.hpp, originally code was linked in #902.
You can modify ImGui to use this text drawing routine and you achieve some form of what you need.
I don't see measurement functions patched, so this mean escape codes will be measured with text, which may or may not be a problem.
Version/Branch of Dear ImGui:
Version: 1.87 WIP
Branch: Docking
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_opengl3.cpp + imgui_impl_glfw3.cpp
Compiler: VS2022
Operating System: Windows 10 Pro
My Issue/Question:
I want to tint a font icon, but have a different color for the associate text. E.g. think of an
ImGui::TreeNode( "FOLDER_ICON" "Directory" );
I would like to tint the folder icon yellow or blue for the sake of argument while the text should be white. Is this possible yet?
The text was updated successfully, but these errors were encountered: