From ab8f6a8fcef639ffad25c843cdf168b102ec6912 Mon Sep 17 00:00:00 2001 From: "Mehdi Outagant (MOU)" Date: Fri, 27 Sep 2024 17:02:35 +0200 Subject: [PATCH] [IMP] theme_*: use minimal format for highlighted text content *: buzzy, clean, notes A highlighted text has the following structure: ``` text content (line 1) ... [
] text content (line 2) ... ...
``` Which is saved in a minimal format that allows the JS code to rebuild the SVGs when it's needed: ``` text content ... ``` The goal of this commit is to use the simplified format for theme customizations and adapt the code from the "Snippets Preview" and the "New Page Templates Preview" to be able to build the highlights using this format when provided in XML. task-4215788 closes odoo/design-themes#956 Related: odoo/odoo#181884 Signed-off-by: Quentin Smetz (qsm) --- theme_buzzy/views/snippets/s_accordion_image.xml | 2 +- theme_buzzy/views/snippets/s_banner.xml | 2 +- theme_buzzy/views/snippets/s_key_benefits.xml | 2 +- theme_buzzy/views/snippets/s_showcase.xml | 2 +- theme_clean/views/snippets/s_banner.xml | 2 +- theme_notes/views/snippets/s_company_team_shapes.xml | 2 +- theme_notes/views/snippets/s_framed_intro.xml | 2 +- theme_notes/views/snippets/s_image_gallery.xml | 2 +- theme_notes/views/snippets/s_image_text.xml | 2 +- theme_notes/views/snippets/s_text_image.xml | 2 +- theme_notes/views/snippets/s_three_columns.xml | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/theme_buzzy/views/snippets/s_accordion_image.xml b/theme_buzzy/views/snippets/s_accordion_image.xml index 2b0444c45..c3795ba61 100644 --- a/theme_buzzy/views/snippets/s_accordion_image.xml +++ b/theme_buzzy/views/snippets/s_accordion_image.xml @@ -6,7 +6,7 @@ - Top questions answered + Top questions answered /web_editor/shape/theme_buzzy/s_accordion_image.svg?c1=o-color-2 diff --git a/theme_buzzy/views/snippets/s_banner.xml b/theme_buzzy/views/snippets/s_banner.xml index a3a57c155..2e339ea31 100644 --- a/theme_buzzy/views/snippets/s_banner.xml +++ b/theme_buzzy/views/snippets/s_banner.xml @@ -18,7 +18,7 @@ - Unleash your potential. + Unleash your potential. /web_editor/shape/theme_buzzy/s_banner_2.svg?c1=o-color-2 diff --git a/theme_buzzy/views/snippets/s_key_benefits.xml b/theme_buzzy/views/snippets/s_key_benefits.xml index 66a52aa60..540648367 100644 --- a/theme_buzzy/views/snippets/s_key_benefits.xml +++ b/theme_buzzy/views/snippets/s_key_benefits.xml @@ -11,7 +11,7 @@ display-4-fs - Discover our
main three benefits + Discover our
main three benefits
diff --git a/theme_buzzy/views/snippets/s_showcase.xml b/theme_buzzy/views/snippets/s_showcase.xml index 214606aaf..7ea29d7c0 100644 --- a/theme_buzzy/views/snippets/s_showcase.xml +++ b/theme_buzzy/views/snippets/s_showcase.xml @@ -6,7 +6,7 @@ /web_editor/shape/theme_buzzy/s_showcase.svg?c1=o-color-2 - Features showcase + Features showcase diff --git a/theme_clean/views/snippets/s_banner.xml b/theme_clean/views/snippets/s_banner.xml index 2a0afdf80..16af4d261 100644 --- a/theme_clean/views/snippets/s_banner.xml +++ b/theme_clean/views/snippets/s_banner.xml @@ -4,7 +4,7 @@ diff --git a/theme_notes/views/snippets/s_framed_intro.xml b/theme_notes/views/snippets/s_framed_intro.xml index 87008b126..5bd4c4865 100644 --- a/theme_notes/views/snippets/s_framed_intro.xml +++ b/theme_notes/views/snippets/s_framed_intro.xml @@ -8,7 +8,7 @@ - Unplug & Unwind: The Ultimate Music Experience + Unplug & Unwind: The Ultimate Music Experience diff --git a/theme_notes/views/snippets/s_image_gallery.xml b/theme_notes/views/snippets/s_image_gallery.xml index 8ac9e7ffd..5f0ca237b 100644 --- a/theme_notes/views/snippets/s_image_gallery.xml +++ b/theme_notes/views/snippets/s_image_gallery.xml @@ -18,7 +18,7 @@
-

Band Gallery

+

Band Gallery


diff --git a/theme_notes/views/snippets/s_image_text.xml b/theme_notes/views/snippets/s_image_text.xml index 1703daa4a..cb1aa930a 100644 --- a/theme_notes/views/snippets/s_image_text.xml +++ b/theme_notes/views/snippets/s_image_text.xml @@ -16,7 +16,7 @@ - Redefining modern rocks + Redefining modern rocks
diff --git a/theme_notes/views/snippets/s_text_image.xml b/theme_notes/views/snippets/s_text_image.xml index 6fc9df720..28f0752b2 100644 --- a/theme_notes/views/snippets/s_text_image.xml +++ b/theme_notes/views/snippets/s_text_image.xml @@ -9,7 +9,7 @@
- Our History + Our History
diff --git a/theme_notes/views/snippets/s_three_columns.xml b/theme_notes/views/snippets/s_three_columns.xml index 0789bb74b..b66bffe38 100644 --- a/theme_notes/views/snippets/s_three_columns.xml +++ b/theme_notes/views/snippets/s_three_columns.xml @@ -10,7 +10,7 @@

- Upcoming concerts + Upcoming concerts