mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 03:58:33 +08:00
bugs fix and update docs
This commit is contained in:
parent
04e8d52e59
commit
338e9edcf8
@ -137,6 +137,9 @@ bin\demoui
|
||||
[TODO.md](TODO.md)
|
||||
|
||||
## 最新动态
|
||||
* 2018/06/27
|
||||
* 实现输入法的联想字功能。
|
||||
|
||||
* 2018/06/26
|
||||
* 更新aworks工程并测试。
|
||||
* 增加小工具用于生成输入法联想词库。
|
||||
|
@ -69,7 +69,7 @@ static ret_t edit_on_paint_self(widget_t* widget, canvas_t* c) {
|
||||
wh_t w = widget->w - 2 * margin;
|
||||
color_t trans = color_init(0, 0, 0, 0);
|
||||
color_t tc = style_get_color(style, STYLE_ID_TEXT_COLOR, trans);
|
||||
uint16_t font_size = style_get_int(style, STYLE_ID_FONT_SIZE, 20);
|
||||
uint16_t font_size = style_get_int(style, STYLE_ID_FONT_SIZE, TK_DEFAULT_FONT_SIZE);
|
||||
const char* font_name = style_get_str(style, STYLE_ID_FONT_NAME, NULL);
|
||||
|
||||
canvas_set_text_color(c, tc);
|
||||
|
@ -109,7 +109,7 @@ static ret_t progress_bar_on_paint_self(widget_t* widget, canvas_t* c) {
|
||||
uint32_t i = 0;
|
||||
wchar_t str[32];
|
||||
uint32_t len = 0;
|
||||
uint16_t font_size = style_get_int(style, STYLE_ID_FONT_SIZE, 20);
|
||||
uint16_t font_size = style_get_int(style, STYLE_ID_FONT_SIZE, TK_DEFAULT_FONT_SIZE);
|
||||
const char* font_name = style_get_str(style, STYLE_ID_FONT_NAME, NULL);
|
||||
|
||||
tk_itoa(s, sizeof(s), progress_bar->value);
|
||||
|
@ -117,6 +117,7 @@ ret_t suggest_words_find(suggest_words_t* suggest_words, wchar_t c) {
|
||||
const uint8_t* data = NULL;
|
||||
return_value_if_fail(suggest_words != NULL && c != 0, RET_BAD_PARAMS);
|
||||
|
||||
suggest_words->words_nr = 0;
|
||||
data = suggest_words_find_data(suggest_words->res, c);
|
||||
return_value_if_fail(data != NULL, RET_FAIL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user