diff --git a/website/o3dv/js/settingssidebarpanel.js b/website/o3dv/js/settingssidebarpanel.js index 4aaf62f..ab8bdaf 100644 --- a/website/o3dv/js/settingssidebarpanel.js +++ b/website/o3dv/js/settingssidebarpanel.js @@ -6,6 +6,7 @@ OV.SettingsSidebarPanel = class extends OV.SidebarPanel this.backgroundColorInput = null; this.defaultColorInput = null; this.defaultColorWarning = null; + this.themeInput = null; } GetTitle () @@ -37,7 +38,7 @@ OV.SettingsSidebarPanel = class extends OV.SidebarPanel settings.defaultColor, callbacks.onDefaultColorChange ); - this.AddThemeParameter (settings.themeId, callbacks.onThemeChange); + this.themeInput = this.AddThemeParameter (settings.themeId, callbacks.onThemeChange); this.AddResetToDefaultsButton (defaultSettings, callbacks); } @@ -111,37 +112,53 @@ OV.SettingsSidebarPanel = class extends OV.SidebarPanel AddThemeParameter (defaultValue, onChange) { - function AddRadioButton (contentDiv, defaultValue, themeId, themeName, onChange) + function AddRadioButton (contentDiv, themeId, themeName, onChange) { let row = $('
').addClass ('ov_sidebar_settings_row').appendTo (contentDiv); - let radio = $('').addClass ('ov_radio_button').attr ('type', 'radio').attr ('id', themeId).attr ('name', 'theme').appendTo (row); - $('