From 27604376a9fde507bb75e03fe3fc70907810de03 Mon Sep 17 00:00:00 2001 From: "stefanorigano (SRI)" Date: Wed, 29 Sep 2021 14:09:39 +0000 Subject: [PATCH] [IMP] web_editor, website: improve "palettes-chooser" dropdown design This commit reviews the component design in order to match the "Configurator" one. As a result, 'color-4' and 'color-5' are hidden in the palette-chooser while remaining visible/editable once the palette is active. This commit will also reorder color fields in the sidebar and in the colopicker in order to match both the palette-preview & CC-list colors order. Beside design consistency, another reason behind these changes goes back to the initial stages of the color system introduced with v14. At the very beginning the system was designed to handle 3 custom colors + "locked" black and white. Being able to edit black and white sounded interesting at that time; as a result 'color-4' and 'color-5' have been introduced in the system. Despite being a powerful tool for designers and pro-users, the edition of these color has been proven to be tricky an potentially unsafe. Together with new default palettes that standardize 'color-4' and 'color-5' to safe values, hiding these color from the list simplify the palette selection process and aims, implicitly, to communicate to "normal" users that these colors are "not part of the palette", while somehow related. task-2656337 closes odoo/odoo#77857 X-original-commit: 02aba326710523bf210644e9038198059db1672c Related: odoo/design-themes#514 Signed-off-by: Quentin Smetz (qsm) --- addons/web_editor/views/editor.xml | 6 ++- .../static/src/js/editor/snippets.options.js | 4 +- .../static/src/scss/website.wysiwyg.scss | 39 +++++++++++++++---- addons/website/views/snippets/snippets.xml | 4 +- 4 files changed, 40 insertions(+), 13 deletions(-) diff --git a/addons/web_editor/views/editor.xml b/addons/web_editor/views/editor.xml index 6b9a4d577e5..ba70ecfce88 100644 --- a/addons/web_editor/views/editor.xml +++ b/addons/web_editor/views/editor.xml @@ -35,7 +35,11 @@