Unifying icons for session and group sources UI

This commit is contained in:
Bruno Herbelin
2022-04-02 17:45:57 +02:00
parent d10b809687
commit dc1f1e02a1
2 changed files with 8 additions and 5 deletions

View File

@@ -638,12 +638,12 @@ void ImGuiVisitor::visit (SessionFileSource& s)
ImGui::SetCursorPos(pos);
}
if ( ImGui::Button( ICON_FA_FILE_EXPORT " Import", ImVec2(IMGUI_RIGHT_ALIGN, 0)) )
if ( ImGui::Button( ICON_FA_SIGN_OUT_ALT " Import", ImVec2(IMGUI_RIGHT_ALIGN, 0)) )
Mixer::manager().import( &s );
ImGui::SameLine();
ImGui::Text("Sources");
if (ImGuiToolkit::ButtonIcon(3, 2)) s.session()->setFadingTarget(0.f);
if (ImGuiToolkit::IconButton(2, 1)) s.session()->setFadingTarget(0.f);
float f = s.session()->fading();
ImGui::SameLine(0, IMGUI_SAME_LINE);
ImGui::SetNextItemWidth(IMGUI_RIGHT_ALIGN);
@@ -693,9 +693,12 @@ void ImGuiVisitor::visit (SessionGroupSource& s)
ImGui::SetCursorPos(pos);
}
if ( ImGui::Button( ICON_FA_UPLOAD " Expand", ImVec2(IMGUI_RIGHT_ALIGN, 0)) ){
if ( ImGui::Button( ICON_FA_SIGN_OUT_ALT " Import", ImVec2(IMGUI_RIGHT_ALIGN, 0)) )
Mixer::manager().import( &s );
}
ImGui::SameLine();
ImGui::Text("Sources");
}
void ImGuiVisitor::visit (RenderSource& s)

View File

@@ -499,7 +499,7 @@ View::Cursor MixingView::grab (Source *s, glm::vec2 from, glm::vec2 to, std::pai
// cursor feedback
slider_->color = glm::vec4( COLOR_CIRCLE_OVER, 0.9f );
std::ostringstream info;
info << "Output " << 100 - int(f * 100.0) << " %";
info << ICON_FA_ADJUST << " Output fading " << 100 - int(f * 100.0) << " %";
return Cursor(Cursor_Hand, info.str() );
}
else if (pick.first == limbo_slider_) {