Rev 6457 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6391 | ashmew2 | 1 | #ifndef KOLIBRI_COLORS_H |
6479 | siemargl | 2 | #define KOLIBRI_COLORS_H |
3 | /* |
||
4 | * +0: dword: frames - цвет рамки |
||
5 | * +4: dword: grab - цвет заголовка |
||
6 | * +8: dword: grab_button - цвет кнопки на полосе заголовка |
||
7 | * +12 = +0xC: dword: grab_button_text - цвет текста на кнопке |
||
8 | на полосе заголовка |
||
9 | * +16 = +0x10: dword: grab_text - цвет текста на заголовке |
||
10 | * +20 = +0x14: dword: work - цвет рабочей области |
||
11 | * +24 = +0x18: dword: work_button - цвет кнопки в рабочей области |
||
12 | * +28 = +0x1C: dword: work_button_text - цвет текста на кнопке |
||
13 | в рабочей области |
||
14 | * +32 = +0x20: dword: work_text - цвет текста в рабочей области |
||
15 | * +36 = +0x24: dword: work_graph - цвет графики в рабочей области |
||
16 | */ |
||
17 | |||
6457 | punk_joker | 18 | typedef struct { |
6479 | siemargl | 19 | unsigned int color_frame_area; // 0 цвет рамки |
20 | unsigned int color_grab_bar; // 4 |
||
21 | unsigned int color_grab_bar_button; // 8 |
||
22 | unsigned int color_grab_button_text; // 12 |
||
23 | unsigned int color_grab_text; // 16 |
||
24 | unsigned int color_work_area; // 20 |
||
25 | unsigned int color_work_button; // 24 |
||
26 | unsigned int color_work_button_text; // 28 |
||
27 | unsigned int color_work_text; // 32 |
||
28 | unsigned int color_work_graph; // 36 |
||
6457 | punk_joker | 29 | }kolibri_system_colors; |
6391 | ashmew2 | 30 | |
6457 | punk_joker | 31 | kolibri_system_colors kolibri_color_table; |
6391 | ashmew2 | 32 | |
6457 | punk_joker | 33 | void kolibri_get_system_colors(kolibri_system_colors *color_table) |
6391 | ashmew2 | 34 | { |
35 | __asm__ volatile ("int $0x40" |
||
36 | : |
||
37 | :"a"(48),"b"(3),"c"(color_table),"d"(40) |
||
38 | ); |
||
39 | |||
40 | /* color_table should point to the system color table */ |
||
41 | } |
||
42 | |||
43 | #endif /* KOLIBRI_COLORS_H */ |