Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
unidocs-zh
提交
2dbdcd8a
unidocs-zh
项目概览
DCloud
/
unidocs-zh
通知
3000
Star
102
Fork
757
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
84
列表
看板
标记
里程碑
合并请求
58
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
unidocs-zh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
84
Issue
84
列表
看板
标记
里程碑
合并请求
58
合并请求
58
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2dbdcd8a
编写于
11月 14, 2022
作者:
D
DCloud_LXH
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: darkmode.md
上级
ab463cb5
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
13 addition
and
13 deletion
+13
-13
docs/tutorial/darkmode.md
docs/tutorial/darkmode.md
+13
-13
未找到文件。
docs/tutorial/darkmode.md
浏览文件 @
2dbdcd8a
...
...
@@ -23,13 +23,11 @@
"themeLocation"
:
"theme.json"
//
如果
theme.json
在根目录可省略
}
```
6.
需要云端打包生效
#### iOS 安全区域适配
-
开启安全区域占位
> 在 manifest.json 文件的"plus" 节点下添加 "safearea" 适配 iOS 的安全区域,"background" 对应正常模式下安全区域外的背景颜色,"backgroundDark"对应暗黑模式下安全区域外的背景颜色
> 在 manifest.json 文件的
"plus" 节点下添加 "safearea" 适配 iOS 的安全区域,"background" 对应正常模式下安全区域外的背景颜色,"backgroundDark"对应暗黑模式下安全区域外的背景颜色
```json
"plus" : {
...
...
@@ -54,7 +52,9 @@
}
```
**注意:iOS 13+、Android 10+设备上才支持**
**注意:**
-
`iOS 13+`
、
`Android 10+`
设备上才支持
-
需要云端打包生效
### h5
...
...
@@ -137,7 +137,7 @@
```
json
//
全局配置
{
"
window
"
:
{
"
globalStyle
"
:
{
"navigationBarBackgroundColor"
:
"@navBgColor"
,
"navigationBarTextStyle"
:
"@navTxtStyle"
}
...
...
@@ -202,10 +202,10 @@ theme.json
"tabSelectedColor"
:
"#3cc51f"
,
"tabBgColor"
:
"#ffffff"
,
"tabBorderStyle"
:
"black"
,
"iconPath1"
:
"
image
/icon1_light.png"
,
"selectedIconPath1"
:
"
image
/selected_icon1_light.png"
,
"iconPath2"
:
"
image
/icon2_light.png"
,
"selectedIconPath2"
:
"
image
/selected_icon2_light.png"
"iconPath1"
:
"
/static
/icon1_light.png"
,
"selectedIconPath1"
:
"
/static
/selected_icon1_light.png"
,
"iconPath2"
:
"
/static
/icon2_light.png"
,
"selectedIconPath2"
:
"
/static
/selected_icon2_light.png"
},
"dark"
:
{
"navBgColor"
:
"#292929"
,
...
...
@@ -218,10 +218,10 @@ theme.json
"tabSelectedColor"
:
"#51a937"
,
"tabBgColor"
:
"#292929"
,
"tabBorderStyle"
:
"white"
,
"iconPath1"
:
"
image
/icon1_dark.png"
,
"selectedIconPath1"
:
"
image
/selected_icon1_dark.png"
,
"iconPath2"
:
"
image
/icon2_dark.png"
,
"selectedIconPath2"
:
"
image
/selected_icon2_dark.png"
"iconPath1"
:
"
/static
/icon1_dark.png"
,
"selectedIconPath1"
:
"
/static
/selected_icon1_dark.png"
,
"iconPath2"
:
"
/static
/icon2_dark.png"
,
"selectedIconPath2"
:
"
/static
/selected_icon2_dark.png"
}
}
```
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录