Minor UI and wording changes

This commit is contained in:
Bruno Herbelin
2022-05-24 23:28:36 +02:00
parent 3c0b2c64e1
commit 662d8bcfda
4 changed files with 8 additions and 6 deletions

View File

@@ -712,7 +712,7 @@ void ImGuiVisitor::visit (SessionGroupSource& s)
ImGuiInputTextFlags_ReadOnly);
ImGui::PopStyleColor(1);
if ( ImGui::Button( ICON_FA_SIGN_OUT_ALT " Import", ImVec2(IMGUI_RIGHT_ALIGN, 0)) )
if ( ImGui::Button( ICON_FA_SIGN_OUT_ALT " Expand", ImVec2(IMGUI_RIGHT_ALIGN, 0)) )
Mixer::manager().import( &s );
ImGui::SameLine(0, IMGUI_SAME_LINE);
ImGui::Text("Sources");

View File

@@ -176,6 +176,8 @@ void InfoVisitor::visit (SessionGroupSource& s)
return;
std::ostringstream oss;
if (!brief_) oss << "Group of ";
uint N = s.session()->size();
oss << N << " source" << (N>1 ? "s" : "");
uint T = s.session()->numSources();
@@ -187,7 +189,7 @@ void InfoVisitor::visit (SessionGroupSource& s)
oss << ", RGB, " << s.session()->frame()->width() << " x " << s.session()->frame()->height();
}
else {
oss << " in Group"<< std::endl;
oss << std::endl;
oss << "RGB" << std::endl;
oss << s.session()->frame()->width() << " x " << s.session()->frame()->height();
}

View File

@@ -546,7 +546,7 @@ void Source::attach(FrameBuffer *renderbuffer)
// if a symbol is available
if (symbol_)
// hack to place the symbols in the corner independently of aspect ratio
symbol_->translation_.x = 1.1f * (renderbuffer_->aspectRatio()-1.f);
symbol_->translation_.x = (renderbuffer_->aspectRatio() - 0.3f) / renderbuffer_->aspectRatio();
// hack to place the initials in the corner independently of aspect ratio
initial_0_->translation_.x = 0.2f - renderbuffer_->aspectRatio();

View File

@@ -5934,7 +5934,7 @@ void Navigator::RenderSourcePannel(Source *s)
// clone & delete buttons
ImGui::Text(" ");
// Action on source
if ( ImGui::Button( ICON_FA_SHARE_SQUARE " Clone", ImVec2(ImGui::GetContentRegionAvail().x, 0)) )
if ( ImGui::Button( ICON_FA_SHARE_SQUARE " Clone & Filter", ImVec2(ImGui::GetContentRegionAvail().x, 0)) )
Mixer::manager().addSource ( Mixer::manager().createSourceClone() );
if ( ImGui::Button( ICON_FA_BACKSPACE " Delete", ImVec2(ImGui::GetContentRegionAvail().x, 0)) ) {
Mixer::manager().deleteSource(s);