mirror of
https://github.com/wolfpld/tracy.git
synced 2024-12-02 09:44:35 +00:00
Add unformatted colored text extension function.
This commit is contained in:
parent
ff6768986e
commit
4f5286a860
@ -19,6 +19,13 @@ namespace tracy
|
|||||||
ImGui::TextUnformatted( text );
|
ImGui::TextUnformatted( text );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline void TextColoredUnformatted( const ImVec4& col, const char* text )
|
||||||
|
{
|
||||||
|
ImGui::PushStyleColor( ImGuiCol_Text, col );
|
||||||
|
ImGui::TextUnformatted( text );
|
||||||
|
ImGui::PopStyleColor();
|
||||||
|
}
|
||||||
|
|
||||||
static inline void TextDisabledUnformatted( const char* begin, const char* end = nullptr )
|
static inline void TextDisabledUnformatted( const char* begin, const char* end = nullptr )
|
||||||
{
|
{
|
||||||
ImGui::PushStyleColor( ImGuiCol_Text, GImGui->Style.Colors[ImGuiCol_TextDisabled] );
|
ImGui::PushStyleColor( ImGuiCol_Text, GImGui->Style.Colors[ImGuiCol_TextDisabled] );
|
||||||
|
Loading…
Reference in New Issue
Block a user