add get default color in theme.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@159 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
bernard.xiong 2009-11-09 02:13:25 +00:00
parent 42e2844616
commit 3f7faa3a3b
3 changed files with 14 additions and 1 deletions

View File

@ -441,3 +441,14 @@ void rtgui_theme_draw_iconbox(rtgui_iconbox_t* iconbox)
rtgui_dc_end_drawing(dc);
}
/* get default background color */
rtgui_color_t rtgui_theme_default_bc()
{
return default_background;
}
/* get default foreground color */
rtgui_color_t rtgui_theme_default_fc()
{
return default_foreground;
}

View File

@ -32,6 +32,9 @@ void rtgui_theme_draw_label(rtgui_label_t* label);
void rtgui_theme_draw_textbox(rtgui_textbox_t* box);
void rtgui_theme_draw_iconbox(rtgui_iconbox_t* iconbox);
rtgui_color_t rtgui_theme_default_bc();
rtgui_color_t rtgui_theme_default_fc();
#ifdef __cplusplus
}
#endif

View File

@ -68,7 +68,6 @@ void rtgui_workbench_event_loop(rtgui_workbench_t* workbench);
rt_err_t rtgui_workbench_show (rtgui_workbench_t* workbench);
rt_err_t rtgui_workbench_hide (rtgui_workbench_t* workbench);
rtgui_view_t *rtgui_workbench_get_current_view(rtgui_workbench_t * workbench);
void rtgui_workbench_add_view(rtgui_workbench_t* workbench, rtgui_view_t* view);
void rtgui_workbench_remove_view(rtgui_workbench_t* workbench, rtgui_view_t* view);
void rtgui_workbench_show_view(rtgui_workbench_t* workbench, rtgui_view_t* view);