[ADD] theme 12.0

This commit is contained in:
Design
2021-05-11 15:56:19 +02:00
committed by Jeremy Kersten
commit bddf1b03c5
3057 changed files with 69185 additions and 0 deletions
+57
View File
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="_assets_utils" inherit_id="web._assets_utils">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/mixins.scss"/>
</xpath>
</template>
<template id="_assets_primary_variables" inherit_id="website._assets_primary_variables" priority="1">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/primary_variables.scss"/>
</xpath>
</template>
<template id="_assets_secondary_variables" inherit_id="website._assets_secondary_variables" priority="1">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/secondary_variables.scss"/>
</xpath>
</template>
<template id="_assets_frontend_helpers" inherit_id="website._assets_frontend_helpers" priority="1">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/bootstrap_overridden.scss"/>
</xpath>
</template>
<template id="assets_frontend" inherit_id="website.assets_frontend" priority="1">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/s_media_list.scss"/>
<link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/s_animated_boxes.scss"/>
<link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/s_showcase.scss"/>
<link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/s_masonry_block.scss"/>
<link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/s_media_block.scss"/>
<link rel="stylesheet" type="text/scss" href="/theme_common/static/src/scss/s_showcase_slider.scss"/>
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/images.scss"/>
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/main.scss"/>
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/main.font.scss"/>
</xpath>
<xpath expr="//script[last()]" position="after">
<script type="text/javascript" src="/theme_common/static/src/js/s_animated_boxes_frontend.js"/>
<script type="text/javascript" src="/theme_common/static/src/js/s_media_block_frontend.js"/>
<script type="text/javascript" src="/theme_common/static/src/js/s_showcase_slider_frontend.js"/>
<script type="text/javascript" src="/theme_common/static/lib/YTPlayer/jquery.mb.YTPlayer.js"/>
<script type="text/javascript" src="/theme_graphene/static/src/js/graphene.frontend.js"/>
<script type="text/javascript" src="/theme_graphene/static/src/js/graphene.ext.frontend.js"/>
</xpath>
</template>
<template id="assets_editor" inherit_id="website.assets_editor">
<xpath expr="." position="inside">
<script type="text/javascript" src="/theme_common/static/src/js/s_showcase_editor.js"/>
<script type="text/javascript" src="/theme_common/static/src/js/s_animated_boxes_editor.js"/>
<script type="text/javascript" src="/theme_common/static/src/js/s_media_block_editor.js"/>
<script type="text/javascript" src="/theme_common/static/src/js/s_showcase_slider_editor.js"/>
<script type="text/javascript" src="/theme_graphene/static/src/js/graphene.editor.js"/>
<script type="text/javascript" src="/theme_graphene/static/src/js/graphene.ext.editor.js"/>
</xpath>
</template>
</odoo>
+69
View File
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="theme_customize" inherit_id="theme_common.theme_customize">
<!-- Set number of colors -->
<xpath expr="//t[@t-set='_nb_colors']" position="attributes">
<attribute name="t-value">4</attribute>
</xpath>
<!-- Add serif / sans-serif sections -->
<xpath expr="//opt[@data-font]/../.." position="inside">
<list string="Sans-serif">
<opt data-xmlid="theme_graphene.option_font_sourcesans" data-font="6"/>
<opt data-xmlid="theme_graphene.option_font_abel" data-font="2"/>
<opt data-xmlid="theme_graphene.option_font_sansserif" data-font="1"/>
</list>
<list string="Serif">
<opt data-xmlid="theme_graphene.option_font_playfair" data-font="5"/>
<opt data-xmlid="theme_graphene.option_font_oldstandard" data-font="4"/>
<opt data-xmlid="theme_graphene.option_font_cinzel" data-font="3"/>
</list>
</xpath>
<!-- Add post card layout option -->
<xpath expr="//opt[@id='option_layout_boxed']" position="after">
<opt id="option_layout_postcard" string="Postcard" data-xmlid="theme_graphene.graphene_option_layout_postcard_variables" data-icon=""/>
</xpath>
</template>
<!-- Sans-serif fonts -->
<template id="option_font_sourcesans" inherit_id="theme_graphene._assets_primary_variables" active="True">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/options/fonts/source-sans.scss"/>
</xpath>
</template>
<template id="option_font_abel" inherit_id="theme_graphene._assets_primary_variables" active="False">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/options/fonts/abel.scss"/>
</xpath>
</template>
<template id="option_font_sansserif" inherit_id="theme_graphene._assets_primary_variables" active="False">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/options/fonts/sans-serif.scss"/>
</xpath>
</template>
<!-- Serif fonts -->
<template id="option_font_playfair" inherit_id="theme_graphene._assets_primary_variables" active="True">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/options/fonts/PlayfairDisplay.scss"/>
</xpath>
</template>
<template id="option_font_oldstandard" inherit_id="theme_graphene._assets_primary_variables" active="False">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/options/fonts/OldStandard.scss"/>
</xpath>
</template>
<template id="option_font_cinzel" inherit_id="theme_graphene._assets_primary_variables" active="False">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/options/fonts/Cinzel.scss"/>
</xpath>
</template>
<!-- Layout Options -->
<template id="graphene_option_layout_postcard_variables" inherit_id="theme_graphene._assets_primary_variables" active="False">
<xpath expr="//link[last()]" position="after">
<link rel="stylesheet" type="text/scss" href="/theme_graphene/static/src/scss/options/layouts/postcard_variables.scss"/>
</xpath>
</template>
</odoo>
+94
View File
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Theme logo -->
<record id="image_content_logo" model="theme.ir.attachment">
<field name="key">theme_common.image_content_logo</field>
<field name="name">theme_common.image_content_logo</field>
<field name="url">/theme_graphene/static/src/img/theme_samples/image_content_logo.png</field>
</record>
<!-- Image for img tags -->
<record id="image_content_01" model="theme.ir.attachment">
<field name="key">theme_common.image_content_01</field>
<field name="name">theme_common.image_content_01</field>
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_01.jpg</field>
</record>
<record id="image_content_02" model="theme.ir.attachment">
<field name="key">theme_common.image_content_02</field>
<field name="name">theme_common.image_content_02</field>
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_02.jpg</field>
</record>
<record id="image_content_03" model="theme.ir.attachment">
<field name="key">theme_common.image_content_03</field>
<field name="name">theme_common.image_content_03</field>
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_03.jpg</field>
</record>
<record id="image_content_04" model="theme.ir.attachment">
<field name="key">theme_common.image_content_04</field>
<field name="name">theme_common.image_content_04</field>
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_04.jpg</field>
</record>
<record id="image_content_05" model="theme.ir.attachment">
<field name="key">theme_common.image_content_05</field>
<field name="name">theme_common.image_content_05</field>
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_05.jpg</field>
</record>
<record id="image_content_06" model="theme.ir.attachment">
<field name="key">theme_common.image_content_06</field>
<field name="name">theme_common.image_content_06</field>
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_06.jpg</field>
</record>
<record id="image_content_07" model="theme.ir.attachment">
<field name="key">theme_common.image_content_07</field>
<field name="name">theme_common.image_content_07</field>
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_07.jpg</field>
</record>
<record id="image_content_08" model="theme.ir.attachment">
<field name="key">theme_common.image_content_08</field>
<field name="name">theme_common.image_content_08</field>
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_08.jpg</field>
</record>
<record id="image_content_09" model="theme.ir.attachment">
<field name="key">theme_common.image_content_09</field>
<field name="name">theme_common.image_content_09</field>
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_09.jpg</field>
</record>
<record id="image_content_10" model="theme.ir.attachment">
<field name="key">theme_common.image_content_10</field>
<field name="name">theme_common.image_content_10</field>
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_10.jpg</field>
</record>
<record id="image_content_19" model="theme.ir.attachment">
<field name="key">theme_common.image_content_19</field>
<field name="name">theme_common.image_content_19</field>
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_01.jpg</field>
</record>
<record id="image_content_20" model="theme.ir.attachment">
<field name="key">theme_common.image_content_20</field>
<field name="name">theme_common.image_content_20</field>
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_01.jpg</field>
</record>
<record id="image_content_21" model="theme.ir.attachment">
<field name="key">theme_common.image_content_21</field>
<field name="name">theme_common.image_content_21</field>
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_02.jpg</field>
</record>
<record id="image_content_22" model="theme.ir.attachment">
<field name="key">theme_common.image_content_22</field>
<field name="name">theme_common.image_content_22</field>
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_03.jpg</field>
</record>
<record id="image_content_23" model="theme.ir.attachment">
<field name="key">theme_common.image_content_23</field>
<field name="name">theme_common.image_content_23</field>
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_03.jpg</field>
</record>
<!-- Change default images of snippets -->
<record id="s_cover_default_image" model="theme.ir.attachment">
<field name="key">website.s_cover_default_image</field>
<field name="name">website.s_cover_default_image</field>
<field name="url">/theme_graphene/static/src/img/pictures/bg_image_08.jpg</field>
</record>
</odoo>
+131
View File
@@ -0,0 +1,131 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Customize header -->
<template id="graphene_header" inherit_id="website.layout" name="Graphene Header">
<xpath expr="//div[@id='wrapwrap']/header" position="attributes">
<attribute name="id">graph_header</attribute>
</xpath>
</template>
<!-- Graphene BG Effects -->
<template id="graphene_bg_effects" inherit_id="website.snippet_options">
<xpath expr="//div[@data-js='background']" position="before">
<div data-js="bg_fx"
data-selector="[class^='s_'], section"
data-exclude=".s_google_map, .s_showcase_slider, .s_animated_boxes">
<div class="dropdown-submenu">
<a tabindex="-1" href="#" class="dropdown-item"><i class="fa fa-sliders"/>Background Effects</a>
<div class="dropdown-menu ">
<a href="#" class="dropdown-item" data-select-class="insetShadow">Inset Shadow</a>
<a href="#" class="dropdown-item" data-select-class="insetShadowBig">Big Inset Shadow</a>
<a href="#" class="dropdown-item" data-select-class="glossy">Glossy</a>
<a href="#" class="dropdown-item" data-select-class="glossy-medium">Glossy Medium</a>
<a href="#" class="dropdown-item" data-select-class="glossy-soft">Glossy Soft</a>
<div class="dropdown-divider"/>
<a href="#" class="dropdown-item" data-select-class="">No effects</a>
</div>
</div>
</div>
</xpath>
</template>
<!-- Graphene Color Picker -->
<template id="graphene_colorpicker_pattern" inherit_id="web_editor.colorpicker">
<xpath expr="//colorpicker/div[@data-name='theme']/button[@data-color='alpha']" position="after">
<button class="o_small" data-color="alpha-lighter"/>
<button class="o_small" data-color="alpha-light"/>
<button class="o_small" data-color="alpha-dark"/>
<button class="o_small" data-color="alpha-darker"/>
</xpath>
<xpath expr="//colorpicker/div[@data-name='theme']/button[@data-color='beta']" position="after">
<button class="o_small" data-color="beta-lighter"/>
<button class="o_small" data-color="beta-light"/>
<button class="o_small" data-color="beta-dark"/>
<button class="o_small" data-color="beta-darker"/>
</xpath>
<xpath expr="//colorpicker/div[@data-name='theme']/button[@data-color='gamma']" position="after">
<button class="o_small" data-color="gamma-lighter"/>
<button class="o_small" data-color="gamma-light"/>
<button class="o_small" data-color="gamma-dark"/>
<button class="o_small" data-color="gamma-darker"/>
</xpath>
<xpath expr="//colorpicker/div[@data-name='theme']/button[@data-color='delta']" position="after">
<button class="o_small" data-color="delta-lighter"/>
<button class="o_small" data-color="delta-light"/>
<button class="o_small" data-color="delta-dark"/>
<button class="o_small" data-color="delta-darker"/>
</xpath>
<xpath expr="//colorpicker/div[@data-name='theme']/button[@data-color='epsilon']" position="after">
<button class="o_small" data-color="epsilon-lighter"/>
<button class="o_small" data-color="epsilon-light"/>
<button class="o_small" data-color="epsilon-dark"/>
<button class="o_small" data-color="epsilon-darker"/>
</xpath>
</template>
<!-- Graphene Typography -->
<template id="graphene_typo_pattern" inherit_id="website.snippet_options">
<xpath expr="//div[@data-js='background']" position="before">
<div data-selector="h1, h2">
<div class="dropdown-submenu">
<a tabindex="-1" href="#" class="dropdown-item"><i class="fa fa-font"/>Font Family</a>
<div class="dropdown-menu">
<a href="#" class="dropdown-item" data-select-class="serif">Serif</a>
<a href="#" class="dropdown-item" data-select-class="sans-serif">Sans-Serif</a>
<a href="#" class="dropdown-item" data-select-class="">Default</a>
</div>
</div>
</div>
</xpath>
<xpath expr="//div[@data-js='background']" position="before">
<div data-js='typo_style' data-selector="h1, h2">
<div class="dropdown-submenu">
<a tabindex="-1" href="#" class="dropdown-item"><i class="fa fa-paint-brush"/>Text Effects</a>
<div class="dropdown-menu">
<a href="#" class="dropdown-item" data-select-class="">No effects</a>
<div class="dropdown-divider"/>
<a href="#" class="dropdown-item" data-select-class="title-underlined">Underlined</a>
<a href="#" class="dropdown-item" data-select-class="title-boxed">Boxed</a>
</div>
</div>
</div>
</xpath>
</template>
<!-- Google Map Options -->
<template id="graphene_google_map" inherit_id="theme_common.s_google_map_option">
<xpath expr="//div[@data-js='map']" position="inside">
<div class="dropdown-submenu">
<a tabindex="-1" href="#" class="dropdown-item"><i class="fa fa-fw fa-paint-brush"/>Style</a>
<div class="dropdown-menu backgrounds" data-no-preview="true">
<a href="#" class="thumb stdMap-thumb dropdown-item" data-map-color="stdMap"></a>
<a href="#" class="thumb lightMonoMap-thumb dropdown-item" data-map-color="lightMonoMap">Light Mono</a>
<a href="#" class="thumb cupertinoMap-thumb dropdown-item" data-map-color="cupertinoMap"></a>
<a href="#" class="thumb retroMap-thumb dropdown-item" data-map-color="retroMap"></a>
<a href="#" class="thumb cobaltMap-thumb dropdown-item" data-map-color="cobaltMap"></a>
<a href="#" class="thumb flatMap-thumb dropdown-item" data-map-color="flatMap"></a>
<a href="#" class="thumb blueMap-thumb dropdown-item" data-map-color="blueMap"></a>
<a href="#" class="thumb lillaMap-thumb dropdown-item" data-map-color="lillaMap"></a>
<a href="#" class="thumb carMap-thumb dropdown-item" data-map-color="carMap"></a>
<a href="#" class="thumb bwMap-thumb dropdown-item" data-map-color="bwMap"></a>
</div>
</div>
</xpath>
</template>
<!-- Graphene Top Banner -->
<template id="graphene_top_content_options" inherit_id="website.snippet_options">
<xpath expr="//div[@data-js='background']" position="before">
<div data-js='graphene_top_banner_options' data-selector=".s_media_block, .s_parallax, .s_google_map">
<div class="dropdown-submenu move_to_top_options">
<a tabindex="-1" href="#" class="dropdown-item"><i class="fa fa-magic"/>Position</a>
<div class="dropdown-menu" data-no-preview="true">
<a href="#" class="dropdown-item" data-select-class="">Normal</a>
<a href="#" class="dropdown-item" data-select-class="move_to_top">Move to top</a>
</div>
</div>
</div>
</xpath>
</template>
</odoo>
+18
View File
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- theme_common snippets -->
<template id="snippet_selection" inherit_id="website.snippets">
<xpath expr="//div[@id='snippet_structure']/div[hasclass('o_panel_body')]/t[@t-snippet='website.s_cover']" position="after">
<t t-snippet="theme_common.s_animated_boxes" t-thumbnail="/theme_graphene/static/src/img/ui/s_animated_blocks.jpg"/>
<t t-snippet="theme_common.s_showcase" t-thumbnail="/theme_graphene/static/src/img/ui/s_showcase.jpg"/>
<t t-snippet="theme_common.s_numbers" t-thumbnail="/theme_common/static/src/img/snippets/s_numbers.png"/>
<t t-snippet="theme_common.s_page_header" t-thumbnail="/theme_common/static/src/img/snippets/s_page_header.png"/>
<t t-snippet="theme_common.s_media_list" t-thumbnail="/theme_common/static/src/img/snippets/s_media_list.png"/>
<t t-snippet="theme_common.s_masonry_block" t-thumbnail="/theme_graphene/static/src/img/ui/s_masonry_block.jpg"/>
</xpath>
<xpath expr="//div[@id='snippet_feature']/div[hasclass('o_panel_body')]/t" position="before">
<t t-snippet="theme_common.s_media_block" t-thumbnail="/theme_graphene/static/src/img/ui/s_media_block-thumb.jpg"/>
<t t-snippet="theme_common.s_showcase_slider" t-thumbnail="/theme_graphene/static/src/img/ui/s_showcase_slider.jpg"/>
</xpath>
</template>
</odoo>