awtk/demos/assets-mini.c

107 lines
4.4 KiB
C
Raw Normal View History

2018-08-24 07:45:37 +08:00
#include "awtk.h"
#include "base/assets_manager.h"
2020-03-18 21:36:24 +08:00
#include "assets/default/inc/fonts/default_18.data"
2019-10-18 18:18:12 +08:00
#include "assets/default/inc/images/bricks.data"
#include "assets/default/inc/images/checked.data"
#include "assets/default/inc/images/dialog_title.data"
#include "assets/default/inc/images/earth.data"
#include "assets/default/inc/images/green_btn_n.data"
#include "assets/default/inc/images/green_btn_o.data"
#include "assets/default/inc/images/green_btn_p.data"
#include "assets/default/inc/images/info.data"
#include "assets/default/inc/images/left_off.data"
#include "assets/default/inc/images/left_on.data"
#include "assets/default/inc/images/middle_off.data"
#include "assets/default/inc/images/middle_on.data"
#include "assets/default/inc/images/muted.data"
#include "assets/default/inc/images/question.data"
#include "assets/default/inc/images/radio_checked.data"
#include "assets/default/inc/images/radio_unchecked.data"
#include "assets/default/inc/images/red_btn_n.data"
#include "assets/default/inc/images/red_btn_o.data"
#include "assets/default/inc/images/red_btn_p.data"
#include "assets/default/inc/images/right_off.data"
#include "assets/default/inc/images/right_on.data"
#include "assets/default/inc/images/slider_bg.data"
#include "assets/default/inc/images/slider_drag.data"
#include "assets/default/inc/images/slider_drag_o.data"
#include "assets/default/inc/images/slider_drag_p.data"
#include "assets/default/inc/images/slider_fg.data"
#include "assets/default/inc/images/slider_v_bg.data"
#include "assets/default/inc/images/slider_v_fg.data"
#include "assets/default/inc/images/unchecked.data"
#include "assets/default/inc/images/unmuted.data"
#include "assets/default/inc/images/warn.data"
#include "assets/default/inc/styles/default.data"
2019-11-12 15:59:14 +08:00
#include "assets/default/inc/ui/basic.data"
#include "assets/default/inc/ui/system_bar.data"
#include "assets/default/inc/images/rgba.data"
#include "assets/default/inc/images/rgb.data"
#include "assets/default/inc/images/message.data"
#include "assets/default/inc/styles/system_bar.data"
#include "assets/default/inc/images/close_n.data"
#include "assets/default/inc/images/close_p.data"
#include "assets/default/inc/images/close_o.data"
2018-08-24 07:45:37 +08:00
ret_t assets_init(void) {
2019-09-13 07:55:19 +08:00
assets_manager_t* am = assets_manager();
2018-08-24 07:45:37 +08:00
2020-03-18 21:36:24 +08:00
assets_manager_add(am, font_default_18);
2019-09-13 07:55:19 +08:00
assets_manager_add(am, image_bricks);
assets_manager_add(am, image_checked);
assets_manager_add(am, image_dialog_title);
assets_manager_add(am, image_earth);
assets_manager_add(am, image_green_btn_n);
assets_manager_add(am, image_green_btn_o);
assets_manager_add(am, image_green_btn_p);
assets_manager_add(am, image_info);
assets_manager_add(am, image_left_off);
assets_manager_add(am, image_left_on);
assets_manager_add(am, image_middle_off);
assets_manager_add(am, image_middle_on);
assets_manager_add(am, image_muted);
assets_manager_add(am, image_question);
assets_manager_add(am, image_radio_checked);
assets_manager_add(am, image_radio_unchecked);
assets_manager_add(am, image_red_btn_n);
assets_manager_add(am, image_red_btn_o);
assets_manager_add(am, image_red_btn_p);
assets_manager_add(am, image_right_off);
assets_manager_add(am, image_right_on);
assets_manager_add(am, image_slider_bg);
assets_manager_add(am, image_slider_drag);
assets_manager_add(am, image_slider_drag_o);
assets_manager_add(am, image_slider_drag_p);
assets_manager_add(am, image_slider_fg);
assets_manager_add(am, image_slider_v_bg);
assets_manager_add(am, image_slider_v_fg);
assets_manager_add(am, image_unchecked);
assets_manager_add(am, image_unmuted);
assets_manager_add(am, image_warn);
assets_manager_add(am, style_default);
2019-11-12 15:59:14 +08:00
assets_manager_add(am, ui_basic);
assets_manager_add(am, ui_system_bar);
assets_manager_add(am, image_rgb);
assets_manager_add(am, image_rgba);
assets_manager_add(am, image_message);
assets_manager_add(am, image_close_p);
assets_manager_add(am, image_close_n);
assets_manager_add(am, image_close_o);
assets_manager_add(am, image_info);
assets_manager_add(am, image_warn);
assets_manager_add(am, image_question);
assets_manager_add(am, style_system_bar);
2018-08-24 07:45:37 +08:00
2018-08-24 07:57:27 +08:00
tk_init_assets();
2018-08-24 07:45:37 +08:00
return RET_OK;
}
2020-04-02 16:55:11 +08:00
bool_t assets_has_theme(const char* name) {
return FALSE;
}
ret_t assets_set_global_theme(const char* name) {
return RET_NOT_IMPL;
}