diff options
Diffstat (limited to 'frontends/kolibrios/kolibri_colors.h')
-rw-r--r-- | frontends/kolibrios/kolibri_colors.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/frontends/kolibrios/kolibri_colors.h b/frontends/kolibrios/kolibri_colors.h new file mode 100644 index 000000000..7a16a4024 --- /dev/null +++ b/frontends/kolibrios/kolibri_colors.h @@ -0,0 +1,28 @@ +#ifndef KOLIBRI_COLORS_H +#define KOLIBRI_COLORS_H +struct kolibri_system_colors { + unsigned int color_frame_area; + unsigned int color_grab_bar; + unsigned int color_grab_bar_button; + unsigned int color_grab_button_text; + unsigned int color_grab_text; + unsigned int color_work_area; + unsigned int color_work_button; + unsigned int color_work_button_text; + unsigned int color_work_text; + unsigned int color_work_graph; +}; + +struct kolibri_system_colors kolibri_color_table; + +void kolibri_get_system_colors(struct kolibri_system_colors *color_table) +{ + __asm__ volatile ("int $0x40" + : + :"a"(48),"b"(3),"c"(color_table),"d"(40) + ); + + /* color_table should point to the system color table */ +} + +#endif /* KOLIBRI_COLORS_H */ |