From 4edb9c4f60f98719cb7f8666b5ee7f6ab4c7441f Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Tue, 18 Dec 2018 14:08:40 +0000 Subject: [IMP] website: improve theme customize dialog - Make the controller part more readable and more efficient (O(1) ORM operations instead of O(n)) and remove deprecated code. - Add the possibility to have a toggle standalone option. This is used as soon as an `` is alone in its container (note that now, the container can be any tag and will be ignored during rendering). - If an option has no specified 'string' to attach to it, the name of the first view it toggles will be used. PR https://github.com/odoo/odoo/pull/29624 task-1904244 --- addons/website/static/src/xml/website.editor.xml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'addons/website/static/src/xml') diff --git a/addons/website/static/src/xml/website.editor.xml b/addons/website/static/src/xml/website.editor.xml index 46d5de05c12..293b68a93a6 100644 --- a/addons/website/static/src/xml/website.editor.xml +++ b/addons/website/static/src/xml/website.editor.xml @@ -22,9 +22,9 @@ @@ -39,9 +39,13 @@
-
-- cgit v1.2.3 From 45a54104bfdee9f0459bc35d7da15c6e586b4982 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Tue, 18 Dec 2018 16:08:31 +0000 Subject: [REF] website: unify the theme customize dialog color options Before this commit, color options in the theme customize were treated as big exception in the system. The whole color panel XML was defined client-side and used custom design. Now, all colors are defined as options in the "server-side" template, allowing for more customizations and better maintenance. This commit also makes the color saving system generic to allow for more new options in the future (like customizing the logo height or the font size, which is the next task). PR https://github.com/odoo/odoo/pull/29624 task-1904244 --- addons/website/static/src/xml/website.editor.xml | 47 +++--------------------- 1 file changed, 5 insertions(+), 42 deletions(-) (limited to 'addons/website/static/src/xml') diff --git a/addons/website/static/src/xml/website.editor.xml b/addons/website/static/src/xml/website.editor.xml index 293b68a93a6..d02d82eb5aa 100644 --- a/addons/website/static/src/xml/website.editor.xml +++ b/addons/website/static/src/xml/website.editor.xml @@ -37,58 +37,21 @@
-
+
- -
- -
-
-
Main colors
- - - - - -
-
-
Background colors
- - - -
-
-
Text colors
- - - -
-
-
State colors
- - - - - -
-
-
- - + t-att-data-color-type="colorType"/> -- cgit v1.2.3 From 905d18e0445798d4fdac68f5b6f8c144e69d002f Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Fri, 21 Dec 2018 17:08:17 +0000 Subject: [IMP] website, *: add new logo sizing option * portal, web This commit introduces the first of many-to-come non-color website user values: the logo height. Now, the user can choose it in the customize dialog. PR https://github.com/odoo/odoo/pull/29624 task-1904244 --- addons/website/static/src/xml/website.editor.xml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'addons/website/static/src/xml') diff --git a/addons/website/static/src/xml/website.editor.xml b/addons/website/static/src/xml/website.editor.xml index d02d82eb5aa..2f8473d90c3 100644 --- a/addons/website/static/src/xml/website.editor.xml +++ b/addons/website/static/src/xml/website.editor.xml @@ -49,10 +49,28 @@
-
+ +
+ + +
+
+ +
+ +
+
+
+
+
-- cgit v1.2.3