summaryrefslogtreecommitdiff
path: root/addons/web_editor/views/editor.xml
diff options
context:
space:
mode:
authorstefanorigano <stefano.rigano@gmail.com>2016-08-30 11:26:08 +0200
committerqsm-odoo <qsm@odoo.com>2016-08-31 16:37:20 +0200
commit8c035a7a416b79fdf7d9f3315cdbb279ba0d7c73 (patch)
tree7c007b88ef056f1444cf8b6c5f0073be61568397 /addons/web_editor/views/editor.xml
parent8ef4535327b5a0b8e4c701d45b12959634a13370 (diff)
[IMP] web_editor: add transparent grayscale color palette
These colors were usually hardcoded in some snippets (.s_banner for example) to increase text legibility over background images. This commit will let the user personalize them.
Diffstat (limited to 'addons/web_editor/views/editor.xml')
-rw-r--r--addons/web_editor/views/editor.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/web_editor/views/editor.xml b/addons/web_editor/views/editor.xml
index 4d2bda21f02..056b2df4169 100644
--- a/addons/web_editor/views/editor.xml
+++ b/addons/web_editor/views/editor.xml
@@ -154,6 +154,14 @@
<button data-color="warning">Warning</button>
<button data-color="danger">Danger</button>
</div>
+ <div class="o_colorpicker_section" data-name="transparent_grayscale" data-icon-class="fa fa-eye-slash">
+ <button data-color="black-25">25% Black</button>
+ <button data-color="black-50">50% Black</button>
+ <button data-color="black-75">75% Black</button>
+ <button data-color="white-25">25% White</button>
+ <button data-color="white-50">50% White</button>
+ <button data-color="white-75">75% White</button>
+ </div>
</colorpicker>
</template>
</odoo>