diff --git a/DeviceSource.cpp b/DeviceSource.cpp index 7d3624b..ce47da0 100644 --- a/DeviceSource.cpp +++ b/DeviceSource.cpp @@ -328,7 +328,8 @@ void DeviceSource::setDevice(const std::string &devicename) Log::Info("Device %s selected its optimal config: %s %s %dx%d@%.1ffps", device_.c_str(), best.stream.c_str(), best.format.c_str(), best.width, best.height, fps); pipeline << " ! " << best.stream; - pipeline << ",format=" << best.format; + if (!best.format.empty()) + pipeline << ",format=" << best.format; pipeline << ",framerate=" << best.fps_numerator << "/" << best.fps_denominator; pipeline << ",width=" << best.width; pipeline << ",height=" << best.height; @@ -433,9 +434,6 @@ DeviceConfigSet Device::getDeviceConfigs(const std::string &src_description) config.format = f; break; } - // else keep f if it contains J (for JPEG) and not already JPG in config - else if ( (f.find("J") != std::string::npos) && (config.format.find("J") == std::string::npos ) ) - config.format = f; // default, take at least one if nothing yet in config else if ( config.format.empty() ) config.format = f; diff --git a/ImGuiVisitor.cpp b/ImGuiVisitor.cpp index abbae14..8d51729 100644 --- a/ImGuiVisitor.cpp +++ b/ImGuiVisitor.cpp @@ -317,7 +317,7 @@ void ImGuiVisitor::visit (MediaSource& s) void ImGuiVisitor::visit (SessionSource& s) { - ImGuiToolkit::Icon(4,9); + ImGuiToolkit::Icon(3,16); ImGui::SameLine(0, 10); ImGui::Text("Session File"); diff --git a/UserInterfaceManager.cpp b/UserInterfaceManager.cpp index 98393f9..1bb4716 100644 --- a/UserInterfaceManager.cpp +++ b/UserInterfaceManager.cpp @@ -1919,10 +1919,10 @@ void Navigator::RenderNewPannel() ImGui::SetCursorPosY(width_); ImGui::SetNextItemWidth(IMGUI_RIGHT_ALIGN); - static const char* origin_names[4] = { ICON_FA_FILE " File", - ICON_FA_SITEMAP " Internal", + static const char* origin_names[4] = { ICON_FA_PHOTO_VIDEO " File", + ICON_FA_SYNC " Internal", ICON_FA_COG " Generated", - ICON_FA_CUBES " External" + ICON_FA_PLUG " External" }; // TODO IMPLEMENT EXTERNAL SOURCES static const char* origin_names[3] = { ICON_FA_FILE " File", ICON_FA_SITEMAP " Internal", ICON_FA_PLUG " External" }; if (ImGui::Combo("Origin", &Settings::application.source.new_type, origin_names, IM_ARRAYSIZE(origin_names)) ) @@ -1934,7 +1934,7 @@ void Navigator::RenderNewPannel() ImGui::SetCursorPosY(2.f * width_); // clic button to load file - if ( ImGui::Button( ICON_FA_FILE_IMPORT " Open file", ImVec2(ImGui::GetContentRegionAvail().x IMGUI_RIGHT_ALIGN, 0)) ) { + if ( ImGui::Button( ICON_FA_FILE_EXPORT " Open file", ImVec2(ImGui::GetContentRegionAvail().x IMGUI_RIGHT_ALIGN, 0)) ) { // launch async call to file dialog and get its future. if (fileImportFileDialogs.empty()) { fileImportFileDialogs.emplace_back( std::async(std::launch::async, ImportFileDialog, Settings::application.recentImport.path) ); @@ -2029,7 +2029,7 @@ void Navigator::RenderNewPannel() // Indication ImGui::SameLine(); - ImGuiToolkit::HelpMarker("Create a source generated algorithmically."); + ImGuiToolkit::HelpMarker("Create a source with graphics generated algorithmically."); // resolution (if pattern selected) if (pattern_type > 0) { @@ -2077,7 +2077,7 @@ void Navigator::RenderNewPannel() // Indication ImGui::SameLine(); - ImGuiToolkit::HelpMarker("Create a source images\nfrom external devices or network."); + ImGuiToolkit::HelpMarker("Create a source with images from external devices or network."); } diff --git a/rsc/images/icons.dds b/rsc/images/icons.dds index 9e5718f..9d11b76 100644 Binary files a/rsc/images/icons.dds and b/rsc/images/icons.dds differ