diff --git a/server/TracyImGui.hpp b/server/TracyImGui.hpp index d887299f..f020ee54 100644 --- a/server/TracyImGui.hpp +++ b/server/TracyImGui.hpp @@ -25,6 +25,13 @@ namespace tracy ImGui::TextUnformatted( text ); } + static inline void TextColoredUnformatted( uint32_t col, const char* text, const char* end = nullptr ) + { + ImGui::PushStyleColor( ImGuiCol_Text, col ); + ImGui::TextUnformatted( text, end ); + ImGui::PopStyleColor(); + } + static inline void TextColoredUnformatted( const ImVec4& col, const char* text, const char* end = nullptr ) { ImGui::PushStyleColor( ImGuiCol_Text, col );