diff options
| author | qsm-odoo <qsm@odoo.com> | 2020-05-28 10:04:50 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-06-02 12:17:23 +0000 |
| commit | 00f70f7936d37ec1c7c26065b2126045337e2825 (patch) | |
| tree | ede44cb84e8a3dd088c1a9cb06e8140ea9e4fbfb /addons/web/static/src/js/widgets | |
| parent | dadcec593d8328727b17f218c69fa1bc1433686f (diff) | |
[IMP] website, *: allow to use a color preset for menu and footer
*: web_editor, web
Also now allows to control the copyright section color.
This commit also allows to use color name alias when the user choose
one of the 5 main colors or a gray color for one component (e.g. if the
user picks 'o-color-1' as the color for its text in preset 4, then it
will no longer be linked to the current css color of 'o-color-1' but to
'o-color-1' directly; meaning that if that color changes in the future,
so will the text of preset 4).
Part of https://github.com/odoo/odoo/pull/52223
task-2197038
Diffstat (limited to 'addons/web/static/src/js/widgets')
| -rw-r--r-- | addons/web/static/src/js/widgets/colorpicker.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/web/static/src/js/widgets/colorpicker.js b/addons/web/static/src/js/widgets/colorpicker.js index 6b17431259a..8c3556df60f 100644 --- a/addons/web/static/src/js/widgets/colorpicker.js +++ b/addons/web/static/src/js/widgets/colorpicker.js @@ -592,6 +592,8 @@ ColorpickerWidget.convertCSSColorToRgba = function (cssColor) { // TODO maybe implement a support for receiving css color like 'red' or // 'transparent' (which are now considered non-css color by isCSSColor...) + // Note: however, if ever implemented be careful of 'white'/'black' which + // actually are color names for our color system... return false; }; |
