function setImagePaths(obj)
%SETIMAGEPATHS Dynamically set paths of images used by the app buttons.

%   Copyright 2021 The MathWorks, Inc.

    app = obj.App;
    assetsFolder = app.AssetsFolder;
    app.ScrollTopLeftUIC.Icon = locImagePath(assetsFolder, 'ArrowLeft.svg');
    app.ScrollTopRightUIC.Icon = locImagePath(assetsFolder, 'ArrowRight.svg');
    
    app.ScrollUpUIC.Icon = locImagePath(assetsFolder, 'ArrowUp.svg');
    app.ScrollDownUIC.Icon = locImagePath(assetsFolder, 'ArrowDown.svg');

    app.ScrollBottomLeftUIC.Icon = locImagePath(assetsFolder, 'ArrowLeft.svg');
    app.ScrollBottomRightUIC.Icon = locImagePath(assetsFolder, 'ArrowRight.svg');

    app.RunPauseResumeButton.Icon = locImagePath(assetsFolder, 'icon_run.png');
    app.StopButton.Icon = locImagePath(assetsFolder, 'icon_stop.png');

end

function path = locImagePath(assetsFolder, image)
    imagesPath = fullfile(assetsFolder, 'images');
    path = fullfile(imagesPath, image);
end

% LocalWords:  svg
