mirror of
https://github.com/wolfpld/tracy
synced 2025-05-02 21:53:52 +00:00
Use power off icon.
This commit is contained in:
parent
97eb88a839
commit
9b1af05472
@ -106,6 +106,7 @@ int main( int argc, char** argv )
|
|||||||
0xF071, 0xF071, // danger
|
0xF071, 0xF071, // danger
|
||||||
0xF07C, 0xF07C, // folder open
|
0xF07C, 0xF07C, // folder open
|
||||||
0xF1EB, 0xF1EB, // wifi
|
0xF1EB, 0xF1EB, // wifi
|
||||||
|
0xF011, 0xF011, // power off
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
ImFontConfig configMerge;
|
ImFontConfig configMerge;
|
||||||
|
@ -560,7 +560,11 @@ bool View::DrawImpl()
|
|||||||
ImGui::PushStyleColor( ImGuiCol_Button, (ImVec4)ImColor::HSV( 0.f, 0.6f, 0.6f) );
|
ImGui::PushStyleColor( ImGuiCol_Button, (ImVec4)ImColor::HSV( 0.f, 0.6f, 0.6f) );
|
||||||
ImGui::PushStyleColor( ImGuiCol_ButtonHovered, (ImVec4)ImColor::HSV( 0.f, 0.7f, 0.7f) );
|
ImGui::PushStyleColor( ImGuiCol_ButtonHovered, (ImVec4)ImColor::HSV( 0.f, 0.7f, 0.7f) );
|
||||||
ImGui::PushStyleColor( ImGuiCol_ButtonActive, (ImVec4)ImColor::HSV( 0.f, 0.8f, 0.8f) );
|
ImGui::PushStyleColor( ImGuiCol_ButtonActive, (ImVec4)ImColor::HSV( 0.f, 0.8f, 0.8f) );
|
||||||
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
|
if( ImGui::Button( "\xef\x80\x91" ) ) keepOpen = false;
|
||||||
|
#else
|
||||||
if( ImGui::Button( "Close" ) ) keepOpen = false;
|
if( ImGui::Button( "Close" ) ) keepOpen = false;
|
||||||
|
#endif
|
||||||
ImGui::PopStyleColor( 3 );
|
ImGui::PopStyleColor( 3 );
|
||||||
}
|
}
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user