[FIX] theme_*: fix s_text_cover design

This commit has two main goals:

1. Adapt the copy of the `s_text_cover` snippet to fit each theme

2. Introduce custom images for each themes, as the `s_text_cover` was
   always using the same image until now

This commit also fixes some conflicting classes due to a change of
`background-color` in the default snippet.

task-4119904
Part of task-3619705

Part-of: odoo/design-themes#919
Related: odoo/odoo#180736
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
Chrysanthe (chgo)
2024-08-08 18:55:23 +02:00
committed by qsm-odoo
parent 05fdc8e75f
commit 3243aef15b
61 changed files with 457 additions and 28 deletions
+7
View File
@@ -211,5 +211,12 @@
<field name="name">website.s_images_constellation_default_image_2</field>
<field name="url">/theme_buzzy/static/src/img/photos/s_images_constellation_default_image_2.jpg</field>
</record>
<!-- Text cover -->
<record id="s_text_cover_default_image" model="theme.ir.attachment">
<field name="key">website.s_text_cover_default_image</field>
<field name="name">website.s_text_cover_default_image</field>
<field name="url">/theme_buzzy/static/src/img/photos/library_image_02.jpg</field>
</record>
</odoo>
+3 -3
View File
@@ -158,7 +158,7 @@
<template id="new_page_template_about_s_text_cover" inherit_id="website.new_page_template_about_s_text_cover">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
</template>
@@ -250,7 +250,7 @@
<template id="new_page_template_landing_s_text_cover" inherit_id="website.new_page_template_landing_s_text_cover">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
</template>
@@ -347,7 +347,7 @@
<template id="new_page_template_services_s_text_cover" inherit_id="website.new_page_template_services_s_text_cover">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
</template>