Skip to content

Commit

Permalink
[PE] Set background for slide show
Browse files Browse the repository at this point in the history
  • Loading branch information
JuliaRadzhabova committed Jan 24, 2025
1 parent 0d18a5a commit 575deb1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/api/documents/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@
submitForm: {
visible: true/false (default: true)
resultMessage: 'text'/''/null/undefined // if '' - don't show a message after submitting form, null/undefined - show the default message
}
},
slidePlayerBackground: '#000000' // background color for slide show in presentation editor
},
coEditing: {
mode: 'fast', // <coauthoring mode>, 'fast' or 'strict'. if 'fast' and 'customization.autosave'=false -> set 'customization.autosave'=true. 'fast' - default for editor
Expand Down
1 change: 1 addition & 0 deletions apps/presentationeditor/embed/js/ApplicationController.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ PE.ApplicationController = new(function(){
function onDocumentContentReady() {
api.ShowThumbnails(false);
api.asc_DeleteVerticalScroll();
config.customization && config.customization.slidePlayerBackground && api.asc_setDemoBackgroundColor(config.customization.slidePlayerBackground);

if (!embedConfig.autostart || embedConfig.autostart == 'player') {
api.SetDemonstrationModeOnly();
Expand Down
2 changes: 2 additions & 0 deletions apps/presentationeditor/main/app/controller/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,8 @@ define([
Common.Utils.InternalSettings.set("pe-settings-showgrid", value);
me.api.asc_setShowGridlines(value);

this.appOptions.customization && this.appOptions.customization.slidePlayerBackground && this.api.asc_setDemoBackgroundColor(this.appOptions.customization.slidePlayerBackground);

var application = me.getApplication();
var toolbarController = application.getController('Toolbar'),
statusbarController = application.getController('Statusbar'),
Expand Down
1 change: 1 addition & 0 deletions apps/presentationeditor/mobile/src/controller/Main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ class MainController extends Component {
mode: appOptions.isEdit ? 'edit' : 'view'
});

appOptions.customization && appOptions.customization.slidePlayerBackground && this.api.asc_setDemoBackgroundColor(appOptions.customization.slidePlayerBackground);
this.api.Resize();
this.api.zoomFitToPage();
this.api.asc_GetDefaultTableStyles && setTimeout(() => {this.api.asc_GetDefaultTableStyles()}, 1);
Expand Down

0 comments on commit 575deb1

Please sign in to comment.