summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/xml/snippets.xml
diff options
context:
space:
mode:
authorfja-odoo <fja@odoo.com>2019-10-21 13:27:16 +0000
committerqsm-odoo <qsm@odoo.com>2019-11-18 09:56:40 +0000
commit22c5fc5dd2fcc7e37f103876a219727122d23293 (patch)
tree7fb91b5832971643e8b97974574ec34a66dfdacd /addons/web_editor/static/src/xml/snippets.xml
parent2006959761a0fb584f3dcfc45c7cac1aebd12430 (diff)
[IMP] web_editor, website: generalize colorpicker
Currently we have: - a colorpicker for background color of snippets - a colorpicker for foreground and background text (topbar) - a colorpicker for menu/footer/navbar/etc These 3 are separate colorpickers with different options. After this Commit All 3 will use the same color palette wich allow you to select theme color, common colors, custom color and transparent filter. Part of https://github.com/odoo/odoo/pull/38959 maintask-2066614 task-2087383
Diffstat (limited to 'addons/web_editor/static/src/xml/snippets.xml')
-rw-r--r--addons/web_editor/static/src/xml/snippets.xml14
1 files changed, 9 insertions, 5 deletions
diff --git a/addons/web_editor/static/src/xml/snippets.xml b/addons/web_editor/static/src/xml/snippets.xml
index 70ecd00c67e..b1f5835c599 100644
--- a/addons/web_editor/static/src/xml/snippets.xml
+++ b/addons/web_editor/static/src/xml/snippets.xml
@@ -37,12 +37,16 @@
<!-- options -->
<div t-name="web_editor.snippet.option.colorpicker" class="colorpicker">
- <div class="btn-group palette-reset">
- <div class="note-color-reset" data-event="foreColor" data-value="inherit" title="None" role="img" aria-label="No color">
- <i class="fa fa-ban"/>
- </div>
- </div>
+
<div class="o_colorpicker_sections px-1 pb8">
+ <div class="o_colorpicker_section">
+ <a class="btn w-50 float-left o_colorpicker_reset d-none">
+ <i class="fa fa-ban"/> Reset
+ </a>
+ <a class="btn w-50 o_add_custom_color" data-name="custom">
+ <i class="fa fa-plus"/> Custom
+ </a>
+ </div>
<div class="tab-content o_colorpicker_section_tabs"/>
</div>
</div>