Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
9ff66caf
U
uni-app
项目概览
DCloud
/
uni-app
6 个月 前同步成功
通知
751
Star
38709
Fork
3642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
8
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
8
Issue
8
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
9ff66caf
编写于
7月 10, 2023
作者:
D
DCloud_LXH
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: onThemeChange
上级
2a758a03
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
3 addition
and
3 deletion
+3
-3
packages/uni-h5/dist/index.css
packages/uni-h5/dist/index.css
+1
-1
packages/uni-h5/dist/index.dark.css
packages/uni-h5/dist/index.dark.css
+1
-1
src/platforms/h5/components/app/index.vue
src/platforms/h5/components/app/index.vue
+1
-1
未找到文件。
packages/uni-h5/dist/index.css
浏览文件 @
9ff66caf
此差异已折叠。
点击以展开。
packages/uni-h5/dist/index.dark.css
浏览文件 @
9ff66caf
@media
(
prefers-color-scheme
:
dark
){
uni-button
,
uni-button
[
type
=
'default'
]
{
color
:
#d6d6d6
;
background-color
:
#343434
}
.button-hover
,
.button-hover
[
type
=
'default'
]
{
color
:
#d6d6d6
;
background-color
:
rgba
(
255
,
255
,
255
,
0.1
)}
uni-button
[
disabled
][
type
=
'default'
],
uni-button
[
disabled
]
:not
([
type
])
{
color
:
rgba
(
255
,
255
,
255
,
0.2
);
background-color
:
rgba
(
255
,
255
,
255
,
0.08
)}
uni-button
[
type
=
'primary'
][
plain
][
disabled
]
{
color
:
rgba
(
255
,
255
,
255
,
0.2
);
border-color
:
rgba
(
255
,
255
,
255
,
0.2
)}
uni-button
[
type
=
'default'
][
plain
]
{
color
:
#d6d6d6
;
border
:
1px
solid
#d6d6d6
}
.button-hover
[
type
=
'default'
][
plain
]
{
color
:
rgba
(
150
,
150
,
150
,
0.6
);
border-color
:
rgba
(
150
,
150
,
150
,
0.6
);
background-color
:
rgba
(
50
,
50
,
50
,
0.2
)}
uni-button
[
type
=
'default'
][
plain
][
disabled
]
{
border-color
:
hsla
(
0
,
0%
,
100%
,
0.2
);
color
:
hsla
(
0
,
0%
,
100%
,
0.2
)}}
@media
(
prefers-color-scheme
:
dark
){
.uni-picker-view-indicator
:before
{
border-top-color
:
var
(
--UI-FG-3
)}
.uni-picker-view-indicator
:after
{
border-bottom-color
:
var
(
--UI-FG-3
)}
.uni-picker-view-mask
{
background-image
:
-webkit-linear-gradient
(
top
,
rgba
(
35
,
35
,
35
,
0.95
),
rgba
(
35
,
35
,
35
,
0.6
)),
-webkit-linear-gradient
(
bottom
,
rgba
(
35
,
35
,
35
,
0.95
),
rgba
(
35
,
35
,
35
,
0.6
));
background-image
:
linear-gradient
(
180deg
,
rgba
(
35
,
35
,
35
,
0.95
),
rgba
(
35
,
35
,
35
,
0.6
)),
linear-gradient
(
0
,
rgba
(
35
,
35
,
35
,
0.95
),
rgba
(
35
,
35
,
35
,
0.6
))}}
@media
(
prefers-color-scheme
:
dark
){
uni-switch
.uni-switch-input
{
border-color
:
#3b3b3f
}
uni-switch
.uni-switch-input
,
uni-switch
.uni-switch-input
:before
{
background-color
:
#3b3b3f
}
uni-switch
.uni-switch-input
:after
{
background-color
:
#fff
;
box-shadow
:
0
1px
3px
rgba
(
0
,
0
,
0
,
0.4
)}
uni-switch
.uni-checkbox-input
{
background-color
:
#2c2c2c
;
border
:
1px
solid
#656565
}}
@media
(
prefers-color-scheme
:
dark
){
html
{
--UI-BG-CLOLOR-ACTIVE
:
#373737
;
--UI-BORDER-CLOLOR-1
:
#373737
;
--UI-BG
:
#000
;
--UI-BG-0
:
#191919
;
--UI-BG-1
:
#1f1f1f
;
--UI-BG-2
:
#232323
;
--UI-BG-3
:
#2f2f2f
;
--UI-BG-4
:
#606060
;
--UI-BG-5
:
#2c2c2c
;
--UI-FG
:
#fff
;
--UI-FG-0
:
hsla
(
0
,
0%
,
100%
,
0.8
);
--UI-FG-HALF
:
hsla
(
0
,
0%
,
100%
,
0.6
);
--UI-FG-1
:
hsla
(
0
,
0%
,
100%
,
0.5
);
--UI-FG-2
:
hsla
(
0
,
0%
,
100%
,
0.3
);
--UI-FG-3
:
hsla
(
0
,
0%
,
100%
,
0.05
)}
.uni-mask
{
background
:
rgba
(
0
,
0
,
0
,
.6
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-actionsheet
.uni-actionsheet__title
{
background-color
:
var
(
--UI-BG-1
);
border-bottom-color
:
var
(
--UI-BORDER-CLOLOR-1
)}
uni-actionsheet
.uni-actionsheet__action
,
uni-actionsheet
.uni-actionsheet__menu
{
background-color
:
var
(
--UI-BG-2
)}
uni-actionsheet
.uni-actionsheet__cell
:active
{
background-color
:
var
(
--UI-BG-CLOLOR-ACTIVE
)}
uni-actionsheet
.uni-actionsheet__cell
:before
{
border-top-color
:
var
(
--UI-BORDER-CLOLOR-1
);
color
:
var
(
--UI-BORDER-CLOLOR-1
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-modal
.uni-modal
{
color
:
var
(
--UI-FG-0
);
background-color
:
var
(
--UI-BG-2
)}
uni-modal
.uni-modal__bd
{
color
:
var
(
--UI-FG-1
)}
uni-modal
.uni-modal__btn
:active
{
color
:
#aaa
;
background-color
:
var
(
--UI-BG-CLOLOR-ACTIVE
)}
uni-modal
.uni-modal__ft
:after
,
uni-modal
.uni-modal__btn
:after
{
color
:
var
(
--UI-BORDER-CLOLOR-1
);
border-color
:
var
(
--UI-BORDER-CLOLOR-1
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-toast
.uni-toast
{
background-color
:
#606060
;
color
:
var
(
--UI-FG-0
)}
uni-toast
.uni-icon_toast.uni-icon-error
:before
,
uni-toast
.uni-icon_toast.uni-icon-success-no-circle
:before
{
color
:
rgba
(
255
,
255
,
255
,
0.9
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-page-body
{
background-color
:
#191919
;
color
:
hsla
(
0
,
0%
,
100%
,
0.8
)}}
@media
(
prefers-color-scheme
:
dark
){
.uni-picker-container
.uni-picker-content
{
background-color
:
var
(
--UI-BG-2
)}
.uni-picker-container
.uni-picker-action.uni-picker-action-cancel
{
color
:
var
(
--UI-FG-0
)}
.uni-picker-container
.uni-picker-custom
{
background-color
:
var
(
--UI-BG-2
)}
.uni-selector-select
.uni-picker-item
{
color
:
var
(
--UI-FG-0
)}
.uni-picker-container
.uni-picker-header
:after
{
border-bottom-color
:
var
(
--UI-FG-3
)}}
\ No newline at end of file
@media
(
prefers-color-scheme
:
dark
){
uni-button
,
uni-button
[
type
=
'default'
]
{
color
:
#d6d6d6
;
background-color
:
#343434
}
.button-hover
,
.button-hover
[
type
=
'default'
]
{
color
:
#d6d6d6
;
background-color
:
rgba
(
255
,
255
,
255
,
0.1
)}
uni-button
[
disabled
][
type
=
'default'
],
uni-button
[
disabled
]
:not
([
type
])
{
color
:
rgba
(
255
,
255
,
255
,
0.2
);
background-color
:
rgba
(
255
,
255
,
255
,
0.08
)}
uni-button
[
type
=
'primary'
][
plain
][
disabled
]
{
color
:
rgba
(
255
,
255
,
255
,
0.2
);
border-color
:
rgba
(
255
,
255
,
255
,
0.2
)}
uni-button
[
type
=
'default'
][
plain
]
{
color
:
#d6d6d6
;
border
:
1px
solid
#d6d6d6
}
.button-hover
[
type
=
'default'
][
plain
]
{
color
:
rgba
(
150
,
150
,
150
,
0.6
);
border-color
:
rgba
(
150
,
150
,
150
,
0.6
);
background-color
:
rgba
(
50
,
50
,
50
,
0.2
)}
uni-button
[
type
=
'default'
][
plain
][
disabled
]
{
border-color
:
hsla
(
0
,
0%
,
100%
,
0.2
);
color
:
hsla
(
0
,
0%
,
100%
,
0.2
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-button
,
uni-button
[
type
=
'default'
]
{
color
:
#d6d6d6
;
background-color
:
#343434
}
.button-hover
,
.button-hover
[
type
=
'default'
]
{
color
:
#d6d6d6
;
background-color
:
rgba
(
255
,
255
,
255
,
0.1
)}
uni-button
[
disabled
][
type
=
'default'
],
uni-button
[
disabled
]
:not
([
type
])
{
color
:
rgba
(
255
,
255
,
255
,
0.2
);
background-color
:
rgba
(
255
,
255
,
255
,
0.08
)}
uni-button
[
type
=
'primary'
][
plain
][
disabled
]
{
color
:
rgba
(
255
,
255
,
255
,
0.2
);
border-color
:
rgba
(
255
,
255
,
255
,
0.2
)}
uni-button
[
type
=
'default'
][
plain
]
{
color
:
#d6d6d6
;
border
:
1px
solid
#d6d6d6
}
.button-hover
[
type
=
'default'
][
plain
]
{
color
:
rgba
(
150
,
150
,
150
,
0.6
);
border-color
:
rgba
(
150
,
150
,
150
,
0.6
);
background-color
:
rgba
(
50
,
50
,
50
,
0.2
)}
uni-button
[
type
=
'default'
][
plain
][
disabled
]
{
border-color
:
hsla
(
0
,
0%
,
100%
,
0.2
);
color
:
hsla
(
0
,
0%
,
100%
,
0.2
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-button
,
uni-button
[
type
=
'default'
]
{
color
:
#d6d6d6
;
background-color
:
#343434
}
.button-hover
,
.button-hover
[
type
=
'default'
]
{
color
:
#d6d6d6
;
background-color
:
rgba
(
255
,
255
,
255
,
0.1
)}
uni-button
[
disabled
][
type
=
'default'
],
uni-button
[
disabled
]
:not
([
type
])
{
color
:
rgba
(
255
,
255
,
255
,
0.2
);
background-color
:
rgba
(
255
,
255
,
255
,
0.08
)}
uni-button
[
type
=
'primary'
][
plain
][
disabled
]
{
color
:
rgba
(
255
,
255
,
255
,
0.2
);
border-color
:
rgba
(
255
,
255
,
255
,
0.2
)}
uni-button
[
type
=
'default'
][
plain
]
{
color
:
#d6d6d6
;
border
:
1px
solid
#d6d6d6
}
.button-hover
[
type
=
'default'
][
plain
]
{
color
:
rgba
(
150
,
150
,
150
,
0.6
);
border-color
:
rgba
(
150
,
150
,
150
,
0.6
);
background-color
:
rgba
(
50
,
50
,
50
,
0.2
)}
uni-button
[
type
=
'default'
][
plain
][
disabled
]
{
border-color
:
hsla
(
0
,
0%
,
100%
,
0.2
);
color
:
hsla
(
0
,
0%
,
100%
,
0.2
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-button
,
uni-button
[
type
=
'default'
]
{
color
:
#d6d6d6
;
background-color
:
#343434
}
.button-hover
,
.button-hover
[
type
=
'default'
]
{
color
:
#d6d6d6
;
background-color
:
rgba
(
255
,
255
,
255
,
0.1
)}
uni-button
[
disabled
][
type
=
'default'
],
uni-button
[
disabled
]
:not
([
type
])
{
color
:
rgba
(
255
,
255
,
255
,
0.2
);
background-color
:
rgba
(
255
,
255
,
255
,
0.08
)}
uni-button
[
type
=
'primary'
][
plain
][
disabled
]
{
color
:
rgba
(
255
,
255
,
255
,
0.2
);
border-color
:
rgba
(
255
,
255
,
255
,
0.2
)}
uni-button
[
type
=
'default'
][
plain
]
{
color
:
#d6d6d6
;
border
:
1px
solid
#d6d6d6
}
.button-hover
[
type
=
'default'
][
plain
]
{
color
:
rgba
(
150
,
150
,
150
,
0.6
);
border-color
:
rgba
(
150
,
150
,
150
,
0.6
);
background-color
:
rgba
(
50
,
50
,
50
,
0.2
)}
uni-button
[
type
=
'default'
][
plain
][
disabled
]
{
border-color
:
hsla
(
0
,
0%
,
100%
,
0.2
);
color
:
hsla
(
0
,
0%
,
100%
,
0.2
)}}
@media
(
prefers-color-scheme
:
dark
){
.uni-picker-view-indicator
:before
{
border-top-color
:
var
(
--UI-FG-3
)}
.uni-picker-view-indicator
:after
{
border-bottom-color
:
var
(
--UI-FG-3
)}
.uni-picker-view-mask
{
background-image
:
-webkit-linear-gradient
(
top
,
rgba
(
35
,
35
,
35
,
0.95
),
rgba
(
35
,
35
,
35
,
0.6
)),
-webkit-linear-gradient
(
bottom
,
rgba
(
35
,
35
,
35
,
0.95
),
rgba
(
35
,
35
,
35
,
0.6
));
background-image
:
linear-gradient
(
180deg
,
rgba
(
35
,
35
,
35
,
0.95
),
rgba
(
35
,
35
,
35
,
0.6
)),
linear-gradient
(
0
,
rgba
(
35
,
35
,
35
,
0.95
),
rgba
(
35
,
35
,
35
,
0.6
))}}
@media
(
prefers-color-scheme
:
dark
){
.uni-picker-view-indicator
:before
{
border-top-color
:
var
(
--UI-FG-3
)}
.uni-picker-view-indicator
:after
{
border-bottom-color
:
var
(
--UI-FG-3
)}
.uni-picker-view-mask
{
background-image
:
-webkit-linear-gradient
(
top
,
rgba
(
35
,
35
,
35
,
0.95
),
rgba
(
35
,
35
,
35
,
0.6
)),
-webkit-linear-gradient
(
bottom
,
rgba
(
35
,
35
,
35
,
0.95
),
rgba
(
35
,
35
,
35
,
0.6
));
background-image
:
linear-gradient
(
180deg
,
rgba
(
35
,
35
,
35
,
0.95
),
rgba
(
35
,
35
,
35
,
0.6
)),
linear-gradient
(
0
,
rgba
(
35
,
35
,
35
,
0.95
),
rgba
(
35
,
35
,
35
,
0.6
))}}
@media
(
prefers-color-scheme
:
dark
){
.uni-picker-view-indicator
:before
{
border-top-color
:
var
(
--UI-FG-3
)}
.uni-picker-view-indicator
:after
{
border-bottom-color
:
var
(
--UI-FG-3
)}
.uni-picker-view-mask
{
background-image
:
-webkit-linear-gradient
(
top
,
rgba
(
35
,
35
,
35
,
0.95
),
rgba
(
35
,
35
,
35
,
0.6
)),
-webkit-linear-gradient
(
bottom
,
rgba
(
35
,
35
,
35
,
0.95
),
rgba
(
35
,
35
,
35
,
0.6
));
background-image
:
linear-gradient
(
180deg
,
rgba
(
35
,
35
,
35
,
0.95
),
rgba
(
35
,
35
,
35
,
0.6
)),
linear-gradient
(
0
,
rgba
(
35
,
35
,
35
,
0.95
),
rgba
(
35
,
35
,
35
,
0.6
))}}
@media
(
prefers-color-scheme
:
dark
){
.uni-picker-view-indicator
:before
{
border-top-color
:
var
(
--UI-FG-3
)}
.uni-picker-view-indicator
:after
{
border-bottom-color
:
var
(
--UI-FG-3
)}
.uni-picker-view-mask
{
background-image
:
-webkit-linear-gradient
(
top
,
rgba
(
35
,
35
,
35
,
0.95
),
rgba
(
35
,
35
,
35
,
0.6
)),
-webkit-linear-gradient
(
bottom
,
rgba
(
35
,
35
,
35
,
0.95
),
rgba
(
35
,
35
,
35
,
0.6
));
background-image
:
linear-gradient
(
180deg
,
rgba
(
35
,
35
,
35
,
0.95
),
rgba
(
35
,
35
,
35
,
0.6
)),
linear-gradient
(
0
,
rgba
(
35
,
35
,
35
,
0.95
),
rgba
(
35
,
35
,
35
,
0.6
))}}
@media
(
prefers-color-scheme
:
dark
){
uni-switch
.uni-switch-input
{
border-color
:
#3b3b3f
}
uni-switch
.uni-switch-input
,
uni-switch
.uni-switch-input
:before
{
background-color
:
#3b3b3f
}
uni-switch
.uni-switch-input
:after
{
background-color
:
#fff
;
box-shadow
:
0
1px
3px
rgba
(
0
,
0
,
0
,
0.4
)}
uni-switch
.uni-checkbox-input
{
background-color
:
#2c2c2c
;
border
:
1px
solid
#656565
}}
@media
(
prefers-color-scheme
:
dark
){
uni-switch
.uni-switch-input
{
border-color
:
#3b3b3f
}
uni-switch
.uni-switch-input
,
uni-switch
.uni-switch-input
:before
{
background-color
:
#3b3b3f
}
uni-switch
.uni-switch-input
:after
{
background-color
:
#fff
;
box-shadow
:
0
1px
3px
rgba
(
0
,
0
,
0
,
0.4
)}
uni-switch
.uni-checkbox-input
{
background-color
:
#2c2c2c
;
border
:
1px
solid
#656565
}}
@media
(
prefers-color-scheme
:
dark
){
uni-switch
.uni-switch-input
{
border-color
:
#3b3b3f
}
uni-switch
.uni-switch-input
,
uni-switch
.uni-switch-input
:before
{
background-color
:
#3b3b3f
}
uni-switch
.uni-switch-input
:after
{
background-color
:
#fff
;
box-shadow
:
0
1px
3px
rgba
(
0
,
0
,
0
,
0.4
)}
uni-switch
.uni-checkbox-input
{
background-color
:
#2c2c2c
;
border
:
1px
solid
#656565
}}
@media
(
prefers-color-scheme
:
dark
){
uni-switch
.uni-switch-input
{
border-color
:
#3b3b3f
}
uni-switch
.uni-switch-input
,
uni-switch
.uni-switch-input
:before
{
background-color
:
#3b3b3f
}
uni-switch
.uni-switch-input
:after
{
background-color
:
#fff
;
box-shadow
:
0
1px
3px
rgba
(
0
,
0
,
0
,
0.4
)}
uni-switch
.uni-checkbox-input
{
background-color
:
#2c2c2c
;
border
:
1px
solid
#656565
}}
@media
(
prefers-color-scheme
:
dark
){
html
{
--UI-BG-CLOLOR-ACTIVE
:
#373737
;
--UI-BORDER-CLOLOR-1
:
#373737
;
--UI-BG
:
#000
;
--UI-BG-0
:
#191919
;
--UI-BG-1
:
#1f1f1f
;
--UI-BG-2
:
#232323
;
--UI-BG-3
:
#2f2f2f
;
--UI-BG-4
:
#606060
;
--UI-BG-5
:
#2c2c2c
;
--UI-FG
:
#fff
;
--UI-FG-0
:
hsla
(
0
,
0%
,
100%
,
0.8
);
--UI-FG-HALF
:
hsla
(
0
,
0%
,
100%
,
0.6
);
--UI-FG-1
:
hsla
(
0
,
0%
,
100%
,
0.5
);
--UI-FG-2
:
hsla
(
0
,
0%
,
100%
,
0.3
);
--UI-FG-3
:
hsla
(
0
,
0%
,
100%
,
0.05
)}
.uni-mask
{
background
:
rgba
(
0
,
0
,
0
,
.6
)}}
@media
(
prefers-color-scheme
:
dark
){
html
{
--UI-BG-CLOLOR-ACTIVE
:
#373737
;
--UI-BORDER-CLOLOR-1
:
#373737
;
--UI-BG
:
#000
;
--UI-BG-0
:
#191919
;
--UI-BG-1
:
#1f1f1f
;
--UI-BG-2
:
#232323
;
--UI-BG-3
:
#2f2f2f
;
--UI-BG-4
:
#606060
;
--UI-BG-5
:
#2c2c2c
;
--UI-FG
:
#fff
;
--UI-FG-0
:
hsla
(
0
,
0%
,
100%
,
0.8
);
--UI-FG-HALF
:
hsla
(
0
,
0%
,
100%
,
0.6
);
--UI-FG-1
:
hsla
(
0
,
0%
,
100%
,
0.5
);
--UI-FG-2
:
hsla
(
0
,
0%
,
100%
,
0.3
);
--UI-FG-3
:
hsla
(
0
,
0%
,
100%
,
0.05
)}
.uni-mask
{
background
:
rgba
(
0
,
0
,
0
,
.6
)}}
@media
(
prefers-color-scheme
:
dark
){
html
{
--UI-BG-CLOLOR-ACTIVE
:
#373737
;
--UI-BORDER-CLOLOR-1
:
#373737
;
--UI-BG
:
#000
;
--UI-BG-0
:
#191919
;
--UI-BG-1
:
#1f1f1f
;
--UI-BG-2
:
#232323
;
--UI-BG-3
:
#2f2f2f
;
--UI-BG-4
:
#606060
;
--UI-BG-5
:
#2c2c2c
;
--UI-FG
:
#fff
;
--UI-FG-0
:
hsla
(
0
,
0%
,
100%
,
0.8
);
--UI-FG-HALF
:
hsla
(
0
,
0%
,
100%
,
0.6
);
--UI-FG-1
:
hsla
(
0
,
0%
,
100%
,
0.5
);
--UI-FG-2
:
hsla
(
0
,
0%
,
100%
,
0.3
);
--UI-FG-3
:
hsla
(
0
,
0%
,
100%
,
0.05
)}
.uni-mask
{
background
:
rgba
(
0
,
0
,
0
,
.6
)}}
@media
(
prefers-color-scheme
:
dark
){
html
{
--UI-BG-CLOLOR-ACTIVE
:
#373737
;
--UI-BORDER-CLOLOR-1
:
#373737
;
--UI-BG
:
#000
;
--UI-BG-0
:
#191919
;
--UI-BG-1
:
#1f1f1f
;
--UI-BG-2
:
#232323
;
--UI-BG-3
:
#2f2f2f
;
--UI-BG-4
:
#606060
;
--UI-BG-5
:
#2c2c2c
;
--UI-FG
:
#fff
;
--UI-FG-0
:
hsla
(
0
,
0%
,
100%
,
0.8
);
--UI-FG-HALF
:
hsla
(
0
,
0%
,
100%
,
0.6
);
--UI-FG-1
:
hsla
(
0
,
0%
,
100%
,
0.5
);
--UI-FG-2
:
hsla
(
0
,
0%
,
100%
,
0.3
);
--UI-FG-3
:
hsla
(
0
,
0%
,
100%
,
0.05
)}
.uni-mask
{
background
:
rgba
(
0
,
0
,
0
,
.6
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-actionsheet
.uni-actionsheet__title
{
background-color
:
var
(
--UI-BG-1
);
border-bottom-color
:
var
(
--UI-BORDER-CLOLOR-1
)}
uni-actionsheet
.uni-actionsheet__action
,
uni-actionsheet
.uni-actionsheet__menu
{
background-color
:
var
(
--UI-BG-2
)}
uni-actionsheet
.uni-actionsheet__cell
:active
{
background-color
:
var
(
--UI-BG-CLOLOR-ACTIVE
)}
uni-actionsheet
.uni-actionsheet__cell
:before
{
border-top-color
:
var
(
--UI-BORDER-CLOLOR-1
);
color
:
var
(
--UI-BORDER-CLOLOR-1
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-actionsheet
.uni-actionsheet__title
{
background-color
:
var
(
--UI-BG-1
);
border-bottom-color
:
var
(
--UI-BORDER-CLOLOR-1
)}
uni-actionsheet
.uni-actionsheet__action
,
uni-actionsheet
.uni-actionsheet__menu
{
background-color
:
var
(
--UI-BG-2
)}
uni-actionsheet
.uni-actionsheet__cell
:active
{
background-color
:
var
(
--UI-BG-CLOLOR-ACTIVE
)}
uni-actionsheet
.uni-actionsheet__cell
:before
{
border-top-color
:
var
(
--UI-BORDER-CLOLOR-1
);
color
:
var
(
--UI-BORDER-CLOLOR-1
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-actionsheet
.uni-actionsheet__title
{
background-color
:
var
(
--UI-BG-1
);
border-bottom-color
:
var
(
--UI-BORDER-CLOLOR-1
)}
uni-actionsheet
.uni-actionsheet__action
,
uni-actionsheet
.uni-actionsheet__menu
{
background-color
:
var
(
--UI-BG-2
)}
uni-actionsheet
.uni-actionsheet__cell
:active
{
background-color
:
var
(
--UI-BG-CLOLOR-ACTIVE
)}
uni-actionsheet
.uni-actionsheet__cell
:before
{
border-top-color
:
var
(
--UI-BORDER-CLOLOR-1
);
color
:
var
(
--UI-BORDER-CLOLOR-1
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-actionsheet
.uni-actionsheet__title
{
background-color
:
var
(
--UI-BG-1
);
border-bottom-color
:
var
(
--UI-BORDER-CLOLOR-1
)}
uni-actionsheet
.uni-actionsheet__action
,
uni-actionsheet
.uni-actionsheet__menu
{
background-color
:
var
(
--UI-BG-2
)}
uni-actionsheet
.uni-actionsheet__cell
:active
{
background-color
:
var
(
--UI-BG-CLOLOR-ACTIVE
)}
uni-actionsheet
.uni-actionsheet__cell
:before
{
border-top-color
:
var
(
--UI-BORDER-CLOLOR-1
);
color
:
var
(
--UI-BORDER-CLOLOR-1
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-modal
.uni-modal
{
color
:
var
(
--UI-FG-0
);
background-color
:
var
(
--UI-BG-2
)}
uni-modal
.uni-modal__bd
{
color
:
var
(
--UI-FG-1
)}
uni-modal
.uni-modal__btn
:active
{
color
:
#aaa
;
background-color
:
var
(
--UI-BG-CLOLOR-ACTIVE
)}
uni-modal
.uni-modal__ft
:after
,
uni-modal
.uni-modal__btn
:after
{
color
:
var
(
--UI-BORDER-CLOLOR-1
);
border-color
:
var
(
--UI-BORDER-CLOLOR-1
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-modal
.uni-modal
{
color
:
var
(
--UI-FG-0
);
background-color
:
var
(
--UI-BG-2
)}
uni-modal
.uni-modal__bd
{
color
:
var
(
--UI-FG-1
)}
uni-modal
.uni-modal__btn
:active
{
color
:
#aaa
;
background-color
:
var
(
--UI-BG-CLOLOR-ACTIVE
)}
uni-modal
.uni-modal__ft
:after
,
uni-modal
.uni-modal__btn
:after
{
color
:
var
(
--UI-BORDER-CLOLOR-1
);
border-color
:
var
(
--UI-BORDER-CLOLOR-1
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-modal
.uni-modal
{
color
:
var
(
--UI-FG-0
);
background-color
:
var
(
--UI-BG-2
)}
uni-modal
.uni-modal__bd
{
color
:
var
(
--UI-FG-1
)}
uni-modal
.uni-modal__btn
:active
{
color
:
#aaa
;
background-color
:
var
(
--UI-BG-CLOLOR-ACTIVE
)}
uni-modal
.uni-modal__ft
:after
,
uni-modal
.uni-modal__btn
:after
{
color
:
var
(
--UI-BORDER-CLOLOR-1
);
border-color
:
var
(
--UI-BORDER-CLOLOR-1
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-modal
.uni-modal
{
color
:
var
(
--UI-FG-0
);
background-color
:
var
(
--UI-BG-2
)}
uni-modal
.uni-modal__bd
{
color
:
var
(
--UI-FG-1
)}
uni-modal
.uni-modal__btn
:active
{
color
:
#aaa
;
background-color
:
var
(
--UI-BG-CLOLOR-ACTIVE
)}
uni-modal
.uni-modal__ft
:after
,
uni-modal
.uni-modal__btn
:after
{
color
:
var
(
--UI-BORDER-CLOLOR-1
);
border-color
:
var
(
--UI-BORDER-CLOLOR-1
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-toast
.uni-toast
{
background-color
:
#606060
;
color
:
var
(
--UI-FG-0
)}
uni-toast
.uni-icon_toast.uni-icon-error
:before
,
uni-toast
.uni-icon_toast.uni-icon-success-no-circle
:before
{
color
:
rgba
(
255
,
255
,
255
,
0.9
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-toast
.uni-toast
{
background-color
:
#606060
;
color
:
var
(
--UI-FG-0
)}
uni-toast
.uni-icon_toast.uni-icon-error
:before
,
uni-toast
.uni-icon_toast.uni-icon-success-no-circle
:before
{
color
:
rgba
(
255
,
255
,
255
,
0.9
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-toast
.uni-toast
{
background-color
:
#606060
;
color
:
var
(
--UI-FG-0
)}
uni-toast
.uni-icon_toast.uni-icon-error
:before
,
uni-toast
.uni-icon_toast.uni-icon-success-no-circle
:before
{
color
:
rgba
(
255
,
255
,
255
,
0.9
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-toast
.uni-toast
{
background-color
:
#606060
;
color
:
var
(
--UI-FG-0
)}
uni-toast
.uni-icon_toast.uni-icon-error
:before
,
uni-toast
.uni-icon_toast.uni-icon-success-no-circle
:before
{
color
:
rgba
(
255
,
255
,
255
,
0.9
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-page-body
{
background-color
:
#191919
;
color
:
hsla
(
0
,
0%
,
100%
,
0.8
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-page-body
{
background-color
:
#191919
;
color
:
hsla
(
0
,
0%
,
100%
,
0.8
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-page-body
{
background-color
:
#191919
;
color
:
hsla
(
0
,
0%
,
100%
,
0.8
)}}
@media
(
prefers-color-scheme
:
dark
){
uni-page-body
{
background-color
:
#191919
;
color
:
hsla
(
0
,
0%
,
100%
,
0.8
)}}
@media
(
prefers-color-scheme
:
dark
){
.uni-picker-container
.uni-picker-content
{
background-color
:
var
(
--UI-BG-2
)}
.uni-picker-container
.uni-picker-action.uni-picker-action-cancel
{
color
:
var
(
--UI-FG-0
)}
.uni-picker-container
.uni-picker-custom
{
background-color
:
var
(
--UI-BG-2
)}
.uni-selector-select
.uni-picker-item
{
color
:
var
(
--UI-FG-0
)}
.uni-picker-container
.uni-picker-header
:after
{
border-bottom-color
:
var
(
--UI-FG-3
)}}
@media
(
prefers-color-scheme
:
dark
){
.uni-picker-container
.uni-picker-content
{
background-color
:
var
(
--UI-BG-2
)}
.uni-picker-container
.uni-picker-action.uni-picker-action-cancel
{
color
:
var
(
--UI-FG-0
)}
.uni-picker-container
.uni-picker-custom
{
background-color
:
var
(
--UI-BG-2
)}
.uni-selector-select
.uni-picker-item
{
color
:
var
(
--UI-FG-0
)}
.uni-picker-container
.uni-picker-header
:after
{
border-bottom-color
:
var
(
--UI-FG-3
)}}
@media
(
prefers-color-scheme
:
dark
){
.uni-picker-container
.uni-picker-content
{
background-color
:
var
(
--UI-BG-2
)}
.uni-picker-container
.uni-picker-action.uni-picker-action-cancel
{
color
:
var
(
--UI-FG-0
)}
.uni-picker-container
.uni-picker-custom
{
background-color
:
var
(
--UI-BG-2
)}
.uni-selector-select
.uni-picker-item
{
color
:
var
(
--UI-FG-0
)}
.uni-picker-container
.uni-picker-header
:after
{
border-bottom-color
:
var
(
--UI-FG-3
)}}
@media
(
prefers-color-scheme
:
dark
){
.uni-picker-container
.uni-picker-content
{
background-color
:
var
(
--UI-BG-2
)}
.uni-picker-container
.uni-picker-action.uni-picker-action-cancel
{
color
:
var
(
--UI-FG-0
)}
.uni-picker-container
.uni-picker-custom
{
background-color
:
var
(
--UI-BG-2
)}
.uni-selector-select
.uni-picker-item
{
color
:
var
(
--UI-FG-0
)}
.uni-picker-container
.uni-picker-header
:after
{
border-bottom-color
:
var
(
--UI-FG-3
)}}
\ No newline at end of file
src/platforms/h5/components/app/index.vue
浏览文件 @
9ff66caf
...
...
@@ -69,7 +69,7 @@ function onThemeChange () {
if
(
mediaQueryList
)
{
const
callback
=
(
e
)
=>
{
UniServiceJSBridge
.
emit
(
ON_THEME_CHANGE
,
{
UniServiceJSBridge
.
emit
(
'
api.
'
+
ON_THEME_CHANGE
,
{
theme
:
e
.
matches
?
'
dark
'
:
'
light
'
})
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录