[IMP] theme_anelusia, *: adapts background shapes

*: theme_artists, theme_aviato, theme_beauty, theme_bewise,
theme_bistro, theme_bookstore,theme_buzzy, theme_clean, theme_cobalt,
theme_enark, theme_graphene, theme_kea, theme_kiddo, theme_loftspace,
theme_monglia, theme_nano, theme_notes, theme_odoo_experts,
theme_orchid, theme_paptic, theme_real_estate, theme_treehouse,
theme_vehicle, theme_zap

This commit adapts background shapes in theme customizations where
shapes have been removed, changed or added during the refactoring of
background shapes.

task-4372655

closes odoo/design-themes#1051

Related: odoo/odoo#190682
Signed-off-by: Serge Bayet (seba) <seba@odoo.com>
This commit is contained in:
Brieuc-brd
2025-03-12 16:45:00 +01:00
parent f4539c4d3c
commit f1215976c0
105 changed files with 373 additions and 381 deletions
+12 -12
View File
@@ -86,10 +86,10 @@
<!-- Shape option -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_half_screen_height" remove="o_full_screen_height" separator=" "/>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Bold/12_001","flip":["x"]}</attribute>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Bold/25","flip":["x"]}</attribute>
</xpath>
<xpath expr="//*[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Bold_12_001" style="background-image: url('/web_editor/shape/web_editor/Bold/12_001.svg?c1=rgba%280%2C%200%2C%200%2C%200.5%29&amp;c2=rgba%280%2C%200%2C%200%2C%200.25%29&amp;c5=o-color-5&amp;flip=x'); background-position: 50% 50%;"/>
<div class="o_we_shape o_web_editor_Bold_25" style="background-image: url('/web_editor/shape/web_editor/Bold/25.svg?c5=o-color-5&amp;flip=x'); background-position: 50% 50%;"/>
</xpath>
</template>
@@ -228,10 +228,10 @@
<!-- Shape option -->
<xpath expr="//section" position="attributes">
<attribute name="class" remove="pt200 pb200" separator=" "/>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Bold/12_001","flip":["x"]}</attribute>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Bold/25","flip":["x"]}</attribute>
</xpath>
<xpath expr="//*[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Bold_12_001" style="background-image: url('/web_editor/shape/web_editor/Bold/12_001.svg?c1=rgba%280%2C%200%2C%200%2C%200.5%29&amp;c2=rgba%280%2C%200%2C%200%2C%200.25%29&amp;c5=o-color-5&amp;flip=x'); background-position: 50% 50%;"/>
<div class="o_we_shape o_web_editor_Bold_25" style="background-image: url('/web_editor/shape/web_editor/Bold/25.svg?c5=o-color-5&amp;flip=x'); background-position: 50% 50%;"/>
</xpath>
</template>
@@ -239,10 +239,10 @@
<!-- Shape option -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_half_screen_height" remove="o_full_screen_height" separator=" "/>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Bold/12_001","flip":["x"]}</attribute>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Bold/25","flip":["x"]}</attribute>
</xpath>
<xpath expr="//*[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Bold_12_001" style="background-image: url('/web_editor/shape/web_editor/Bold/12_001.svg?c1=rgba%280%2C%200%2C%200%2C%200.5%29&amp;c2=rgba%280%2C%200%2C%200%2C%200.25%29&amp;c5=o-color-5&amp;flip=x'); background-position: 50% 50%;"/>
<div class="o_we_shape o_web_editor_Bold_25" style="background-image: url('/web_editor/shape/web_editor/Bold/25.svg?c5=o-color-5&amp;flip=x'); background-position: 50% 50%;"/>
</xpath>
</template>
@@ -261,10 +261,10 @@
<template id="new_page_template_landing_4_s_cover" inherit_id="website.new_page_template_landing_4_s_cover">
<!-- Shape option -->
<xpath expr="//section" position="attributes">
<attribute name="data-oe-shape-data">{"shape":"web_editor/Bold/12_001","flip":["x"]}</attribute>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Bold/25","flip":["x"]}</attribute>
</xpath>
<xpath expr="//*[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Bold_12_001" style="background-image: url('/web_editor/shape/web_editor/Bold/12_001.svg?c1=rgba%280%2C%200%2C%200%2C%200.5%29&amp;c2=rgba%280%2C%200%2C%200%2C%200.25%29&amp;c5=o-color-5&amp;flip=x'); background-position: 50% 50%;"/>
<div class="o_we_shape o_web_editor_Bold_25" style="background-image: url('/web_editor/shape/web_editor/Bold/25.svg?c5=o-color-5&amp;flip=x'); background-position: 50% 50%;"/>
</xpath>
</template>
@@ -280,10 +280,10 @@
<!-- Shape option -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_half_screen_height" remove="o_full_screen_height" separator=" "/>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Bold/12_001","flip":["x"]}</attribute>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Bold/25","flip":["x"]}</attribute>
</xpath>
<xpath expr="//*[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Bold_12_001" style="background-image: url('/web_editor/shape/web_editor/Bold/12_001.svg?c1=rgba%280%2C%200%2C%200%2C%200.5%29&amp;c2=rgba%280%2C%200%2C%200%2C%200.25%29&amp;c5=o-color-5&amp;flip=x'); background-position: 50% 50%;"/>
<div class="o_we_shape o_web_editor_Bold_25" style="background-image: url('/web_editor/shape/web_editor/Bold/25.svg?c5=o-color-5&amp;flip=x'); background-position: 50% 50%;"/>
</xpath>
</template>
@@ -344,10 +344,10 @@
<!-- Shape option -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_half_screen_height" remove="o_full_screen_height" separator=" "/>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Bold/12_001","flip":["x"]}</attribute>
<attribute name="data-oe-shape-data">{"shape":"web_editor/Bold/25","flip":["x"]}</attribute>
</xpath>
<xpath expr="//*[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Bold_12_001" style="background-image: url('/web_editor/shape/web_editor/Bold/12_001.svg?c1=rgba%280%2C%200%2C%200%2C%200.5%29&amp;c2=rgba%280%2C%200%2C%200%2C%200.25%29&amp;c5=o-color-5&amp;flip=x'); background-position: 50% 50%;"/>
<div class="o_we_shape o_web_editor_Bold_25" style="background-image: url('/web_editor/shape/web_editor/Bold/25.svg?c5=o-color-5&amp;flip=x'); background-position: 50% 50%;"/>
</xpath>
</template>
+2 -3
View File
@@ -4,13 +4,12 @@
<template id="s_big_number" inherit_id="website.s_big_number">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="data-oe-shape-data">{'shape':'web_editor/Bold/06_001','colors':{'c3':'o-color-5'}}</attribute>
<attribute name="class" add="o_cc4" remove="o_cc5" separator=" "/>
<attribute name="data-oe-shape-data">{'shape':'web_editor/Bold/20','colors':{'c5':'o-color-1','c1':'o-color-1'}}</attribute>
</xpath>
<!-- Shape -->
<xpath expr="//div[hasclass('o_we_shape')]" position="replace">
<div class="o_we_shape o_web_editor_Bold_06_001" style="background-image: url('/web_editor/shape/web_editor%2FBold%2F06_001.svg?c3=o-color-5');"/>
<div class="o_we_shape o_web_editor_Bold_20" style="background-image: url('/web_editor/shape/web_editor/Bold/20.svg?c5=o-color-1&amp;c1=o-color-1');"/>
</xpath>
<!-- Text -->