summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/scss/web_editor.variables.scss
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2018-08-03 15:54:17 +0200
committerqsm-odoo <qsm@odoo.com>2018-08-10 16:49:29 +0200
commit22c4311e283af95eafe1ba85ee1234bb8102110e (patch)
treedd76a52df2e53e5411b4d80210163c9d4fc7fb16 /addons/web_editor/static/src/scss/web_editor.variables.scss
parentfcd4d29c04a01576b5ee4082b776789ab3c7f343 (diff)
[IMP] *: make customize dialog generic and improve options
* web, web_editor, website, website_theme_install, portal, theme_default, theme_bootswatch The purpose of this task is to make the customize dialog as generic as possible, that is theme-independant: 1) The design is now totally generic (Odoo visuals) 2) The XML definition is form-view like. This allows themes to extend the dialog without any risk of breaking the style and also allows to not care about lots of technical details. 3) New options have been included. Those were themes options that are now generic and which themes can simply adapt without touching the customize modal (navbar colors, footer color, navbar layout, fonts, body background, ...). The color palette can now also be customized with user colors. Using sass functionnalities, color palettes and fonts integration is now a lot better. Thanks to @qha-odoo for the original design. task-31677
Diffstat (limited to 'addons/web_editor/static/src/scss/web_editor.variables.scss')
-rw-r--r--addons/web_editor/static/src/scss/web_editor.variables.scss23
1 files changed, 18 insertions, 5 deletions
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 51c1c4de4d1..d0c0f312b93 100644
--- a/addons/web_editor/static/src/scss/web_editor.variables.scss
+++ b/addons/web_editor/static/src/scss/web_editor.variables.scss
@@ -220,11 +220,24 @@ $o-we-switch-inactive-color: $o-we-color-paper !default;
// Edition colors
// Colors
-$color-alpha: #1cc1a9 !default;
-$color-beta: #875A7B !default;
-$color-gamma: #BA3C3D !default;
-$color-delta: #0D6759 !default;
-$color-epsilon: #0B2E59 !default;
+$o-color-palettes: (
+ (
+
+ ),
+) !default;
+$o-color-palette-number: 1;
+
+// Theme colors
+$o-theme-color-palettes: (
+ (
+ primary: #007bff, // BS default here but needed for compatibility (see bootstrap_overridden)
+ secondary: #6c757d, // BS default here but needed for compatibility (see bootstrap_overridden)
+ gamma: #BA3C3D,
+ delta: #0D6759,
+ epsilon: #0B2E59,
+ ),
+) !default;
+$o-theme-color-palette-number: 1;
// Greyscale transparent colours
$o-transparent-grays: (