Use power off icon.

This commit is contained in:
Bartosz Taudul 2018-08-17 18:33:56 +02:00
parent 97eb88a839
commit 9b1af05472
2 changed files with 5 additions and 0 deletions

View File

@ -106,6 +106,7 @@ int main( int argc, char** argv )
0xF071, 0xF071, // danger
0xF07C, 0xF07C, // folder open
0xF1EB, 0xF1EB, // wifi
0xF011, 0xF011, // power off
0
};
ImFontConfig configMerge;

View File

@ -560,7 +560,11 @@ bool View::DrawImpl()
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_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;
#endif
ImGui::PopStyleColor( 3 );
}
ImGui::SameLine();