From 6e5fe262466de387a3a8e1d5ee4dec52c469ad7d Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Thu, 3 Jun 2021 08:09:16 +0000 Subject: [PATCH] [FIX] web_editor: improve Origins/07 background shape The shape is a particular one which connects at the top and bottom with two sub-shapes. Those two parts used the same color which made it impossible for an user to control them individually. This is now the case. This allows for a theme override in themes which used them at the top of their homepage to have the first part with the same color as the header, and the second part with the same color as the next snippet. Part of https://github.com/odoo/odoo/pull/68336 task-2491890 closes odoo/odoo#71768 X-original-commit: e00bdd7bfd36a1205055a829807f5b8ab2d83221 Related: odoo/design-themes#14 Signed-off-by: Quentin Smetz (qsm) --- .../static/shapes/Origins/07_001.svg | 18 ++++++++++++++++++ .../static/src/scss/web_editor.variables.scss | 1 + addons/web_editor/views/snippets.xml | 2 +- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 addons/web_editor/static/shapes/Origins/07_001.svg diff --git a/addons/web_editor/static/shapes/Origins/07_001.svg b/addons/web_editor/static/shapes/Origins/07_001.svg new file mode 100644 index 00000000000..7f150a01a21 --- /dev/null +++ b/addons/web_editor/static/shapes/Origins/07_001.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + diff --git a/addons/web_editor/static/src/scss/web_editor.variables.scss b/addons/web_editor/static/src/scss/web_editor.variables.scss index 63ca28c98db..94bb33302be 100644 --- a/addons/web_editor/static/src/scss/web_editor.variables.scss +++ b/addons/web_editor/static/src/scss/web_editor.variables.scss @@ -702,6 +702,7 @@ $o-bg-shapes: ('web_editor': ( 'Origins/05': ('position': top, 'size': 100% auto, 'colors': (3), 'repeat-y': false), 'Origins/06': ('position': center, 'size': 100% auto, 'colors': (3), 'repeat-y': false), 'Origins/07': ('position': center, 'size': 100% 100%, 'colors': (3), 'repeat-y': false), + 'Origins/07_001': ('position': center, 'size': 100% 100%, 'colors': (3, 5), 'repeat-y': false), 'Origins/08': ('position': bottom, 'size': 100% auto, 'colors': (3), 'repeat-y': false), 'Origins/09': ('position': top, 'size': 100% auto, 'colors': (1, 5), 'repeat-y': false), 'Origins/10': ('position': bottom, 'size': 100% auto, 'colors': (2, 5), 'repeat-y': false), diff --git a/addons/web_editor/views/snippets.xml b/addons/web_editor/views/snippets.xml index 7fa62c06d81..e89025a0363 100644 --- a/addons/web_editor/views/snippets.xml +++ b/addons/web_editor/views/snippets.xml @@ -235,7 +235,7 @@ - +