diff --git a/website/o3dv/settingssidebarpanel.js b/website/o3dv/settingssidebarpanel.js
index 2184d2e..b3d8581 100644
--- a/website/o3dv/settingssidebarpanel.js
+++ b/website/o3dv/settingssidebarpanel.js
@@ -12,28 +12,21 @@ OV.SettingsSidebarPanel = class extends OV.SidebarPanel
InitSettings (settings)
{
- let table = $('
').addClass ('ov_property_table').appendTo (this.contentDiv);
-
- let backgroundColorParams = settings.backgroundColor;
- this.AddColorInput (table, backgroundColorParams, function (newVal) {
- backgroundColorParams.onChange (newVal);
- });
-
+ this.AddColorParameters (settings.backgroundColor, 'Background Color', 'Changing the background color affects only the visualization.');
+ this.AddColorParameters (settings.defaultColor, 'Default Color', 'Default color is used when no material was defined in the file.');
}
- AddColorInput (table, params, onChange)
+ AddColorParameters (params, title, description)
{
- let row = $('
').addClass ('ov_property_table_row').appendTo (table);
- let nameColum = $('
').addClass ('ov_property_table_cell ov_property_table_name').appendTo (row);
- let valueColumn = $('