harmony 鸿蒙Theme Configuration

2022-12-13 浏览 (712)

Theme Configuration

To configure the theme for a service widget, use the attribute described below.

NameDescription
app_backgroundBackground 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"
  }
}

你可能感兴趣的鸿蒙文章

harmony 鸿蒙JS Service Widget UI Components

harmony 鸿蒙Data Types

harmony 鸿蒙button

harmony 鸿蒙calendar

harmony 鸿蒙chart

harmony 鸿蒙clock

harmony 鸿蒙divider

harmony 鸿蒙image

harmony 鸿蒙input

harmony 鸿蒙progress

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/449a83f8f77d4fdea9116b387e94fb19