harmony 鸿蒙Theme Configuration
Theme Configuration
To configure the theme for a service widget, use the attribute described below.
Name | Description |
---|---|
app_background | Background color of the widget. |
To configure the theme, create the resources folder at the same level as pages in the widget folder and set the above attribute in the widget/resources/styles/default.json file. For example, to configure the default theme of a widget to light gray:
{
"style": {
"app_background": "#dcdcdc"
}
}
你可能感兴趣的鸿蒙文章
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦