Rev 7780 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
7759 | leency | 1 | |
2 | { |
||
3 | #define TSZE 25 |
||
4 | static libimg_image top_icons; |
||
5 | static dword semi_white=0, bg_col, bg_col_light, bg_col_dark, bg_dark; |
||
6 | if (!semi_white) { |
||
7 | bg_col = system.color.work; |
||
8 | if (GrayScaleImage(#bg_col,1,1)<65) bg_dark=true; else bg_dark=false; |
||
9 | Libimg_LoadImage(#top_icons, "/sys/icons16.png"); |
||
10 | |||
11 | |||
12 | bg_col_dark = MixColors(system.color.work, system.color.work_graph, 90); |
||
13 | bg_col_light = MixColors(semi_white, 0xFFFfff, bg_dark*90 + 10); |
||
14 | |||
15 | |||
16 | Libimg_ReplaceColor(top_icons.image, top_icons.w, top_icons.h, 0xffCACBD6, MixColors(semi_white, 0, 220)); |
||
17 | } |
||
18 | |||
19 | |||
20 | DrawOvalBorder(_x, _y, TSZE, TSZE, bg_col_light, bg_col_dark, semi_white, system.color.work); |
||
21 | |||
22 | |||
23 | if (_icon_n==-1) { |
||
24 | DrawBar(_x+6, _y+5, 16, 16, semi_white); |
||
25 | } else { |
||
26 | img_draw stdcall(top_icons.image, _x+6, _y+5, 16, 16, 0, _icon_n*16); |
||
27 | } |
||
28 | }65)> |
||
29 |