More compact welcome dialog.

This commit is contained in:
Bartosz Taudul 2019-06-17 01:21:55 +02:00
parent 38ebc2e989
commit 60f0b81faf

View File

@ -311,7 +311,7 @@ int main( int argc, char** argv )
ImGui::EndPopup(); ImGui::EndPopup();
} }
ImGui::Separator(); ImGui::Separator();
ImGui::TextUnformatted( "Connect to client" ); ImGui::TextUnformatted( "Client address" );
bool connectClicked = false; bool connectClicked = false;
connectClicked |= ImGui::InputTextWithHint( "###connectaddress", "Enter address", addr, 1024, ImGuiInputTextFlags_EnterReturnsTrue ); connectClicked |= ImGui::InputTextWithHint( "###connectaddress", "Enter address", addr, 1024, ImGuiInputTextFlags_EnterReturnsTrue );
if( !connHistVec.empty() ) if( !connHistVec.empty() )
@ -358,7 +358,7 @@ int main( int argc, char** argv )
view = std::make_unique<tracy::View>( addr, fixedWidth, SetWindowTitleCallback ); view = std::make_unique<tracy::View>( addr, fixedWidth, SetWindowTitleCallback );
} }
ImGui::Separator(); ImGui::SameLine( 0, ImGui::GetFontSize() * 2 );
if( ImGui::Button( ICON_FA_FOLDER_OPEN " Open saved trace" ) && !loadThread.joinable() ) if( ImGui::Button( ICON_FA_FOLDER_OPEN " Open saved trace" ) && !loadThread.joinable() )
{ {
nfdchar_t* fn; nfdchar_t* fn;