mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-29 10:38:47 +08:00
77 lines
3.3 KiB
C
Executable File
77 lines
3.3 KiB
C
Executable File
#include "awtk.h"
|
|
#include "base/assets_manager.h"
|
|
#include "../res/assets/default/inc/fonts/default_18.data"
|
|
#include "../res/assets/default/inc/images/checked.data"
|
|
#include "../res/assets/default/inc/images/earth.data"
|
|
#include "../res/assets/default/inc/images/left_off.data"
|
|
#include "../res/assets/default/inc/images/left_on.data"
|
|
#include "../res/assets/default/inc/images/middle_off.data"
|
|
#include "../res/assets/default/inc/images/middle_on.data"
|
|
#include "../res/assets/default/inc/images/muted.data"
|
|
#include "../res/assets/default/inc/images/question.data"
|
|
#include "../res/assets/default/inc/images/radio_checked.data"
|
|
#include "../res/assets/default/inc/images/radio_unchecked.data"
|
|
#include "../res/assets/default/inc/images/red_btn_n.data"
|
|
#include "../res/assets/default/inc/images/red_btn_o.data"
|
|
#include "../res/assets/default/inc/images/red_btn_p.data"
|
|
#include "../res/assets/default/inc/images/right_off.data"
|
|
#include "../res/assets/default/inc/images/right_on.data"
|
|
#include "../res/assets/default/inc/images/unchecked.data"
|
|
#include "../res/assets/default/inc/images/unmuted.data"
|
|
#include "../res/assets/default/inc/styles/default.data"
|
|
#include "../res/assets/default/inc/ui/basic.data"
|
|
#include "../res/assets/default/inc/ui/system_bar.data"
|
|
#include "../res/assets/default/inc/images/rgba.data"
|
|
#include "../res/assets/default/inc/images/rgb.data"
|
|
#include "../res/assets/default/inc/images/message.data"
|
|
#include "../res/assets/default/inc/styles/system_bar.data"
|
|
#include "../res/assets/default/inc/images/close_n.data"
|
|
#include "../res/assets/default/inc/images/close_p.data"
|
|
#include "../res/assets/default/inc/images/close_o.data"
|
|
|
|
ret_t assets_init(void) {
|
|
assets_manager_t* am = assets_manager();
|
|
|
|
assets_manager_add(am, font_default_18_default);
|
|
assets_manager_add(am, image_checked_default);
|
|
assets_manager_add(am, image_earth_default);
|
|
assets_manager_add(am, image_left_off_default);
|
|
assets_manager_add(am, image_left_on_default);
|
|
assets_manager_add(am, image_middle_off_default);
|
|
assets_manager_add(am, image_middle_on_default);
|
|
assets_manager_add(am, image_muted_default);
|
|
assets_manager_add(am, image_question_default);
|
|
assets_manager_add(am, image_radio_checked_default);
|
|
assets_manager_add(am, image_radio_unchecked_default);
|
|
assets_manager_add(am, image_red_btn_n_default);
|
|
assets_manager_add(am, image_red_btn_o_default);
|
|
assets_manager_add(am, image_red_btn_p_default);
|
|
assets_manager_add(am, image_right_off_default);
|
|
assets_manager_add(am, image_right_on_default);
|
|
assets_manager_add(am, image_unchecked_default);
|
|
assets_manager_add(am, image_unmuted_default);
|
|
assets_manager_add(am, style_default_default);
|
|
assets_manager_add(am, ui_basic_default);
|
|
assets_manager_add(am, ui_system_bar_default);
|
|
assets_manager_add(am, image_rgb_default);
|
|
assets_manager_add(am, image_rgba_default);
|
|
|
|
assets_manager_add(am, image_close_p_default);
|
|
assets_manager_add(am, image_close_n_default);
|
|
assets_manager_add(am, image_close_o_default);
|
|
assets_manager_add(am, image_question_default);
|
|
|
|
assets_manager_add(am, style_system_bar_default);
|
|
|
|
tk_init_assets();
|
|
return RET_OK;
|
|
}
|
|
|
|
bool_t assets_has_theme(const char* name) {
|
|
return FALSE;
|
|
}
|
|
|
|
ret_t assets_set_global_theme(const char* name) {
|
|
return RET_NOT_IMPL;
|
|
}
|