opt 移动端背景色

This commit is contained in:
ivan deng
2023-04-10 03:17:19 +08:00
parent a7fc55303a
commit 1a098c4e89
3 changed files with 35 additions and 28 deletions

View File

@@ -23,7 +23,7 @@
{ {
'name': 'odoo 16 Customize OEM(Boost, Data reset)', 'name': 'odoo 16 Customize OEM(Boost, Data reset)',
'version': '16.23.04.07', 'version': '16.23.04.10',
'author': 'Sunpop.cn', 'author': 'Sunpop.cn',
'category': 'Productivity', 'category': 'Productivity',
'website': 'https://www.sunpop.cn', 'website': 'https://www.sunpop.cn',

View File

@@ -1,28 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<odoo> <odoo>
<!-- <template id="assets_backend" name="app_odoo_customize assets" inherit_id="web.assets_backend">--> <!-- 处理 title 及 theme-color-->
<!-- <xpath expr="//link[last()]" position="after">--> <template id="app_layout" inherit_id="web.layout" name="app Web layout">
<!-- <link rel="stylesheet" type="text/scss" href="/app_odoo_customize/static/src/scss/app.scss"/>--> <xpath expr="//title" position="replace">
<!-- <link rel="stylesheet" type="text/scss" href="/app_odoo_customize/static/src/scss/ribbon.scss"/>--> <title t-esc="title or 'odooApp'"/>
<!-- <link rel="stylesheet" type="text/scss" href="/app_odoo_customize/static/src/scss/dialog.scss"/>--> </xpath>
<!-- </xpath>--> </template>
<!-- <xpath expr="script[last()]" position="after">--> <!-- end-->
<!-- <script type="text/javascript" src="/app_odoo_customize/static/src/js/app_window_title.js"></script>--> <template id="replace_login" name="Login Layout" inherit_id="web.login_layout">
<!-- <script type="text/javascript" src="/app_odoo_customize/static/src/js/customize_user_menu.js"></script>--> <xpath expr="//a[@target='_blank']" position="replace">
<!-- <script type="text/javascript" src="/app_odoo_customize/static/src/js/ribbon.js"></script>--> <a href="https://www.sunpop.cn" target="_blank">Powered by
<!-- <script type="text/javascript" src="/app_odoo_customize/static/src/js/dialog.js"></script>--> <span>odooApp</span>
<!-- </xpath>--> </a>
<!-- </template>--> </xpath>
</template>
<!-- some odoo version not support, please remove this if you are using odoo9 --> <template id="replace_copyright_name" name="Copyright Name" inherit_id="web.frontend_layout">
<template id="replace_login" name="Login Layout" inherit_id="web.login_layout"> <xpath expr="//span[hasclass('o_footer_copyright_name')]" position="replace">
<xpath expr="//a[@target='_blank']" position="replace"> <span class="o_footer_copyright_name me-2">Copyright &amp;copy;
<a href="https://www.sunpop.cn" target="_blank">Powered by <span>odooApp</span></a> <span t-field="res_company.name" itemprop="name"/>
</xpath> </span>
</template> </xpath>
<template id="replace_copyright_name" name="Copyright Name" inherit_id="web.frontend_layout"> </template>
<xpath expr="//span[hasclass('o_footer_copyright_name')]" position="replace">
<span class="o_footer_copyright_name me-2">Copyright &amp;copy; <span t-field="res_company.name" itemprop="name"/></span>
</xpath>
</template>
</odoo> </odoo>

View File

@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<odoo> <odoo>
<!-- 企业版变色 --> <!-- 企业版变色 -->
<template id="replace_theme_color" name="Replace theme color" inherit_id="web.webclient_bootstrap"> <template id="app_layout" inherit_id="web.layout" name="app Web layout">
<xpath expr="//meta[@name='theme-color']" position="replace"> <xpath expr="//meta[last()]" position="after">
<meta name="theme-color" content="#875A7B"/> <meta name="theme-color" content="#875A7B"/>
<!-- Windows Phone --> <!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#00796B"/> <meta name="msapplication-navbutton-color" content="#00796B"/>
@@ -12,4 +12,15 @@
<meta name="theme-color" content="#242733" media="(prefers-color-scheme: dark)"/> <meta name="theme-color" content="#242733" media="(prefers-color-scheme: dark)"/>
</xpath> </xpath>
</template> </template>
<!-- <template id="replace_theme_color" name="Replace theme color" inherit_id="web.webclient_bootstrap">-->
<!-- <xpath expr="//meta[@name='theme-color']" position="replace">-->
<!-- <meta name="theme-color" content="#875A7B"/>-->
<!-- &lt;!&ndash; Windows Phone &ndash;&gt;-->
<!-- <meta name="msapplication-navbutton-color" content="#00796B"/>-->
<!-- &lt;!&ndash; iOS Safari &ndash;&gt;-->
<!-- <meta name="apple-mobile-web-app-capable" content="yes"/>-->
<!-- <meta name="theme-color" content="#875A7B" media="(prefers-color-scheme: light)"/>-->
<!-- <meta name="theme-color" content="#242733" media="(prefers-color-scheme: dark)"/>-->
<!-- </xpath>-->
<!-- </template>-->
</odoo> </odoo>