Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Dec 26, 2018
1 parent a024cf7 commit cd2fee8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ AWTK的主题按控件进行分类,每种控件可以有多种不同的风格

### 二、主题的属性

#### 基本属性

* bg\_color 背景颜色。
* fg\_color 前景颜色。用途视具体控件而定,如进度条已完成部分的颜色使用前景颜色。
* text\_color 文字的颜色
Expand Down Expand Up @@ -68,6 +70,17 @@ AWTK的主题按控件进行分类,每种控件可以有多种不同的风格
参考: [AWTK中图片的绘制方式](docs/image_draw_type.md)

#### 扩展属性

第三方扩展控件可以扩展控件特有的属性,遵循下列规则即可。

* 名称长度不超过 TK\_NAME\_LEN。
* 字符串格式的值的长度不超过 TK\_NAME\_LEN。
* 名称带有color视为颜色格式的值。
* 名称带有name/image视为字符串格式的值。
* 其它视为整数格式的值。


### 三、编译主题

主题用XML文件编写,然后用themegen生成C常量数据,并加入资源管理器,才能在程序中使用。
Expand Down

0 comments on commit cd2fee8

Please sign in to comment.