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

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