Center elevated privileges warning message.

This commit is contained in:
Bartosz Taudul 2024-10-16 00:32:11 +02:00
parent 60f461d94d
commit d0a7ee1692
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -931,13 +931,15 @@ static void DrawContents()
if( s_isElevated ) if( s_isElevated )
{ {
ImGui::Separator(); ImGui::Separator();
ImGui::TextColored( ImVec4( 1, 0.25f, 0.25f, 1 ), ICON_FA_TRIANGLE_EXCLAMATION " Profiler has elevated privileges! " ICON_FA_TRIANGLE_EXCLAMATION ); ImGui::PushStyleColor( ImGuiCol_Text, ImVec4( 1.f, 0.25f, 0.25f, 1.f ) );
tracy::TextCentered( ICON_FA_TRIANGLE_EXCLAMATION " Profiler has elevated privileges! " ICON_FA_TRIANGLE_EXCLAMATION );
ImGui::PushFont( s_smallFont ); ImGui::PushFont( s_smallFont );
ImGui::TextColored( ImVec4( 1, 0.25f, 0.25f, 1 ), "You are running the profiler interface with admin privileges. This is" ); tracy::TextCentered( "You are running the profiler interface with admin privileges. This is" );
ImGui::TextColored( ImVec4( 1, 0.25f, 0.25f, 1 ), "most likely a mistake, as there is no reason to do so. Instead, you" ); tracy::TextCentered( "most likely a mistake, as there is no reason to do so. Instead, you" );
ImGui::TextColored( ImVec4( 1, 0.25f, 0.25f, 1 ), "probably wanted to run the client (the application you are profiling)" ); tracy::TextCentered( "probably wanted to run the client (the application you are profiling)" );
ImGui::TextColored( ImVec4( 1, 0.25f, 0.25f, 1 ), "with elevated privileges." ); tracy::TextCentered( "with elevated privileges." );
ImGui::PopFont(); ImGui::PopFont();
ImGui::PopStyleColor();
} }
ImGui::Separator(); ImGui::Separator();
ImGui::TextUnformatted( "Client address" ); ImGui::TextUnformatted( "Client address" );