提交 65d22726 编写于 作者: D DCloud_LXH

chore: darkmode.md

上级 b8a18991
...@@ -16,21 +16,12 @@ ...@@ -16,21 +16,12 @@
2. 配置 `themeLocation`,指定变量配置文件 `theme.json` 路径,例如:在根目录下新增 `theme.json`,需要配置 `"themeLocation":"theme.json"` 2. 配置 `themeLocation`,指定变量配置文件 `theme.json` 路径,例如:在根目录下新增 `theme.json`,需要配置 `"themeLocation":"theme.json"`
3.`theme.json` 中定义相关变量 3.`theme.json` 中定义相关变量
4.`pages.json` 中以@开头引用变量 4.`pages.json` 中以@开头引用变量
5. 整体配置 5. 需要云端打包生效
6. 整体配置
```json ```json
"app-plus" : { "app-plus" : {
"darkmode" : false, "darkmode" : true,
"themeLocation" : "theme.json", // 开启 darkmode。如果 theme.json 在根目录可省略 "themeLocation" : "theme.json" // 如果 theme.json 在根目录可省略
"distribute" : {
// 安卓端开启跟随系统主题。需要云端打包生效
"android" : {
"defaultNightMode" : "auto"
},
// 安卓端开启跟随系统主题。需要云端打包生效
"ios" : {
"UIUserInterfaceStyle" : "Automatic"
},
}
} }
``` ```
...@@ -45,8 +36,8 @@ ...@@ -45,8 +36,8 @@
5. 整体配置 5. 整体配置
```json ```json
"h5" : { "h5" : {
"darkmode" : false, "darkmode" : true,
"themeLocation" : "theme.json" // 开启 darkmode。如果 theme.json 在根目录可省略 "themeLocation" : "theme.json" // 如果 theme.json 在根目录可省略
} }
``` ```
...@@ -61,8 +52,8 @@ ...@@ -61,8 +52,8 @@
5. 整体配置 5. 整体配置
```json ```json
"mp-weixin" : { "mp-weixin" : {
"darkmode" : false, "darkmode" : true,
"themeLocation" : "theme.json" // 开启 darkmode。如果 theme.json 在根目录可省略 "themeLocation" : "theme.json" // 如果 theme.json 在根目录可省略
} }
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册