From 99910b526ed792235a778863b993d10cf4e77cd7 Mon Sep 17 00:00:00 2001 From: fja-odoo Date: Thu, 16 Apr 2020 14:00:41 +0000 Subject: [IMP] web, web_editor: integrate colorpicker in colorpalette Stop using the colorpicker dialog in the colorpalette widget. Integrate the colorpicker widget in the colorpalette widget. Of course, the colorpicker behaviors are adapted so that no useless rerendering of the colorpalette is made on each value change. The 'reset color' button is now a button like the other colors, no need for a 'color_reset' event anymore. It is removed and replaced with a 'color_picked' event with color being an empty string. The clear button now also work on hover. Also, the topbar colorpalette for text and text background colors now has the exact same behaviour as the background colorpalette: adding color preview on hover. The colorpalette now also closes on 'enter' keypress. Part of https://github.com/odoo/odoo/pull/46088 task-2195313 closes odoo/odoo#46088 Related: odoo/enterprise#8696 Signed-off-by: Quentin Smetz (qsm) --- addons/web/static/src/xml/colorpicker.xml | 60 ++++++++++++------------------- 1 file changed, 23 insertions(+), 37 deletions(-) (limited to 'addons/web/static/src/xml') diff --git a/addons/web/static/src/xml/colorpicker.xml b/addons/web/static/src/xml/colorpicker.xml index 957bef83146..7fb81da8711 100644 --- a/addons/web/static/src/xml/colorpicker.xml +++ b/addons/web/static/src/xml/colorpicker.xml @@ -3,44 +3,30 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ +
+
hex
+
+ + + + + + RGBA + + RGB
-
-
-
- -
- -
-
-
- - -
-
- - -
-
- - -
-
- - -
-
-
-- cgit v1.2.3