mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 11:08:34 +08:00
25 lines
487 B
C
25 lines
487 B
C
#include "awtk.h"
|
|
#include "base/assets_manager.h"
|
|
|
|
ret_t assets_init(void) {
|
|
assets_manager_t* am = assets_manager();
|
|
|
|
tk_init_assets();
|
|
return RET_OK;
|
|
}
|
|
|
|
bool_t assets_has_theme(const char* name) {
|
|
return_value_if_fail(name != NULL, FALSE);
|
|
|
|
if (tk_str_eq(name, "default")) {
|
|
return TRUE;
|
|
} else {
|
|
return FALSE;
|
|
}
|
|
}
|
|
|
|
ret_t assets_set_global_theme(const char* name) {
|
|
log_debug("not support to change theme.\n");
|
|
return RET_NOT_IMPL;
|
|
}
|