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)