author | sandman <sandman> | 2002-06-24 17:07:45 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-06-24 17:07:45 (UTC) |
commit | f284f40fe5912736666a56143705f260d14feb34 (patch) (unidiff) | |
tree | 2aa6dee5e26aaeffc3505ca0c536651bce09cfe6 | |
parent | db5385bc16f56b4c5b84ad4a92ac6bdd46eea321 (diff) | |
download | opie-f284f40fe5912736666a56143705f260d14feb34.zip opie-f284f40fe5912736666a56143705f260d14feb34.tar.gz opie-f284f40fe5912736666a56143705f260d14feb34.tar.bz2 |
Inital checkin of liquid style for OPIE
-rw-r--r-- | noncore/styles/liquid/effects.cpp | 118 | ||||
-rw-r--r-- | noncore/styles/liquid/effects.h | 20 | ||||
-rw-r--r-- | noncore/styles/liquid/embeddata.h | 1000 | ||||
-rw-r--r-- | noncore/styles/liquid/htmlmasks.h | 32 | ||||
-rw-r--r-- | noncore/styles/liquid/liquid.cpp | 2666 | ||||
-rw-r--r-- | noncore/styles/liquid/liquid.h | 218 | ||||
-rw-r--r-- | noncore/styles/liquid/liquid.pro | 19 | ||||
-rwxr-xr-x | noncore/styles/liquid/mk_qpl_diff.sh | 21 | ||||
-rw-r--r-- | noncore/styles/liquid/mosfet-liquid0.7.tar.gz | bin | 0 -> 301223 bytes | |||
-rw-r--r-- | noncore/styles/liquid/opie-liquid.control | 10 | ||||
-rw-r--r-- | noncore/styles/liquid/opie-liquid.diff | 1114 | ||||
-rw-r--r-- | noncore/styles/liquid/plugin.cpp | 29 |
12 files changed, 5247 insertions, 0 deletions
diff --git a/noncore/styles/liquid/effects.cpp b/noncore/styles/liquid/effects.cpp new file mode 100644 index 0000000..0c76fbc --- a/dev/null +++ b/noncore/styles/liquid/effects.cpp | |||
@@ -0,0 +1,118 @@ | |||
1 | |||
2 | #include <qimage.h> | ||
3 | #include <qpixmap.h> | ||
4 | #include <qcolor.h> | ||
5 | |||
6 | #include "effects.h" | ||
7 | |||
8 | |||
9 | |||
10 | QImage & QImageEffect::fade (QImage & img, float val, const QColor & color) | ||
11 | { | ||
12 | if ( img. width ( ) == 0 || img. height ( ) == 0 ) | ||
13 | return img; | ||
14 | |||
15 | // We don't handle bitmaps | ||
16 | if (img.depth () == 1) | ||
17 | return img; | ||
18 | |||
19 | unsigned char | ||
20 | tbl[256]; | ||
21 | for (int i = 0; i < 256; i++) | ||
22 | tbl[i] = (int) (val * i + 0.5); | ||
23 | |||
24 | int | ||
25 | red = | ||
26 | color. | ||
27 | red (); | ||
28 | int | ||
29 | green = | ||
30 | color. | ||
31 | green (); | ||
32 | int | ||
33 | blue = | ||
34 | color. | ||
35 | blue (); | ||
36 | |||
37 | QRgb col; | ||
38 | int | ||
39 | r, | ||
40 | g, | ||
41 | b, | ||
42 | cr, | ||
43 | cg, | ||
44 | cb; | ||
45 | |||
46 | if (img.depth () <= 8) | ||
47 | { | ||
48 | // pseudo color | ||
49 | for (int i = 0; i < img.numColors (); i++) | ||
50 | { | ||
51 | col = img.color (i); | ||
52 | cr = qRed (col); | ||
53 | cg = qGreen (col); | ||
54 | cb=qBlue(col); | ||
55 | if (cr > red) | ||
56 | r = cr - tbl[cr - red]; | ||
57 | |||
58 | else | ||
59 | r = cr + tbl[red - cr]; | ||
60 | if (cg > green) | ||
61 | g = cg - tbl[cg - green]; | ||
62 | |||
63 | else | ||
64 | g = cg + tbl[green - cg]; | ||
65 | if (cb > blue) | ||
66 | b = cb - tbl[cb - blue]; | ||
67 | |||
68 | else | ||
69 | b = cb + tbl[blue - cb]; | ||
70 | img.setColor (i, qRgb (r, g, b)); | ||
71 | } | ||
72 | |||
73 | } | ||
74 | else | ||
75 | { | ||
76 | // truecolor | ||
77 | for (int y = 0; y < img.height (); y++) | ||
78 | { | ||
79 | QRgb * data = (QRgb *) img.scanLine (y); | ||
80 | for (int x = 0; x < img.width (); x++) | ||
81 | { | ||
82 | col = *data; | ||
83 | cr = qRed (col); | ||
84 | cg=qGreen(col); | ||
85 | cb=qBlue(col); | ||
86 | if (cr > red) | ||
87 | r = cr - tbl[cr - red]; | ||
88 | |||
89 | else | ||
90 | r = cr + tbl[red - cr]; | ||
91 | if (cg > green) | ||
92 | g = cg - tbl[cg - green]; | ||
93 | |||
94 | else | ||
95 | g = cg + tbl[green - cg]; | ||
96 | if (cb > blue) | ||
97 | b = cb - tbl[cb - blue]; | ||
98 | |||
99 | else | ||
100 | b = cb + tbl[blue - cb]; | ||
101 | *data++ = qRgb (r, g, b); | ||
102 | } | ||
103 | } | ||
104 | } | ||
105 | |||
106 | return img; | ||
107 | } | ||
108 | |||
109 | |||
110 | |||
111 | QPixmap& QPixmapEffect::fade(QPixmap &pixmap, float val, const QColor &color) | ||
112 | { | ||
113 | QImage img = pixmap.convertToImage(); | ||
114 | QImageEffect::fade(img, val, color); | ||
115 | pixmap.convertFromImage(img); | ||
116 | |||
117 | return pixmap; | ||
118 | } | ||
diff --git a/noncore/styles/liquid/effects.h b/noncore/styles/liquid/effects.h new file mode 100644 index 0000000..23c3f0a --- a/dev/null +++ b/noncore/styles/liquid/effects.h | |||
@@ -0,0 +1,20 @@ | |||
1 | #ifndef __EFFECTS_H__ | ||
2 | #define __EFFECTS_H__ | ||
3 | |||
4 | class QImage; | ||
5 | class QPixmap; | ||
6 | class QColor; | ||
7 | |||
8 | class QImageEffect { | ||
9 | public: | ||
10 | static QImage &fade ( QImage &, float, const QColor & ); | ||
11 | }; | ||
12 | |||
13 | class QPixmapEffect { | ||
14 | public: | ||
15 | static QPixmap &fade ( QPixmap &, float, const QColor & ); | ||
16 | }; | ||
17 | |||
18 | |||
19 | #endif | ||
20 | |||
diff --git a/noncore/styles/liquid/embeddata.h b/noncore/styles/liquid/embeddata.h new file mode 100644 index 0000000..e4ccc27 --- a/dev/null +++ b/noncore/styles/liquid/embeddata.h | |||
@@ -0,0 +1,1000 @@ | |||
1 | /* Generated by qembed */ | ||
2 | #ifndef _1855746070 | ||
3 | #define _1855746070 | ||
4 | #include <qimage.h> | ||
5 | #include <stdlib.h> | ||
6 | static const QRgb buttonborder_data[] = { | ||
7 | 0x0,0x0,0x0,0x0,0x0,0x0,0xffcacaca,0xffa0a0a0,0xff838383,0xff747474,0xff747474,0xff727272,0xff727272,0xff727272, | ||
8 | 0xff727272,0xff727272,0xff727272,0xff727272,0xff727272,0xff727272,0xff727272,0xff727272,0xff727272,0xff727272,0xff727272,0xff727272,0xff727272,0xff727272, | ||
9 | 0xff727272,0xffa0a0a0,0xffcacaca,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xffcacaca, | ||
10 | 0xff838383,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
11 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff838383,0xffcacaca, | ||
12 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xffaeaeae,0x0,0x0,0x0,0x0,0x0,0x0, | ||
13 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
14 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xffaeaeae,0x0,0x0,0x0,0x0, | ||
15 | 0x0,0xffaeaeae,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
16 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
17 | 0x0,0x0,0x0,0x0,0x0,0xffaeaeae,0x0,0x0,0x0,0xffcacaca,0x0,0x0,0x0,0x0, | ||
18 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
19 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
20 | 0x0,0xffcacaca,0x0,0x0,0xff838383,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
21 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
22 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff838383,0x0,0xffcacaca,0x0, | ||
23 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
24 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
25 | 0x0,0x0,0x0,0x0,0x0,0x0,0xffcacaca,0xffa0a0a0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
26 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
27 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
28 | 0x0,0xffa0a0a0,0xff838383,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
29 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
30 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff838383,0xff747474,0x0,0x0, | ||
31 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
32 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
33 | 0x0,0x0,0x0,0x0,0x0,0xff747474,0xff747474,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
34 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
35 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
36 | 0xff747474,0xff838383,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
37 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
38 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff838383,0xff838383,0x0,0x0,0x0, | ||
39 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
40 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
41 | 0x0,0x0,0x0,0x0,0xff838383,0xff838383,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
42 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
43 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff838383, | ||
44 | 0xff838383,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
45 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
46 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff838383,0xff838383,0x0,0x0,0x0,0x0, | ||
47 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
48 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
49 | 0x0,0x0,0x0,0xff838383,0xff838383,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
50 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
51 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff838383,0xff838383, | ||
52 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
53 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
54 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff838383,0xff919191,0x0,0x0,0x0,0x0,0x0, | ||
55 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
56 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
57 | 0x0,0x0,0xffa0a0a0,0xffb7b7b7,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
58 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
59 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xffcacaca,0xffeaeaea,0xff727272, | ||
60 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
61 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
62 | 0x0,0x0,0x0,0x0,0x0,0xff838383,0x0,0x0,0xffafafaf,0x0,0x0,0x0,0x0,0x0, | ||
63 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
64 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
65 | 0xffcacaca,0x0,0x0,0x0,0xff919191,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
66 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
67 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xffaeaeae,0x0,0x0,0x0,0x0,0x0, | ||
68 | 0xff919191,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
69 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
70 | 0x0,0x0,0xffaeaeae,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xffafafaf,0xff727272,0x0,0x0, | ||
71 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
72 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff838383,0xffcacaca,0x0,0x0,0x0, | ||
73 | 0x0,0x0,0x0,0x0,0x0,0x0,0xffeaeaea,0xffb7b7b7,0xff919191,0xff727272,0xff727272,0xff727272,0xff727272,0xff727272, | ||
74 | 0xff727272,0xff727272,0xff727272,0xff727272,0xff727272,0xff727272,0xff727272,0xff727272,0xff727272,0xff727272,0xff727272,0xff727272,0xff727272,0xff727272, | ||
75 | 0xff727272,0xff838383,0xffa0a0a0,0xffcacaca,0x0,0x0,0x0,0x0,0x0,0x0 | ||
76 | }; | ||
77 | |||
78 | static const QRgb buttonfill_data[] = { | ||
79 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
80 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
81 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
82 | 0x0,0xff8a8685,0xffa2a2a2,0xffb9b8b6,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4, | ||
83 | 0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffb9b8b6,0xffa2a2a2,0xff8a8685,0x0,0x0, | ||
84 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff8a8685,0xffa8a6a5,0xffc8c7c5,0xffebebeb,0xfff4f4f4,0xffffffff, | ||
85 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
86 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfff4f4f4,0xffebebeb,0xffc8c7c5,0xffa8a6a5,0xff8a8685,0x0,0x0,0x0,0x0,0x0, | ||
87 | 0x0,0x0,0xff949292,0xffb1aeae,0xffd4d4d4,0xfff0ebe8,0xfff3f3f3,0xfff4f4f4,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
88 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfff4f4f4, | ||
89 | 0xfff3f3f3,0xfff0ebe8,0xffd4d4d4,0xffb1aeae,0xff949292,0x0,0x0,0x0,0x0,0x0,0xff9d9593,0xffb1aeae,0xffd6d3d2,0xffe4e4e4, | ||
90 | 0xffe4e2e3,0xfff3f3f3,0xfff9f9f9,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
91 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfff9f9f9,0xfff3f3f3,0xffe4e2e3,0xffe4e4e4,0xffd6d3d2,0xffb1aeae, | ||
92 | 0xff9d9593,0x0,0x0,0x0,0x0,0xffa6a8a5,0xffc2c6c3,0xffd0d0d0,0xffe4e2e3,0xffe4e4e4,0xfff4f4f4,0xfff9f9f9,0xffffffff,0xffffffff, | ||
93 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
94 | 0xffffffff,0xffffffff,0xffffffff,0xfff9f9f9,0xfff4f4f4,0xffe4e4e4,0xffe4e2e3,0xffd0d0d0,0xffc2c6c3,0xffa6a8a5,0x0,0x0,0x0,0xff9e9d9a, | ||
95 | 0xffaeb1ae,0xffc7ccc8,0xffced0cf,0xffdddddd,0xffe1e1e1,0xffefefef,0xffefefef,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
96 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffefefef,0xffefefef, | ||
97 | 0xffe1e1e1,0xffdddddd,0xffced0cf,0xffc7ccc8,0xffaeb1ae,0xff9e9d9a,0x0,0x0,0xffa6a5a2,0xffb6bab6,0xffc7ccc8,0xffcacac9,0xffd4d4d4,0xffdbd9da, | ||
98 | 0xffe4e4e4,0xffe4e4e4,0xffebebeb,0xfff3f3f3,0xfff3f3f3,0xfff4f4f4,0xfff4f4f4,0xfff4f4f4,0xfff4f4f4,0xfff3f3f3,0xfff4f4f4,0xfff4f4f4,0xfff3f3f3,0xfff3f3f3, | ||
99 | 0xfff4f4f4,0xfff4f4f4,0xfff4f4f4,0xfff4f4f4,0xfff3f3f3,0xfff3f3f3,0xffebebeb,0xffe4e4e4,0xffe4e4e4,0xffdbd9da,0xffd4d4d4,0xffcacac9,0xffc7ccc8,0xffb6bab6, | ||
100 | 0xffa6a5a2,0x0,0x0,0xffa9a9a5,0xffb4b6b3,0xffbfc4c0,0xffc3c3c3,0xffcdcdcd,0xffd4d4d4,0xffd8d8d8,0xffdddddd,0xffe1e1e1,0xffe4e4e4,0xffe4e4e4, | ||
101 | 0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4, | ||
102 | 0xffe4e4e4,0xffe1e1e1,0xffdddddd,0xffd8d8d8,0xffd4d4d4,0xffcdcdcd,0xffc3c3c3,0xffbfc4c0,0xffb4b6b3,0xffa9a9a5,0x0,0x0,0xffa9a9a5,0xffaeb1ae, | ||
103 | 0xffbabdbb,0xffc3c3c3,0xffcbcbcb,0xffcdcdcd,0xffd4d4d4,0xffd4d4d4,0xffdddddd,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4, | ||
104 | 0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffdddddd,0xffd4d4d4,0xffd4d4d4,0xffcdcdcd, | ||
105 | 0xffcbcbcb,0xffc3c3c3,0xffbabdbb,0xffaeb1ae,0xffa9a9a5,0x0,0x0,0xff9a9894,0xffa6a8a5,0xffb2b7b3,0xffbabdbb,0xffc3c3c3,0xffc5c5c5,0xffc7c7c7, | ||
106 | 0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0, | ||
107 | 0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffc7c7c7,0xffc5c5c5,0xffc3c3c3,0xffbabdbb,0xffb2b7b3,0xffa6a8a5,0xff9a9894, | ||
108 | 0x0,0x0,0xff9a9894,0xffa6a8a5,0xffb2b7b3,0xffbabdbb,0xffc3c3c3,0xffc5c5c5,0xffc7c7c7,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0, | ||
109 | 0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0, | ||
110 | 0xffd0d0d0,0xffd0d0d0,0xffc7c7c7,0xffc5c5c5,0xffc3c3c3,0xffbabdbb,0xffb2b7b3,0xffa6a8a5,0xff9a9894,0x0,0x0,0xff9a9894,0xffa6a8a5,0xffb2b7b3, | ||
111 | 0xffbabdbb,0xffc3c3c3,0xffc5c5c5,0xffc7c7c7,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0, | ||
112 | 0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffc7c7c7,0xffc5c5c5,0xffc3c3c3, | ||
113 | 0xffbabdbb,0xffb2b7b3,0xffa6a8a5,0xff9a9894,0x0,0x0,0xff9a9894,0xffa6a8a5,0xffb2b7b3,0xffbabdbb,0xffc3c3c3,0xffc5c5c5,0xffc7c7c7,0xffd0d0d0, | ||
114 | 0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0, | ||
115 | 0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffc7c7c7,0xffc5c5c5,0xffc3c3c3,0xffbabdbb,0xffb2b7b3,0xffa6a8a5,0xff9a9894,0x0, | ||
116 | 0x0,0xff9a9894,0xffa6a8a5,0xffb2b7b3,0xffbabdbb,0xffc3c3c3,0xffc5c5c5,0xffc7c7c7,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0, | ||
117 | 0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0, | ||
118 | 0xffd0d0d0,0xffc7c7c7,0xffc5c5c5,0xffc3c3c3,0xffbabdbb,0xffb2b7b3,0xffa6a8a5,0xff9a9894,0x0,0x0,0xff9a9894,0xffa6a8a5,0xffb2b7b3,0xffbabdbb, | ||
119 | 0xffc3c3c3,0xffc5c5c5,0xffc7c7c7,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0, | ||
120 | 0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffd0d0d0,0xffc7c7c7,0xffc5c5c5,0xffc3c3c3,0xffbabdbb, | ||
121 | 0xffb2b7b3,0xffa6a8a5,0xff9a9894,0x0,0x0,0xffa9a9a5,0xffaeb1ae,0xffbabdbb,0xffc3c3c3,0xffcbcbcb,0xffcdcdcd,0xffd4d4d4,0xffd4d4d4,0xffdddddd, | ||
122 | 0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4, | ||
123 | 0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffdddddd,0xffd4d4d4,0xffd4d4d4,0xffcdcdcd,0xffcbcbcb,0xffc3c3c3,0xffbabdbb,0xffaeb1ae,0xffa9a9a5,0x0,0x0, | ||
124 | 0xffa9a9a5,0xffb4b6b3,0xffbfc4c0,0xffc3c3c3,0xffcdcdcd,0xffd4d4d4,0xffd8d8d8,0xffdddddd,0xffe1e1e1,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4, | ||
125 | 0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe1e1e1,0xffdddddd, | ||
126 | 0xffd8d8d8,0xffd4d4d4,0xffcdcdcd,0xffc3c3c3,0xffbfc4c0,0xffb4b6b3,0xffa9a9a5,0x0,0x0,0xffa6a5a2,0xffb6bab6,0xffc7ccc8,0xffcacac9,0xffd4d4d4, | ||
127 | 0xffdbd9da,0xffe4e4e4,0xffe4e4e4,0xffebebeb,0xfff3f3f3,0xfff3f3f3,0xfff4f4f4,0xfff4f4f4,0xfff4f4f4,0xfff4f4f4,0xfff3f3f3,0xfff4f4f4,0xfff4f4f4,0xfff3f3f3, | ||
128 | 0xfff3f3f3,0xfff4f4f4,0xfff4f4f4,0xfff4f4f4,0xfff4f4f4,0xfff3f3f3,0xfff3f3f3,0xffebebeb,0xffe4e4e4,0xffe4e4e4,0xffdbd9da,0xffd4d4d4,0xffcacac9,0xffc7ccc8, | ||
129 | 0xffb6bab6,0xffa6a5a2,0x0,0x0,0xff9e9d9a,0xffaeb1ae,0xffc7ccc8,0xffced0cf,0xffdddddd,0xffe1e1e1,0xffefefef,0xffefefef,0xffffffff,0xffffffff, | ||
130 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
131 | 0xffffffff,0xffffffff,0xffffffff,0xffefefef,0xffefefef,0xffe1e1e1,0xffdddddd,0xffced0cf,0xffc7ccc8,0xffaeb1ae,0xff9e9d9a,0x0,0x0,0x0, | ||
132 | 0xffa6a8a5,0xffc2c6c3,0xffd0d0d0,0xffe4e2e3,0xffe4e4e4,0xfff4f4f4,0xfff9f9f9,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
133 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfff9f9f9,0xfff4f4f4, | ||
134 | 0xffe4e4e4,0xffe4e2e3,0xffd0d0d0,0xffc2c6c3,0xffa6a8a5,0x0,0x0,0x0,0x0,0xff9d9593,0xffb1aeae,0xffd6d3d2,0xffe4e4e4,0xffe4e2e3, | ||
135 | 0xfff3f3f3,0xfff9f9f9,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
136 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfff9f9f9,0xfff3f3f3,0xffe4e2e3,0xffe4e4e4,0xffd6d3d2,0xffb1aeae,0xff9d9593, | ||
137 | 0x0,0x0,0x0,0x0,0x0,0xff949292,0xffb1aeae,0xffd4d4d4,0xfff0ebe8,0xfff3f3f3,0xfff4f4f4,0xffffffff,0xffffffff,0xffffffff, | ||
138 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
139 | 0xffffffff,0xffffffff,0xfff4f4f4,0xfff3f3f3,0xfff0ebe8,0xffd4d4d4,0xffb1aeae,0xff949292,0x0,0x0,0x0,0x0,0x0,0x0, | ||
140 | 0x0,0xff8a8685,0xffa8a6a5,0xffc8c7c5,0xffebebeb,0xfff4f4f4,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
141 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfff4f4f4,0xffebebeb,0xffc8c7c5, | ||
142 | 0xffa8a6a5,0xff8a8685,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff8a8685,0xffa2a2a2, | ||
143 | 0xffb9b8b6,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4, | ||
144 | 0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffd4d4d4,0xffb9b8b6,0xffa2a2a2,0xff8a8685,0x0,0x0,0x0,0x0,0x0, | ||
145 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
146 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
147 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0 | ||
148 | }; | ||
149 | |||
150 | static const QRgb checkbox_data[] = { | ||
151 | 0x786340,0x786340,0x360000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
152 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
153 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
154 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
155 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x404b4b4b,0xaa4c4c4c,0xff383838,0xff414141,0xff494949,0xff494949,0xff414141, | ||
156 | 0xff414141,0xff404040,0xff414141,0xff414141,0xff414141,0xff393939,0xaa4c4c4c,0x404f4f4f,0x0,0x0,0x0,0x0,0x0,0xaa555555, | ||
157 | 0xea707070,0xffa4a4a4,0xffb4b4b4,0xffb4b4b4,0xffb5b5b5,0xffb4b4b4,0xffb5b5b5,0xffb4b4b4,0xffb3b3b3,0xffb4b4b4,0xffb5b5b5,0xff9a9a9a,0xea6f6f6f,0xaa575757, | ||
158 | 0x0,0x0,0x0,0x0,0x0,0xff595959,0xff999999,0xffc0c0c0,0xffdddddd,0xffdedede,0xffdcdcdc,0xffdedede,0xffdcdcdc,0xffdddddd, | ||
159 | 0xffdddddd,0xffdddddd,0xffdddddd,0xffbebebe,0xffa4a4a4,0xff505050,0x0,0x0,0x0,0x0,0x0,0xff717171,0xffbcbcbc,0xffcecece, | ||
160 | 0xffd5d5d5,0xffd5d5d5,0xffd6d6d6,0xffd4d4d4,0xffd6d6d6,0xffd5d5d5,0xffd5d5d5,0xffd4d4d4,0xffd5d5d5,0xffc5c5c5,0xffb4b4b4,0xff737373,0x0,0xff42f7, | ||
161 | 0xff42f7,0x0,0x0,0xff848484,0xffababab,0xffbdbdbd,0xffbcbcbc,0xffbbbbbb,0xffc6c6c6,0xffbdbdbd,0xffbbbbbb,0xffbcbcbc,0xffbcbcbc,0xffbcbcbc, | ||
162 | 0xffbcbcbc,0xffbcbcbc,0xffacacac,0xff838383,0x0,0xff42f7,0xff42f7,0x0,0x0,0xff838383,0xffadadad,0xffbcbcbc,0xffbbbbbb,0xffbcbcbc, | ||
163 | 0xffbbbbbb,0xffbcbcbc,0xffbcbcbc,0xffbcbcbc,0xffbcbcbc,0xffbcbcbc,0xffbcbcbc,0xffbbbbbb,0xffadadad,0xff828282,0x0,0xff42f7,0xff42f7,0x0, | ||
164 | 0x0,0xff8b8b8b,0xffb4b4b4,0xffc5c5c5,0xffc5c5c5,0xffc6c6c6,0xffcdcdcd,0xffc5c5c5,0xffc5c5c5,0xffc6c6c6,0xffcdcdcd,0xffc6c6c6,0xffc5c5c5,0xffc5c5c5, | ||
165 | 0xffbcbcbc,0xff8b8b8b,0x0,0xff42f7,0xff42f7,0x0,0x0,0xff939393,0xffb6b6b6,0xffcdcdcd,0xffcdcdcd,0xffcccccc,0xffcccccc,0xffcecece, | ||
166 | 0xffcdcdcd,0xffcdcdcd,0xffcdcdcd,0xffcdcdcd,0xffd5d5d5,0xffcdcdcd,0xffc4c4c4,0xff929292,0x0,0xff42f7,0xff42f7,0x0,0x0,0xff949494, | ||
167 | 0xffc0c0c0,0xffd6d6d6,0xffd5d5d5,0xffdddddd,0xffd5d5d5,0xffdddddd,0xffdddddd,0xffdddddd,0xffdddddd,0xffdddddd,0xffdddddd,0xffd4d4d4,0xffcecece,0xff939393, | ||
168 | 0x0,0xff42f7,0xff42f7,0x0,0x0,0xff9b9b9b,0xffcecece,0xffdcdcdc,0xffe6e6e6,0xffe5e5e5,0xffe6e6e6,0xffe5e5e5,0xffe6e6e6,0xffe7e7e7, | ||
169 | 0xffdddddd,0xffe6e6e6,0xffe5e5e5,0xffdedede,0xffcdcdcd,0xff9a9a9a,0x0,0xd90200,0xe82c92,0x0,0x0,0xffa4a4a4,0xffd1d1d1,0xffeeeeee, | ||
170 | 0xffe6e6e6,0xffeeeeee,0xffededed,0xffeeeeee,0xffefefef,0xffededed,0xffefefef,0xffeeeeee,0xffeeeeee,0xffe6e6e6,0xffcccccc,0xff9b9b9b,0x0,0x0, | ||
171 | 0x400000,0x0,0x0,0xffa3a3a3,0xffd9d9d9,0xfff6f6f6,0xfff6f6f6,0xfff6f6f6,0xfff6f6f6,0xfff6f6f6,0xfff6f6f6,0xfff7f7f7,0xfff6f6f6,0xfff6f6f6, | ||
172 | 0xfff6f6f6,0xfff6f6f6,0xffd4d4d4,0xffa4a4a4,0x0,0x6c7574,0x6f6e20,0x0,0x0,0xffa5a5a5,0xffeeeeee,0xfffdfdfd,0xfffefefe,0xfffefefe, | ||
173 | 0xfffefefe,0xfffefefe,0xfffdfdfd,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xffd9d9d9,0xffa4a4a4,0x0,0xe90100,0xc86240,0x0, | ||
174 | 0x0,0xff939393,0xffd2d2d2,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffdfdfd,0xfffefefe,0xfffefefe, | ||
175 | 0xffd1d1d1,0xff939393,0x0,0x2d0014,0x490079,0x0,0x0,0xff797979,0xffa8a8a8,0xffc0c0c0,0xffededed,0xffeeeeee,0xffeeeeee,0xffeeeeee, | ||
176 | 0xffefefef,0xffeeeeee,0xffeeeeee,0xffefefef,0xffeeeeee,0xffc0c0c0,0xffa8a8a8,0xff7a7a7a,0x0,0x0,0x0,0x0,0x0,0xaa848484, | ||
177 | 0xea787878,0xff7c7c7c,0xff7c7c7c,0xff7c7c7c,0xff7c7c7c,0xff7c7c7c,0xff7c7c7c,0xff7c7c7c,0xff7c7c7c,0xff7c7c7c,0xff7c7c7c,0xff7c7c7c,0xea787878,0xaa848484, | ||
178 | 0x0,0xe06140,0xff42f7,0x0,0x0,0x40737373,0xaa787878,0xff7b7b7b,0xff727272,0xff717171,0xff727272,0xff737373,0xff727272,0xff727272, | ||
179 | 0xff727272,0xff727272,0xff727272,0xff7a7a7a,0xaa787878,0x40737373,0x0,0x906140,0xff42f7,0x0,0x0,0x0,0x0,0x0, | ||
180 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
181 | 0x59,0xf8b092,0x28b192,0x0,0x52,0x7b14ae,0xe17a74,0x0,0xf0,0x0,0x0,0x0,0x52,0x7b14ae, | ||
182 | 0xe17a74,0x0,0xf0,0x30000,0x0,0x0 | ||
183 | }; | ||
184 | |||
185 | static const QRgb checkboxdown_data[] = { | ||
186 | 0x786340,0x786340,0x360000,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
187 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
188 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
189 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
190 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x404b4b4b,0xaa4c4c4c,0xff383838,0xff414141,0xff494949,0xff494949,0xff414141, | ||
191 | 0xff414141,0xff404040,0xff414141,0xff414141,0xff414141,0xff393939,0xaa4c4c4c,0x404f4f4f,0x0,0x0,0x0,0x0,0x0,0xaa555555, | ||
192 | 0xea707070,0xffa4a4a4,0xffb4b4b4,0xffb4b4b4,0xffb5b5b5,0xffb4b4b4,0xffb5b5b5,0xffb4b4b4,0xffb3b3b3,0xffb4b4b4,0xffb5b5b5,0xff9a9a9a,0xea6f6f6f,0xaa575757, | ||
193 | 0x0,0x0,0x0,0x0,0x0,0xff595959,0xff999999,0xffc0c0c0,0xffdddddd,0xffdedede,0xffdcdcdc,0xffdedede,0xffdcdcdc,0xffdddddd, | ||
194 | 0xffdddddd,0xffdddddd,0xffdddddd,0xffbebebe,0xffa4a4a4,0xff505050,0x0,0x0,0x0,0x0,0x0,0xff717171,0xffbcbcbc,0xffbcbcbc, | ||
195 | 0xff919191,0xffd5d5d5,0xffd6d6d6,0xffd4d4d4,0xffd6d6d6,0xffd5d5d5,0xffd5d5d5,0xffc2c2c2,0xff919191,0xffc5c5c5,0xffb4b4b4,0xff737373,0x0,0xff42f7, | ||
196 | 0xff42f7,0x0,0x0,0xff848484,0xffababab,0xffacacac,0xff6b6b6b,0xff5f5f5f,0xffc6c6c6,0xffbdbdbd,0xffbbbbbb,0xffbcbcbc,0xff9f9f9f,0xff565656, | ||
197 | 0xff7f7f7f,0xffbcbcbc,0xffacacac,0xff838383,0x0,0xff42f7,0xff42f7,0x0,0x0,0xff838383,0xffadadad,0xffbcbcbc,0xff9e9e9e,0xff4a4a4a, | ||
198 | 0xff4b4b4b,0xffbcbcbc,0xffbcbcbc,0xff999999,0xff3d3d3d,0xff606060,0xffbcbcbc,0xffbbbbbb,0xffadadad,0xff828282,0x0,0xff42f7,0xff42f7,0x0, | ||
199 | 0x0,0xff8b8b8b,0xffb4b4b4,0xffc5c5c5,0xffc5c5c5,0xffa2a2a2,0xff3c3c3c,0xff424242,0xff9b9b9b,0xff323232,0xff525252,0xffc6c6c6,0xffc5c5c5,0xffc5c5c5, | ||
200 | 0xffbcbcbc,0xff8b8b8b,0x0,0xff42f7,0xff42f7,0x0,0x0,0xff939393,0xffb6b6b6,0xffcdcdcd,0xffcdcdcd,0xffcccccc,0xffa0a0a0,0xff2b2b2b, | ||
201 | 0xff1d1d1d,0xff454545,0xffcdcdcd,0xffcdcdcd,0xffd5d5d5,0xffcdcdcd,0xffc4c4c4,0xff929292,0x0,0xff42f7,0xff42f7,0x0,0x0,0xff949494, | ||
202 | 0xffc0c0c0,0xffd6d6d6,0xffd5d5d5,0xffdddddd,0xffa8a8a8,0xff2f2f2f,0xff1f1f1f,0xff4a4a4a,0xffdddddd,0xffdddddd,0xffdddddd,0xffd4d4d4,0xffcecece,0xff939393, | ||
203 | 0x0,0xff42f7,0xff42f7,0x0,0x0,0xff9b9b9b,0xffcecece,0xffdcdcdc,0xffe6e6e6,0xffbbbbbb,0xff444444,0xff4c4c4c,0xffb5b5b5,0xff3a3a3a, | ||
204 | 0xff585858,0xffe6e6e6,0xffe5e5e5,0xffdedede,0xffcdcdcd,0xff9a9a9a,0x0,0xd90200,0xe82c92,0x0,0x0,0xffa4a4a4,0xffd1d1d1,0xffeeeeee, | ||
205 | 0xffc3c3c3,0xff5f5f5f,0xff5f5f5f,0xffeeeeee,0xffefefef,0xffc2c2c2,0xff4d4d4d,0xff797979,0xffeeeeee,0xffe6e6e6,0xffcccccc,0xff9b9b9b,0x0,0x0, | ||
206 | 0x400000,0x0,0x0,0xffa3a3a3,0xffd9d9d9,0xffe1e1e1,0xff8c8c8c,0xff7c7c7c,0xfff6f6f6,0xfff6f6f6,0xfff6f6f6,0xfff7f7f7,0xffd1d1d1,0xff707070, | ||
207 | 0xffa8a8a8,0xfff6f6f6,0xffd4d4d4,0xffa4a4a4,0x0,0x6c7574,0x6f6e20,0x0,0x0,0xffa5a5a5,0xffeeeeee,0xffe8e8e8,0xffadadad,0xfffefefe, | ||
208 | 0xfffefefe,0xfffefefe,0xfffdfdfd,0xfffefefe,0xfffefefe,0xffe9e9e9,0xffadadad,0xfffefefe,0xffd9d9d9,0xffa4a4a4,0x0,0xe90100,0xc86240,0x0, | ||
209 | 0x0,0xff939393,0xffd2d2d2,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffdfdfd,0xfffefefe,0xfffefefe, | ||
210 | 0xffd1d1d1,0xff939393,0x0,0x2d0014,0x490079,0x0,0x0,0xff797979,0xffa8a8a8,0xffc0c0c0,0xffededed,0xffeeeeee,0xffeeeeee,0xffeeeeee, | ||
211 | 0xffefefef,0xffeeeeee,0xffeeeeee,0xffefefef,0xffeeeeee,0xffc0c0c0,0xffa8a8a8,0xff7a7a7a,0x0,0x0,0x0,0x0,0x0,0xaa848484, | ||
212 | 0xea787878,0xff7c7c7c,0xff7c7c7c,0xff7c7c7c,0xff7c7c7c,0xff7c7c7c,0xff7c7c7c,0xff7c7c7c,0xff7c7c7c,0xff7c7c7c,0xff7c7c7c,0xff7c7c7c,0xea787878,0xaa848484, | ||
213 | 0x0,0xe06140,0xff42f7,0x0,0x0,0x40737373,0xaa787878,0xff7b7b7b,0xff727272,0xff717171,0xff727272,0xff737373,0xff727272,0xff727272, | ||
214 | 0xff727272,0xff727272,0xff727272,0xff7a7a7a,0xaa787878,0x40737373,0x0,0x906140,0xff42f7,0x0,0x0,0x0,0x0,0x0, | ||
215 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
216 | 0x59,0xf8b092,0x28b192,0x0,0x52,0x7b14ae,0xe17a74,0x0,0xf0,0x0,0x0,0x0,0x52,0x7b14ae, | ||
217 | 0xe17a74,0x0,0xf0,0x30000,0x0,0x0 | ||
218 | }; | ||
219 | |||
220 | static const QRgb clear_fill_large_data[] = { | ||
221 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
222 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
223 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
224 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
225 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
226 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
227 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffefefef,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
228 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
229 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
230 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
231 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
232 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
233 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffe7e7e7,0xffefefef, | ||
234 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
235 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
236 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
237 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
238 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
239 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
240 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
241 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
242 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
243 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede, | ||
244 | 0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede, | ||
245 | 0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede, | ||
246 | 0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede, | ||
247 | 0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede, | ||
248 | 0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede, | ||
249 | 0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffd6d6d6, | ||
250 | 0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6, | ||
251 | 0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6, | ||
252 | 0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6, | ||
253 | 0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6, | ||
254 | 0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6, | ||
255 | 0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6, | ||
256 | 0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6, | ||
257 | 0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6, | ||
258 | 0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6, | ||
259 | 0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6, | ||
260 | 0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6, | ||
261 | 0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6, | ||
262 | 0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffdedede,0xffdedede, | ||
263 | 0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede, | ||
264 | 0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede, | ||
265 | 0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffd6d6d6, | ||
266 | 0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede, | ||
267 | 0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede, | ||
268 | 0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede, | ||
269 | 0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
270 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
271 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
272 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffdedede,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
273 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
274 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
275 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
276 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
277 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
278 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffe7e7e7,0xffefefef,0xffefefef, | ||
279 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
280 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
281 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
282 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
283 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
284 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
285 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
286 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
287 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
288 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
289 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
290 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
291 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
292 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
293 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
294 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xfff7f7f7, | ||
295 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
296 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
297 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
298 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
299 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
300 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
301 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
302 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
303 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
304 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
305 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
306 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
307 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfff7f7f7,0xffffffff,0xffffffff,0xffffffff, | ||
308 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
309 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
310 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
311 | 0xfff7f7f7,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
312 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
313 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
314 | 0xffffffff,0xffffffff,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
315 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
316 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
317 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
318 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
319 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
320 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
321 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
322 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
323 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xffffffff,0xffffffff, | ||
324 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
325 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
326 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
327 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
328 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
329 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
330 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
331 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
332 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
333 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
334 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
335 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
336 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
337 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
338 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
339 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
340 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
341 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
342 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
343 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
344 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
345 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
346 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
347 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
348 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
349 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xffffffff,0xffffffff,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
350 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
351 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
352 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xffffffff,0xffffffff,0xfff7f7f7,0xfff7f7f7, | ||
353 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
354 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
355 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xffffffff, | ||
356 | 0xffffffff,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
357 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
358 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
359 | 0xfff7f7f7,0xfff7f7f7,0xffffffff,0xfff7f7f7,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
360 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
361 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
362 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfff7f7f7 | ||
363 | }; | ||
364 | |||
365 | static const QRgb clear_fill_small_data[] = { | ||
366 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
367 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
368 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
369 | 0xffececec,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9, | ||
370 | 0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9, | ||
371 | 0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffe9e9e9,0xffececec, | ||
372 | 0xffebebeb,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed, | ||
373 | 0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed, | ||
374 | 0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffebebeb, | ||
375 | 0xffe5e5e5,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
376 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
377 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe5e5e5, | ||
378 | 0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0, | ||
379 | 0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0, | ||
380 | 0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0, | ||
381 | 0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9, | ||
382 | 0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9, | ||
383 | 0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9, | ||
384 | 0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7, | ||
385 | 0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7, | ||
386 | 0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7,0xffd7d7d7, | ||
387 | 0xffd7d7d7,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9, | ||
388 | 0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9, | ||
389 | 0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd9d9d9,0xffd7d7d7, | ||
390 | 0xffdcdcdc,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0, | ||
391 | 0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0, | ||
392 | 0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffdcdcdc, | ||
393 | 0xffe3e3e3,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
394 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
395 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe3e3e3, | ||
396 | 0xffebebeb,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed, | ||
397 | 0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed, | ||
398 | 0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffebebeb, | ||
399 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
400 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
401 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
402 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
403 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
404 | 0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef,0xffefefef, | ||
405 | 0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2, | ||
406 | 0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2, | ||
407 | 0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2, | ||
408 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
409 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
410 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
411 | 0xfff9f9f9,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
412 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
413 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfff9f9f9, | ||
414 | 0xfffafafa,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd, | ||
415 | 0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd, | ||
416 | 0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffafafa, | ||
417 | 0xfff8f8f8,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa, | ||
418 | 0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa, | ||
419 | 0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfffafafa,0xfff8f8f8, | ||
420 | 0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9, | ||
421 | 0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9, | ||
422 | 0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9, | ||
423 | 0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd, | ||
424 | 0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd, | ||
425 | 0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd,0xfffdfdfd, | ||
426 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
427 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
428 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
429 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
430 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
431 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff, | ||
432 | 0xffffffff,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe, | ||
433 | 0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe, | ||
434 | 0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xffffffff, | ||
435 | 0xffffffff,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9, | ||
436 | 0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9, | ||
437 | 0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xfff9f9f9,0xffffffff, | ||
438 | 0xfffefefe,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
439 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
440 | 0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfffefefe, | ||
441 | 0xfffafafa,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc, | ||
442 | 0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc, | ||
443 | 0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffafafa | ||
444 | }; | ||
445 | |||
446 | static const QRgb htmlbtnborder_data[] = { | ||
447 | 0x0,0x0,0x0,0x0,0x0,0x0,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894, | ||
448 | 0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894, | ||
449 | 0xff9a9894,0xff9a9894,0xff9a9894,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff9a9894, | ||
450 | 0xff9a9894,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
451 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff9a9894,0xff9a9894, | ||
452 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff9a9894,0x0,0x0,0x0,0x0,0x0,0x0, | ||
453 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
454 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff9a9894,0x0,0x0,0x0,0x0, | ||
455 | 0x0,0xff9a9894,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
456 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
457 | 0x0,0x0,0x0,0x0,0x0,0xff9a9894,0x0,0x0,0x0,0xff9a9894,0x0,0x0,0x0,0x0, | ||
458 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
459 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
460 | 0x0,0xff9a9894,0x0,0x0,0xff9a9894,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
461 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
462 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff9a9894,0x0,0xff9a9894,0x0, | ||
463 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
464 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
465 | 0x0,0x0,0x0,0x0,0x0,0x0,0xff9a9894,0xff9a9894,0x0,0x0,0x0,0x0,0x0,0x0, | ||
466 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
467 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
468 | 0x0,0xff9a9894,0xff9a9894,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
469 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
470 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff9a9894,0xff9a9894,0x0,0x0, | ||
471 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
472 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
473 | 0x0,0x0,0x0,0x0,0x0,0xff9a9894,0xff9a9894,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
474 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
475 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
476 | 0xff9a9894,0xff9a9894,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
477 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
478 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff9a9894,0xff9a9894,0x0,0x0,0x0, | ||
479 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
480 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
481 | 0x0,0x0,0x0,0x0,0xff9a9894,0xff9a9894,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
482 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
483 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff9a9894, | ||
484 | 0xff9a9894,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
485 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
486 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff9a9894,0xff9a9894,0x0,0x0,0x0,0x0, | ||
487 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
488 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
489 | 0x0,0x0,0x0,0xff9a9894,0xff9a9894,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
490 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
491 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff9a9894,0xff9a9894, | ||
492 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
493 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
494 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff9a9894,0xff9a9894,0x0,0x0,0x0,0x0,0x0, | ||
495 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
496 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
497 | 0x0,0x0,0xff9a9894,0xff9a9894,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
498 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
499 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff9a9894,0xff9a9894,0xff9a9894, | ||
500 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
501 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
502 | 0x0,0x0,0x0,0x0,0x0,0xff9a9894,0x0,0x0,0xff9a9894,0x0,0x0,0x0,0x0,0x0, | ||
503 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
504 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
505 | 0xff9a9894,0x0,0x0,0x0,0xff9a9894,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
506 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
507 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff9a9894,0x0,0x0,0x0,0x0,0x0, | ||
508 | 0xff9a9894,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
509 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
510 | 0x0,0x0,0xff9a9894,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff9a9894,0xff9a9894,0x0,0x0, | ||
511 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
512 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff9a9894,0xff9a9894,0x0,0x0,0x0, | ||
513 | 0x0,0x0,0x0,0x0,0x0,0x0,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894, | ||
514 | 0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894, | ||
515 | 0xff9a9894,0xff9a9894,0xff9a9894,0xff9a9894,0x0,0x0,0x0,0x0,0x0,0x0 | ||
516 | }; | ||
517 | |||
518 | static const QRgb htmlcheckbox_data[] = { | ||
519 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
520 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
521 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
522 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
523 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151, | ||
524 | 0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0x0,0x0,0x0,0x0,0x0,0x0,0xff515151,0xff6b6b6b, | ||
525 | 0xffa5a5a5,0xffb5b5b5,0xffb5b5b5,0xffb6b6b6,0xffb5b5b5,0xffb6b6b6,0xffb5b5b5,0xffb4b4b4,0xffb5b5b5,0xffb6b6b6,0xff9b9b9b,0xff6b6b6b,0xff515151,0x0, | ||
526 | 0x0,0x0,0x0,0x0,0xff515151,0xffadadad,0xffd5d5d5,0xffdedede,0xffdfdfdf,0xffdddddd,0xffdfdfdf,0xffdddddd,0xffdedede,0xffdedede, | ||
527 | 0xffdedede,0xffdedede,0xffd6d6d6,0xffa5a5a5,0xff515151,0x0,0x0,0x0,0x0,0x0,0xff515151,0xffbdbdbd,0xffcfcfcf,0xffd6d6d6, | ||
528 | 0xffd6d6d6,0xffd7d7d7,0xffd5d5d5,0xffd7d7d7,0xffd6d6d6,0xffd6d6d6,0xffd5d5d5,0xffd6d6d6,0xffcecece,0xffb5b5b5,0xff515151,0x0,0x0,0x0, | ||
529 | 0x0,0x0,0xff515151,0xffacacac,0xffbebebe,0xffbdbdbd,0xffbcbcbc,0xffc7c7c7,0xffbebebe,0xffbcbcbc,0xffbdbdbd,0xffbdbdbd,0xffbdbdbd,0xffbdbdbd, | ||
530 | 0xffbdbdbd,0xffadadad,0xff515151,0x0,0x0,0x0,0x0,0x0,0xff515151,0xffaeaeae,0xffbdbdbd,0xffbcbcbc,0xffbdbdbd,0xffbcbcbc, | ||
531 | 0xffbdbdbd,0xffbdbdbd,0xffbdbdbd,0xffbdbdbd,0xffbdbdbd,0xffbdbdbd,0xffbcbcbc,0xffaeaeae,0xff515151,0x0,0x0,0x0,0x0,0x0, | ||
532 | 0xff515151,0xffb5b5b5,0xffc6c6c6,0xffc6c6c6,0xffc7c7c7,0xffcecece,0xffc6c6c6,0xffc6c6c6,0xffc7c7c7,0xffcecece,0xffc7c7c7,0xffc6c6c6,0xffc6c6c6,0xffbdbdbd, | ||
533 | 0xff515151,0x0,0x0,0x0,0x0,0x0,0xff515151,0xffbcbcbc,0xffcecece,0xffcecece,0xffcdcdcd,0xffcdcdcd,0xffcfcfcf,0xffcecece, | ||
534 | 0xffcecece,0xffcecece,0xffcecece,0xffd6d6d6,0xffcecece,0xffc5c5c5,0xff515151,0x0,0x0,0x0,0x0,0x0,0xff515151,0xffcdcdcd, | ||
535 | 0xffd7d7d7,0xffd6d6d6,0xffdedede,0xffd6d6d6,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffd5d5d5,0xffcfcfcf,0xff515151,0x0, | ||
536 | 0x0,0x0,0x0,0x0,0xff515151,0xffcfcfcf,0xffdddddd,0xffe7e7e7,0xffe6e6e6,0xffe7e7e7,0xffe6e6e6,0xffe7e7e7,0xffe8e8e8,0xffdedede, | ||
537 | 0xffe7e7e7,0xffe6e6e6,0xffdfdfdf,0xffcecece,0xff515151,0x0,0x0,0x0,0x0,0x0,0xff515151,0xffdddddd,0xffefefef,0xffe7e7e7, | ||
538 | 0xffefefef,0xffeeeeee,0xffefefef,0xfff0f0f0,0xffeeeeee,0xfff0f0f0,0xffefefef,0xffefefef,0xffe7e7e7,0xffd7d7d7,0xff515151,0x0,0x0,0x0, | ||
539 | 0x0,0x0,0xff515151,0xffe7e7e7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff8f8f8,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7, | ||
540 | 0xfff7f7f7,0xffdedede,0xff515151,0x0,0x0,0x0,0x0,0x0,0xff515151,0xffefefef,0xfffefefe,0xffffffff,0xffffffff,0xffffffff, | ||
541 | 0xffffffff,0xfffefefe,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffe7e7e7,0xff515151,0x0,0x0,0x0,0x0,0x0, | ||
542 | 0xff515151,0xffe7e7e7,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfffefefe,0xffffffff,0xffffffff,0xffe7e7e7, | ||
543 | 0xff515151,0x0,0x0,0x0,0x0,0x0,0xff515151,0xffbdbdbd,0xffe7e7e7,0xffeeeeee,0xffefefef,0xffefefef,0xffefefef,0xfff0f0f0, | ||
544 | 0xffefefef,0xffefefef,0xfff0f0f0,0xffefefef,0xffe7e7e7,0xffbdbdbd,0xff515151,0x0,0x0,0x0,0x0,0x0,0x0,0xff515151, | ||
545 | 0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0x0,0x0, | ||
546 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
547 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
548 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
549 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
550 | 0x0,0x0,0x0,0x0,0x0,0x0 | ||
551 | }; | ||
552 | |||
553 | static const QRgb htmlcheckboxdown_data[] = { | ||
554 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
555 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
556 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
557 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
558 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151, | ||
559 | 0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0x0,0x0,0x0,0x0,0x0,0x0,0xff515151,0xff6b6b6b, | ||
560 | 0xffa5a5a5,0xffb5b5b5,0xffb5b5b5,0xffb6b6b6,0xffb5b5b5,0xffb6b6b6,0xffb5b5b5,0xffb4b4b4,0xffb5b5b5,0xffb6b6b6,0xff9b9b9b,0xff6b6b6b,0xff515151,0x0, | ||
561 | 0x0,0x0,0x0,0x0,0xff515151,0xffadadad,0xffd5d5d5,0xffdedede,0xffdfdfdf,0xffdddddd,0xffdfdfdf,0xffdddddd,0xffdedede,0xffdedede, | ||
562 | 0xffdedede,0xffdedede,0xffd6d6d6,0xffa5a5a5,0xff515151,0x0,0x0,0x0,0x0,0x0,0xff515151,0xffbdbdbd,0xffcfcfcf,0xff5e5e5e, | ||
563 | 0xffd6d6d6,0xffd7d7d7,0xffd5d5d5,0xffd7d7d7,0xffd6d6d6,0xffd6d6d6,0xffd5d5d5,0xff5e5e5e,0xffcecece,0xffb5b5b5,0xff515151,0x0,0x0,0x0, | ||
564 | 0x0,0x0,0xff515151,0xffacacac,0xffbebebe,0xff525252,0xff2a2a2a,0xffc7c7c7,0xffbebebe,0xffbcbcbc,0xffbdbdbd,0xffbdbdbd,0xff2a2a2a,0xff525252, | ||
565 | 0xffbdbdbd,0xffadadad,0xff515151,0x0,0x0,0x0,0x0,0x0,0xff515151,0xffaeaeae,0xffbdbdbd,0xffbcbcbc,0xff2a2a2a,0xff181818, | ||
566 | 0xffbdbdbd,0xffbdbdbd,0xffbdbdbd,0xff191919,0xff2a2a2a,0xffbdbdbd,0xffbcbcbc,0xffaeaeae,0xff515151,0x0,0x0,0x0,0x0,0x0, | ||
567 | 0xff515151,0xffb5b5b5,0xffc6c6c6,0xffc6c6c6,0xffc7c7c7,0xff1b1b1b,0xff121212,0xffc6c6c6,0xff121212,0xff1b1b1b,0xffc7c7c7,0xffc6c6c6,0xffc6c6c6,0xffbdbdbd, | ||
568 | 0xff515151,0x0,0x0,0x0,0x0,0x0,0xff515151,0xffbcbcbc,0xffcecece,0xffcecece,0xffcdcdcd,0xffcdcdcd,0xff121212,0xff050505, | ||
569 | 0xff121212,0xffcecece,0xffcecece,0xffd6d6d6,0xffcecece,0xffc5c5c5,0xff515151,0x0,0x0,0x0,0x0,0x0,0xff515151,0xffcdcdcd, | ||
570 | 0xffd7d7d7,0xffd6d6d6,0xffdedede,0xffd6d6d6,0xff141414,0xff050505,0xff141414,0xffdedede,0xffdedede,0xffdedede,0xffd5d5d5,0xffcfcfcf,0xff515151,0x0, | ||
571 | 0x0,0x0,0x0,0x0,0xff515151,0xffcfcfcf,0xffdddddd,0xffe7e7e7,0xffe6e6e6,0xff1f1f1f,0xff151515,0xffe7e7e7,0xff151515,0xff1e1e1e, | ||
572 | 0xffe7e7e7,0xffe6e6e6,0xffdfdfdf,0xffcecece,0xff515151,0x0,0x0,0x0,0x0,0x0,0xff515151,0xffdddddd,0xffefefef,0xffe7e7e7, | ||
573 | 0xff363636,0xff202020,0xffefefef,0xfff0f0f0,0xffeeeeee,0xff202020,0xff363636,0xffefefef,0xffe7e7e7,0xffd7d7d7,0xff515151,0x0,0x0,0x0, | ||
574 | 0x0,0x0,0xff515151,0xffe7e7e7,0xfff7f7f7,0xff6c6c6c,0xff383838,0xfff7f7f7,0xfff7f7f7,0xfff7f7f7,0xfff8f8f8,0xfff7f7f7,0xff383838,0xff6c6c6c, | ||
575 | 0xfff7f7f7,0xffdedede,0xff515151,0x0,0x0,0x0,0x0,0x0,0xff515151,0xffefefef,0xfffefefe,0xff707070,0xffffffff,0xffffffff, | ||
576 | 0xffffffff,0xfffefefe,0xffffffff,0xffffffff,0xffffffff,0xff707070,0xffffffff,0xffe7e7e7,0xff515151,0x0,0x0,0x0,0x0,0x0, | ||
577 | 0xff515151,0xffe7e7e7,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfffefefe,0xffffffff,0xffffffff,0xffe7e7e7, | ||
578 | 0xff515151,0x0,0x0,0x0,0x0,0x0,0xff515151,0xffbdbdbd,0xffe7e7e7,0xffeeeeee,0xffefefef,0xffefefef,0xffefefef,0xfff0f0f0, | ||
579 | 0xffefefef,0xffefefef,0xfff0f0f0,0xffefefef,0xffe7e7e7,0xffbdbdbd,0xff515151,0x0,0x0,0x0,0x0,0x0,0x0,0xff515151, | ||
580 | 0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0xff515151,0x0,0x0, | ||
581 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
582 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
583 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
584 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0, | ||
585 | 0x0,0x0,0x0,0x0,0x0,0x0 | ||
586 | }; | ||
587 | |||
588 | static const QRgb htmlradio_data[] = { | ||
589 | 0x0,0x0,0x0,0x0,0x0,0x0,0xff525252,0xff3a3a3a,0xff3a3a3a,0xff515151,0x0,0x0,0x0,0x0, | ||
590 | 0x0,0x0,0x0,0x0,0x0,0x0,0xff616161,0xff555555,0xff757575,0xff878787,0xff878787,0xff757575,0xff565656,0xff5d5d5d, | ||
591 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff6e6e6e,0xff7d7d7d,0xff9e9e9e,0xffb9b9b9,0xffc6c6c6,0xffc6c6c6,0xffbababa, | ||
592 | 0xffa5a5a5,0xff7f7f7f,0xff686868,0x0,0x0,0x0,0x0,0x0,0xff7a7a7a,0xff848484,0xffa7a7a7,0xffbfbfbf,0xffd1d1d1,0xffd7d7d7, | ||
593 | 0xffdadada,0xffd7d7d7,0xffcbcbcb,0xffababab,0xff7d7d7d,0xff717171,0x0,0x0,0x0,0x0,0xff7f7f7f,0xff9e9e9e,0xffb3b3b3,0xffc2c2c2, | ||
594 | 0xffcacaca,0xffcacaca,0xffcacaca,0xffc9c9c9,0xffc6c6c6,0xffb6b6b6,0xff9a9a9a,0xff797979,0x0,0x0,0x0,0xff8d8d8d,0xff999999,0xffb0b0b0, | ||
595 | 0xffbababa,0xffc2c2c2,0xffc4c4c4,0xffc3c3c3,0xffc3c3c3,0xffc0c0c0,0xffc0c0c0,0xffbababa,0xffaeaeae,0xff969696,0xff868686,0x0,0x0,0xff939393, | ||
596 | 0xffb0b0b0,0xffc1c1c1,0xffc6c6c6,0xffcccccc,0xffcccccc,0xffcccccc,0xffcccccc,0xffcbcbcb,0xffc9c9c9,0xffc5c5c5,0xffbebebe,0xffaaaaaa,0xff8b8b8b,0x0, | ||
597 | 0x0,0xff9c9c9c,0xffbfbfbf,0xffcecece,0xffd4d4d4,0xffdadada,0xffdbdbdb,0xffdedede,0xffdbdbdb,0xffd7d7d7,0xffd5d5d5,0xffd3d3d3,0xffcbcbcb,0xffbcbcbc, | ||
598 | 0xff959595,0x0,0x0,0xff9d9d9d,0xffcdcdcd,0xffdbdbdb,0xffe0e0e0,0xffe4e4e4,0xffe8e8e8,0xffebebeb,0xffe9e9e9,0xffe6e6e6,0xffe4e4e4,0xffdddddd, | ||
599 | 0xffd4d4d4,0xffc5c5c5,0xff979797,0x0,0x0,0xff979797,0xffd1d1d1,0xffe1e1e1,0xffededed,0xfff1f1f1,0xfff5f5f5,0xfff8f8f8,0xfff6f6f6,0xfff3f3f3, | ||
600 | 0xffeeeeee,0xffe5e5e5,0xffdcdcdc,0xffcacaca,0xff939393,0x0,0x0,0xff909090,0xffb7b7b7,0xffe2e2e2,0xfff1f1f1,0xfff8f8f8,0xfffdfdfd,0xffffffff, | ||
601 | 0xfffdfdfd,0xfffcfcfc,0xfff7f7f7,0xffeeeeee,0xffe1e1e1,0xffb5b5b5,0xff909090,0x0,0x0,0x0,0xff8d8d8d,0xffd1d1d1,0xfff2f2f2,0xfffdfdfd, | ||
602 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfffafafa,0xfff1f1f1,0xffcdcdcd,0xff8c8c8c,0x0,0x0,0x0,0x0,0xff878787,0xff9b9b9b, | ||
603 | 0xffd5d5d5,0xfffbfbfb,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfffafafa,0xffd4d4d4,0xff999999,0xff868686,0x0,0x0,0x0,0x0, | ||
604 | 0x0,0xff848484,0xff818181,0xffa9a9a9,0xffcccccc,0xffe9e9e9,0xffe9e9e9,0xffcccccc,0xffa9a9a9,0xff818181,0xff848484,0x0,0x0,0x0, | ||
605 | 0x0,0x0,0x0,0x0,0xff818181,0xff747474,0xff6f6f6f,0xff6e6e6e,0xff6e6e6e,0xff6f6f6f,0xff747474,0xff818181,0x0,0x0, | ||
606 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff898989,0xff7c7c7c,0xff7b7b7b,0xff888888,0x0,0x0, | ||
607 | 0x0,0x0,0x0,0x0 | ||
608 | }; | ||
609 | |||
610 | static const QRgb htmlradiodown_data[] = { | ||
611 | 0x0,0x0,0x0,0x0,0x0,0x0,0xff525252,0xff3a3a3a,0xff3a3a3a,0xff515151,0x0,0x0,0x0,0x0, | ||
612 | 0x0,0x0,0x0,0x0,0x0,0x0,0xff616161,0xff555555,0xff757575,0xff878787,0xff878787,0xff757575,0xff565656,0xff5d5d5d, | ||
613 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff6e6e6e,0xff7d7d7d,0xff9d9d9d,0xffb6b6b6,0xffc2c2c2,0xffc2c2c2,0xffb6b6b6, | ||
614 | 0xffa3a3a3,0xff7f7f7f,0xff686868,0x0,0x0,0x0,0x0,0x0,0xff7a7a7a,0xff848484,0xffa6a6a6,0xffb9b9b9,0xffc4c4c4,0xffc6c6c6, | ||
615 | 0xffc8c8c8,0xffc7c7c7,0xffc1c1c1,0xffa8a8a8,0xff7d7d7d,0xff717171,0x0,0x0,0x0,0x0,0xff7f7f7f,0xff9d9d9d,0xffaeaeae,0xffb2b2b2, | ||
616 | 0xffacacac,0xffa3a3a3,0xff9f9f9f,0xffa5a5a5,0xffaeaeae,0xffababab,0xff979797,0xff797979,0x0,0x0,0x0,0xff8d8d8d,0xff989898,0xffababab, | ||
617 | 0xffacacac,0xffa1a1a1,0xff8a8a8a,0xff747474,0xff6e6e6e,0xff797979,0xff919191,0xffa2a2a2,0xffa5a5a5,0xff949494,0xff868686,0x0,0x0,0xff939393, | ||
618 | 0xffaeaeae,0xffb7b7b7,0xffadadad,0xff959595,0xff6b6b6b,0xff454545,0xff3b3b3b,0xff515151,0xff797979,0xff9d9d9d,0xffaeaeae,0xffa5a5a5,0xff8b8b8b,0x0, | ||
619 | 0x0,0xff9c9c9c,0xffbdbdbd,0xffc2c2c2,0xffb3b3b3,0xff909090,0xff565656,0xff232323,0xff131313,0xff323232,0xff6a6a6a,0xff9e9e9e,0xffb6b6b6,0xffb6b6b6, | ||
620 | 0xff959595,0x0,0x0,0xff9d9d9d,0xffcbcbcb,0xffcecece,0xffbdbdbd,0xff979797,0xff5b5b5b,0xff252525,0xff151515,0xff363636,0xff717171,0xffa5a5a5, | ||
621 | 0xffbebebe,0xffbebebe,0xff979797,0x0,0x0,0xff979797,0xffcfcfcf,0xffd6d6d6,0xffd0d0d0,0xffb0b0b0,0xff808080,0xff545454,0xff474747,0xff616161, | ||
622 | 0xff8f8f8f,0xffb7b7b7,0xffc9c9c9,0xffc4c4c4,0xff939393,0x0,0x0,0xff909090,0xffb6b6b6,0xffdcdcdc,0xffdfdfdf,0xffcecece,0xffb2b2b2,0xff989898, | ||
623 | 0xff8e8e8e,0xff9f9f9f,0xffbababa,0xffd0d0d0,0xffd5d5d5,0xffb2b2b2,0xff909090,0x0,0x0,0x0,0xff8d8d8d,0xffd0d0d0,0xffebebeb,0xffe8e8e8, | ||
624 | 0xffdadada,0xffcecece,0xffc9c9c9,0xffd2d2d2,0xffdcdcdc,0xffe2e2e2,0xffc9c9c9,0xff8c8c8c,0x0,0x0,0x0,0x0,0xff878787,0xff9b9b9b, | ||
625 | 0xffd4d4d4,0xfff4f4f4,0xfff0f0f0,0xffececec,0xffeaeaea,0xffededed,0xffeeeeee,0xffd0d0d0,0xff999999,0xff868686,0x0,0x0,0x0,0x0, | ||
626 | 0x0,0xff848484,0xff818181,0xffa8a8a8,0xffc8c8c8,0xffe4e4e4,0xffe4e4e4,0xffc8c8c8,0xffa7a7a7,0xff818181,0xff848484,0x0,0x0,0x0, | ||
627 | 0x0,0x0,0x0,0x0,0xff818181,0xff747474,0xff6f6f6f,0xff6e6e6e,0xff6e6e6e,0xff6f6f6f,0xff747474,0xff818181,0x0,0x0, | ||
628 | 0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,0xff898989,0xff7c7c7c,0xff7b7b7b,0xff888888,0x0,0x0, | ||
629 | 0x0,0x0,0x0,0x0 | ||
630 | }; | ||
631 | |||
632 | static const QRgb radio_data[] = { | ||
633 | 0x0,0x0,0x0,0x0,0x3bdbdbd,0x797d7d7d,0xcd525252,0xf93a3a3a,0xf93a3a3a,0xcd515151,0x797c7c7c,0x3bdbdbd,0x0,0x0, | ||
634 | 0x0,0x0,0x0,0x0,0x0,0x399d9d9d,0xda616161,0xff555555,0xff757575,0xff878787,0xff878787,0xff757575,0xff565656,0xda5d5d5d, | ||
635 | 0x39969696,0x0,0x0,0x0,0x0,0x0,0x2bacacac,0xf06e6e6e,0xff7d7d7d,0xff9e9e9e,0xffb9b9b9,0xffc6c6c6,0xffc6c6c6,0xffbababa, | ||
636 | 0xffa5a5a5,0xff7f7f7f,0xf0686868,0x2ba3a3a3,0x0,0x0,0x0,0x0,0xbe7a7a7a,0xff848484,0xffa7a7a7,0xffbfbfbf,0xffd1d1d1,0xffd7d7d7, | ||
637 | 0xffdadada,0xffd7d7d7,0xffcbcbcb,0xffababab,0xff7d7d7d,0xbe717171,0x0,0x0,0x0,0x4e9a9a9a,0xff7f7f7f,0xff9e9e9e,0xffb3b3b3,0xffc2c2c2, | ||
638 | 0xffcacaca,0xffcacaca,0xffcacaca,0xffc9c9c9,0xffc6c6c6,0xffb6b6b6,0xff9a9a9a,0xff797979,0x4e919191,0x0,0x0,0xa48d8d8d,0xff999999,0xffb0b0b0, | ||
639 | 0xffbababa,0xffc2c2c2,0xffc4c4c4,0xffc3c3c3,0xffc3c3c3,0xffc0c0c0,0xffc0c0c0,0xffbababa,0xffaeaeae,0xff969696,0xa4868686,0x0,0x0,0xde939393, | ||
640 | 0xffb0b0b0,0xffc1c1c1,0xffc6c6c6,0xffcccccc,0xffcccccc,0xffcccccc,0xffcccccc,0xffcbcbcb,0xffc9c9c9,0xffc5c5c5,0xffbebebe,0xffaaaaaa,0xde8b8b8b,0x0, | ||
641 | 0x0,0xfb9c9c9c,0xffbfbfbf,0xffcecece,0xffd4d4d4,0xffdadada,0xffdbdbdb,0xffdedede,0xffdbdbdb,0xffd7d7d7,0xffd5d5d5,0xffd3d3d3,0xffcbcbcb,0xffbcbcbc, | ||
642 | 0xfb959595,0x0,0x0,0xfb9d9d9d,0xffcdcdcd,0xffdbdbdb,0xffe0e0e0,0xffe4e4e4,0xffe8e8e8,0xffebebeb,0xffe9e9e9,0xffe6e6e6,0xffe4e4e4,0xffdddddd, | ||
643 | 0xffd4d4d4,0xffc5c5c5,0xfb979797,0x0,0x0,0xde979797,0xffd1d1d1,0xffe1e1e1,0xffededed,0xfff1f1f1,0xfff5f5f5,0xfff8f8f8,0xfff6f6f6,0xfff3f3f3, | ||
644 | 0xffeeeeee,0xffe5e5e5,0xffdcdcdc,0xffcacaca,0xde939393,0x0,0x0,0xa4909090,0xffb7b7b7,0xffe2e2e2,0xfff1f1f1,0xfff8f8f8,0xfffdfdfd,0xffffffff, | ||
645 | 0xfffdfdfd,0xfffcfcfc,0xfff7f7f7,0xffeeeeee,0xffe1e1e1,0xffb5b5b5,0xa4909090,0x0,0x0,0x4e939393,0xff8d8d8d,0xffd1d1d1,0xfff2f2f2,0xfffdfdfd, | ||
646 | 0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfffafafa,0xfff1f1f1,0xffcdcdcd,0xff8c8c8c,0x4e949494,0x0,0x0,0x0,0xbe878787,0xff9b9b9b, | ||
647 | 0xffd5d5d5,0xfffbfbfb,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfffafafa,0xffd4d4d4,0xff999999,0xbe868686,0x0,0x0,0x0,0x0, | ||
648 | 0x2bababab,0xf0848484,0xff818181,0xffa9a9a9,0xffcccccc,0xffe9e9e9,0xffe9e9e9,0xffcccccc,0xffa9a9a9,0xff818181,0xf0848484,0x2bababab,0x0,0x0, | ||
649 | 0x0,0x0,0x0,0x39a5a5a5,0xda818181,0xff747474,0xff6f6f6f,0xff6e6e6e,0xff6e6e6e,0xff6f6f6f,0xff747474,0xda818181,0x39a5a5a5,0x0, | ||
650 | 0x0,0x0,0x0,0x0,0x0,0x0,0x3aeaeae,0x79949494,0xcd898989,0xf97c7c7c,0xf97b7b7b,0xcd888888,0x79959595,0x3afafaf, | ||
651 | 0x0,0x0,0x0,0x0 | ||
652 | }; | ||
653 | |||
654 | static const QRgb radio_down_data[] = { | ||
655 | 0x0,0x0,0x0,0x0,0x3bdbdbd,0x797d7d7d,0xcd525252,0xf93a3a3a,0xf93a3a3a,0xcd515151,0x797c7c7c,0x3bdbdbd,0x0,0x0, | ||
656 | 0x0,0x0,0x0,0x0,0x0,0x399d9d9d,0xda616161,0xff555555,0xff757575,0xff878787,0xff878787,0xff757575,0xff565656,0xda5d5d5d, | ||
657 | 0x39969696,0x0,0x0,0x0,0x0,0x0,0x2bacacac,0xf06e6e6e,0xff7d7d7d,0xff9e9e9e,0xffb9b9b9,0xffc6c6c6,0xffc6c6c6,0xffbababa, | ||
658 | 0xffa5a5a5,0xff7f7f7f,0xf0686868,0x2ba3a3a3,0x0,0x0,0x0,0x0,0xbe7a7a7a,0xff848484,0xffa7a7a7,0xffbcbcbc,0xffcacaca,0xffcdcdcd, | ||
659 | 0xffd0d0d0,0xffd0d0d0,0xffc8c8c8,0xffababab,0xff7d7d7d,0xbe717171,0x0,0x0,0x0,0x4e9a9a9a,0xff7f7f7f,0xff9e9e9e,0xffb0b0b0,0xffb6b6b6, | ||
660 | 0xffb3b3b3,0xffaaaaaa,0xffaaaaaa,0xffb2b2b2,0xffbababa,0xffb3b3b3,0xff9a9a9a,0xff797979,0x4e919191,0x0,0x0,0xa48d8d8d,0xff999999,0xffadadad, | ||
661 | 0xffafafaf,0xffa5a5a5,0xff8a8a8a,0xff717171,0xff717171,0xff878787,0xffa3a3a3,0xffafafaf,0xffababab,0xff969696,0xa4868686,0x0,0x0,0xde939393, | ||
662 | 0xffb0b0b0,0xffbdbdbd,0xffb4b4b4,0xff979797,0xff606060,0xff333333,0xff333333,0xff606060,0xff949494,0xffb3b3b3,0xffbababa,0xffaaaaaa,0xde8b8b8b,0x0, | ||
663 | 0x0,0xfb9c9c9c,0xffbfbfbf,0xffc9c9c9,0xffbcbcbc,0xff949494,0xff4e4e4e,0xff131313,0xff121212,0xff4c4c4c,0xff919191,0xffbbbbbb,0xffc6c6c6,0xffbcbcbc, | ||
664 | 0xfb959595,0x0,0x0,0xfb9d9d9d,0xffcdcdcd,0xffd6d6d6,0xffcbcbcb,0xffa8a8a8,0xff6e6e6e,0xff3a3a3a,0xff3a3a3a,0xff6d6d6d,0xffa8a8a8,0xffc9c9c9, | ||
665 | 0xffcfcfcf,0xffc5c5c5,0xfb979797,0x0,0x0,0xde979797,0xffd1d1d1,0xffdedede,0xffdfdfdf,0xffcdcdcd,0xffacacac,0xff8f8f8f,0xff8e8e8e,0xffababab, | ||
666 | 0xffcacaca,0xffd8d8d8,0xffd9d9d9,0xffcacaca,0xde939393,0x0,0x0,0xa4909090,0xffb7b7b7,0xffe2e2e2,0xffededed,0xffe9e9e9,0xffe0e0e0,0xffd7d7d7, | ||
667 | 0xffd5d5d5,0xffdfdfdf,0xffe8e8e8,0xffeaeaea,0xffe1e1e1,0xffb5b5b5,0xa4909090,0x0,0x0,0x4e939393,0xff8d8d8d,0xffd1d1d1,0xfff2f2f2,0xfffafafa, | ||
668 | 0xfff7f7f7,0xfff4f4f4,0xfff4f4f4,0xfff7f7f7,0xfff7f7f7,0xfff1f1f1,0xffcdcdcd,0xff8c8c8c,0x4e949494,0x0,0x0,0x0,0xbe878787,0xff9b9b9b, | ||
669 | 0xffd5d5d5,0xfffbfbfb,0xffffffff,0xffffffff,0xffffffff,0xffffffff,0xfffafafa,0xffd4d4d4,0xff999999,0xbe868686,0x0,0x0,0x0,0x0, | ||
670 | 0x2bababab,0xf0848484,0xff818181,0xffa9a9a9,0xffcccccc,0xffe9e9e9,0xffe9e9e9,0xffcccccc,0xffa9a9a9,0xff818181,0xf0848484,0x2bababab,0x0,0x0, | ||
671 | 0x0,0x0,0x0,0x39a5a5a5,0xda818181,0xff747474,0xff6f6f6f,0xff6e6e6e,0xff6e6e6e,0xff6f6f6f,0xff747474,0xda818181,0x39a5a5a5,0x0, | ||
672 | 0x0,0x0,0x0,0x0,0x0,0x0,0x3aeaeae,0x79949494,0xcd898989,0xf97c7c7c,0xf97b7b7b,0xcd888888,0x79959595,0x3afafaf, | ||
673 | 0x0,0x0,0x0,0x0 | ||
674 | }; | ||
675 | |||
676 | static const QRgb sbslider_btm_data[] = { | ||
677 | 0xe96e6e6e,0xffb9b9b9,0xffc9c9c9,0xffc0c0c0,0xffbcbcbc,0xff9c9c9c,0xffafafaf,0xffbababa,0xffc3c3c3,0xffcacaca,0xffcbcbcb,0xffcbcbcb,0xe9717171,0xff6d6d6d, | ||
678 | 0xffb0b0b0,0xffc6c6c6,0xffc0c0c0,0xffb8b8b8,0xff9a9a9a,0xffacacac,0xffbababa,0xffc0c0c0,0xffc9c9c9,0xffcacaca,0xffc9c9c9,0xff757575,0xe9737373,0xff999999, | ||
679 | 0xffc1c1c1,0xffbfbfbf,0xffb5b5b5,0xff999999,0xffa7a7a7,0xffb6b6b6,0xffc0c0c0,0xffc5c5c5,0xffc7c7c7,0xffbebebe,0xe97b7b7b,0xac737373,0xff747474,0xff9a9a9a, | ||
680 | 0xff9e9e9e,0xff959595,0xff949494,0xffa0a0a0,0xffadadad,0xffb9b9b9,0xffc0c0c0,0xffc0c0c0,0xffa7a7a7,0xac737373,0x737373,0xff737373,0xff747474,0xff747474, | ||
681 | 0xff7e7e7e,0xff8b8b8b,0xff979797,0xffa4a4a4,0xffacacac,0xffb3b3b3,0xffb5b5b5,0xff8f8f8f,0x737373,0x0,0x98737373,0xff727272,0xff747474,0xff787878, | ||
682 | 0xff828282,0xff8d8d8d,0xff989898,0xff9d9d9d,0xffa7a7a7,0xff989898,0x98737373,0x0,0x0,0x0,0x98737373,0xff747474,0xff757575,0xff7b7b7b, | ||
683 | 0xff838383,0xff8d8d8d,0xff979797,0xff737373,0x98737373,0x0,0x0,0x0,0x0,0x0,0x0,0xac737373,0xe9737373,0xff737373, | ||
684 | 0xe9737373,0xac737373,0x0,0x0,0x0,0x0 | ||
685 | }; | ||
686 | |||
687 | static const QRgb sbslider_mid_data[] = { | ||
688 | 0xff737373,0xffb9b9b9,0xffcbcbcb,0xffc3c3c3,0xffc1c1c1,0xffa0a0a0,0xffb3b3b3,0xffc0c0c0,0xffc9c9c9,0xffd1d1d1,0xffd0d0d0,0xffcfcfcf,0xff727272,0xff737373, | ||
689 | 0xffb9b9b9,0xffcbcbcb,0xffc3c3c3,0xffc1c1c1,0xffa0a0a0,0xffb3b3b3,0xffc0c0c0,0xffc9c9c9,0xffd1d1d1,0xffd0d0d0,0xffcfcfcf,0xff727272,0xff707070,0xffb9b9b9, | ||
690 | 0xffcbcbcb,0xffc3c3c3,0xffc1c1c1,0xff9f9f9f,0xffb3b3b3,0xffbfbfbf,0xffc7c7c7,0xffcfcfcf,0xffcfcfcf,0xffcecece,0xff727272,0xff6e6e6e,0xffb9b9b9,0xffcccccc, | ||
691 | 0xffc2c2c2,0xffc0c0c0,0xff9e9e9e,0xffb1b1b1,0xffbdbdbd,0xffc6c6c6,0xffcdcdcd,0xffcdcdcd,0xffcccccc,0xff717171,0xff6c6c6c,0xffbababa,0xffcbcbcb,0xffc2c2c2, | ||
692 | 0xffc0c0c0,0xff9c9c9c,0xffafafaf,0xffbcbcbc,0xffc5c5c5,0xffcacaca,0xffcbcbcb,0xffcccccc,0xff717171,0xff6c6c6c,0xffbababa,0xffcccccc,0xffc2c2c2,0xffc0c0c0, | ||
693 | 0xff9b9b9b,0xffaeaeae,0xffbbbbbb,0xffc5c5c5,0xffc9c9c9,0xffcbcbcb,0xffcbcbcb,0xff717171,0xff6e6e6e,0xffbababa,0xffcbcbcb,0xffc2c2c2,0xffc0c0c0,0xff9c9c9c, | ||
694 | 0xffafafaf,0xffbbbbbb,0xffc5c5c5,0xffcacaca,0xffcccccc,0xffcccccc,0xff717171,0xff707070,0xffb9b9b9,0xffcbcbcb,0xffc1c1c1,0xffc0c0c0,0xff9d9d9d,0xffb0b0b0, | ||
695 | 0xffbcbcbc,0xffc6c6c6,0xffcccccc,0xffcdcdcd,0xffcdcdcd,0xff727272,0xff737373,0xffb9b9b9,0xffcacaca,0xffc1c1c1,0xffc0c0c0,0xff9d9d9d,0xffb1b1b1,0xffbdbdbd, | ||
696 | 0xffc6c6c6,0xffcecece,0xffcecece,0xffcecece,0xff727272,0xff6e6e6e,0xffb9b9b9,0xffcdcdcd,0xffc6c6c6,0xffc5c5c5,0xffa0a0a0,0xffb3b3b3,0xffc0c0c0,0xffc8c8c8, | ||
697 | 0xffcccccc,0xffcccccc,0xffd3d3d3,0xff6f6f6f,0xff707070,0xffbababa,0xffcdcdcd,0xffc6c6c6,0xffc5c5c5,0xffa2a2a2,0xffb5b5b5,0xffc1c1c1,0xffc8c8c8,0xffcecece, | ||
698 | 0xffcdcdcd,0xffd4d4d4,0xff6f6f6f,0xff737373,0xffbbbbbb,0xffcdcdcd,0xffc6c6c6,0xffc6c6c6,0xffa5a5a5,0xffb9b9b9,0xffc3c3c3,0xffcacaca,0xffd3d3d3,0xffd1d1d1, | ||
699 | 0xffd5d5d5,0xff707070,0xff757575,0xffbcbcbc,0xffcdcdcd,0xffc6c6c6,0xffc6c6c6,0xffa7a7a7,0xffbbbbbb,0xffc5c5c5,0xffcccccc,0xffd5d5d5,0xffd3d3d3,0xffd5d5d5, | ||
700 | 0xff707070,0xff757575,0xffbcbcbc,0xffcdcdcd,0xffc5c5c5,0xffc6c6c6,0xffa7a7a7,0xffbbbbbb,0xffc6c6c6,0xffcccccc,0xffd6d6d6,0xffd3d3d3,0xffd6d6d6,0xff707070, | ||
701 | 0xff737373,0xffbababa,0xffcccccc,0xffc6c6c6,0xffc6c6c6,0xffa6a6a6,0xffbababa,0xffc5c5c5,0xffcccccc,0xffd5d5d5,0xffd3d3d3,0xffd5d5d5,0xff707070,0xff707070, | ||
702 | 0xffbababa,0xffcdcdcd,0xffc6c6c6,0xffc6c6c6,0xffa5a5a5,0xffb9b9b9,0xffc4c4c4,0xffcccccc,0xffd3d3d3,0xffd1d1d1,0xffd4d4d4,0xff6f6f6f,0xff6e6e6e,0xffb9b9b9, | ||
703 | 0xffcdcdcd,0xffc6c6c6,0xffc6c6c6,0xffa4a4a4,0xffb7b7b7,0xffc2c2c2,0xffcccccc,0xffd1d1d1,0xffcfcfcf,0xffd4d4d4,0xff6f6f6f,0xff737373,0xffb9b9b9,0xffcbcbcb, | ||
704 | 0xffc3c3c3,0xffc1c1c1,0xffa0a0a0,0xffb3b3b3,0xffc0c0c0,0xffc9c9c9,0xffd1d1d1,0xffd0d0d0,0xffcfcfcf,0xff727272,0xff707070,0xffb9b9b9,0xffcbcbcb,0xffc3c3c3, | ||
705 | 0xffc1c1c1,0xff9f9f9f,0xffb3b3b3,0xffbfbfbf,0xffc7c7c7,0xffcfcfcf,0xffcfcfcf,0xffcecece,0xff727272,0xff6e6e6e,0xffb9b9b9,0xffcccccc,0xffc2c2c2,0xffc0c0c0, | ||
706 | 0xff9e9e9e,0xffb1b1b1,0xffbdbdbd,0xffc6c6c6,0xffcdcdcd,0xffcdcdcd,0xffcccccc,0xff717171,0xff6c6c6c,0xffbababa,0xffcbcbcb,0xffc2c2c2,0xffc0c0c0,0xff9c9c9c, | ||
707 | 0xffafafaf,0xffbcbcbc,0xffc5c5c5,0xffcacaca,0xffcbcbcb,0xffcccccc,0xff717171,0xff6c6c6c,0xffbababa,0xffcccccc,0xffc2c2c2,0xffc0c0c0,0xff9b9b9b,0xffaeaeae, | ||
708 | 0xffbbbbbb,0xffc5c5c5,0xffc9c9c9,0xffcbcbcb,0xffcbcbcb,0xff717171,0xff6e6e6e,0xffbababa,0xffcbcbcb,0xffc2c2c2,0xffc0c0c0,0xff9c9c9c,0xffafafaf,0xffbbbbbb, | ||
709 | 0xffc5c5c5,0xffcacaca,0xffcccccc,0xffcccccc,0xff717171,0xff6e6e6e,0xffb9b9b9,0xffc8c8c8,0xffc1c1c1,0xffbdbdbd,0xff9e9e9e,0xffaeaeae,0xffbebebe,0xffc6c6c6, | ||
710 | 0xffcdcdcd,0xffcfcfcf,0xffcccccc,0xff727272,0xff6e6e6e,0xffb7b7b7,0xffc9c9c9,0xffc2c2c2,0xffc0c0c0,0xffa0a0a0,0xffb1b1b1,0xffbfbfbf,0xffc6c6c6,0xffcdcdcd, | ||
711 | 0xffcfcfcf,0xffcccccc,0xff727272,0xff6f6f6f,0xffb9b9b9,0xffc9c9c9,0xffc3c3c3,0xffc0c0c0,0xffa1a1a1,0xffb1b1b1,0xffbdbdbd,0xffc6c6c6,0xffcdcdcd,0xffd0d0d0, | ||
712 | 0xffcccccc,0xff737373,0xff727272,0xffbbbbbb,0xffc9c9c9,0xffc6c6c6,0xffc3c3c3,0xffa5a5a5,0xffb6b6b6,0xffc2c2c2,0xffcbcbcb,0xffd2d2d2,0xffd2d2d2,0xffcfcfcf, | ||
713 | 0xff727272,0xff727272,0xffbbbbbb,0xffc9c9c9,0xffc7c7c7,0xffc6c6c6,0xffa9a9a9,0xffb8b8b8,0xffc4c4c4,0xffcccccc,0xffd2d2d2,0xffd4d4d4,0xffd0d0d0,0xff737373 | ||
714 | }; | ||
715 | |||
716 | static const QRgb sbslider_top_data[] = { | ||
717 | 0x0,0x0,0x0,0x0,0xac686868,0xe9686868,0xff686868,0xe9686868,0xac686868,0x0,0x0,0x0,0x0,0x0, | ||
718 | 0x0,0x98686868,0xff686868,0xff747474,0xff777777,0xff7c7c7c,0xff848484,0xff8b8b8b,0xff757575,0x98757575,0x0,0x0,0x0,0x98686868, | ||
719 | 0xff6f6f6f,0xff696969,0xff7b7b7b,0xff808080,0xff888888,0xff8e8e8e,0xff949494,0xff9a9a9a,0xff979797,0x98757575,0x0,0x686868,0xff696969,0xff7b7b7b, | ||
720 | 0xff757575,0xff7e7e7e,0xff808080,0xff8f8f8f,0xff969696,0xffa3a3a3,0xffb3b3b3,0xffa9a9a9,0xff939393,0x757575,0xac686868,0xff727272,0xffa2a2a2,0xff9d9d9d, | ||
721 | 0xff949494,0xff858585,0xff999999,0xffa0a0a0,0xffb0b0b0,0xffb6b6b6,0xffb8b8b8,0xff9f9f9f,0xac757575,0xe9686868,0xff9a9a9a,0xffc6c6c6,0xffbbbbbb,0xffb0b0b0, | ||
722 | 0xff8e8e8e,0xffa2a2a2,0xffadadad,0xffb7b7b7,0xffbababa,0xffc1c1c1,0xffb3b3b3,0xe9757575,0xff696969,0xffa8a8a8,0xffc3c3c3,0xffb4b4b4,0xffb4b4b4,0xff8f8f8f, | ||
723 | 0xffa6a6a6,0xffb3b3b3,0xffb7b7b7,0xffbdbdbd,0xffc6c6c6,0xffc0c0c0,0xff757575,0xe9707070,0xffb9b9b9,0xffcdcdcd,0xffb6b6b6,0xffbbbbbb,0xff979797,0xffadadad, | ||
724 | 0xffb5b5b5,0xffbababa,0xffbfbfbf,0xffc9c9c9,0xffcbcbcb,0xe9727272 | ||
725 | }; | ||
726 | |||
727 | static const QRgb sliderarrow_data[] = { | ||
728 | 0x0,0x0,0xff888888,0xff888888,0xff888888,0xff888888,0xff888888,0xff888888,0x0,0x0,0x0,0xff888888,0xffe0e0e0,0xffe0e0e0, | ||
729 | 0xffe0e0e0,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xff888888,0x0,0xff888888,0xffe0e0e0,0xffe0e0e0,0xffe5e5e5,0xffe5e5e5,0xffe5e5e5,0xffe5e5e5,0xffe0e0e0, | ||
730 | 0xffdddddd,0xff888888,0xff888888,0xffc9c9c9,0xffc9c9c9,0xffd0d0d0,0xffc9c9c9,0xffc9c9c9,0xffd1d1d1,0xffc9c9c9,0xffc1c1c1,0xff888888,0xff888888,0xffa3a3a3, | ||
731 | 0xffababab,0xffababab,0xffababab,0xffababab,0xffababab,0xffa8a8a8,0xffa3a3a3,0xff888888,0xff888888,0xffa5a5a5,0xffb7b7b7,0xffb7b7b7,0xffb7b7b7,0xffb7b7b7, | ||
732 | 0xffb6b6b6,0xffb8b8b8,0xffa5a5a5,0xff888888,0xff888888,0xffc4c4c4,0xffe1e1e1,0xffe3e3e3,0xffe1e1e1,0xffe4e4e4,0xffe5e5e5,0xffe1e1e1,0xffaeaeae,0xff888888, | ||
733 | 0x0,0xff888888,0xffc8c8c8,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc7c7c7,0xffbdbdbd,0xff888888,0x0,0x0,0x0,0xff888888,0xffbdbdbd, | ||
734 | 0xffbbbbbb,0xffbbbbbb,0xffbdbdbd,0xff888888,0x0,0x0,0x0,0x0,0x0,0xff888888,0xffb6b6b6,0xffaeaeae,0xff888888,0x0, | ||
735 | 0x0,0x0,0x0,0x0,0x0,0x0,0xff888888,0xff888888,0x0,0x0,0x0,0x0 | ||
736 | }; | ||
737 | |||
738 | static const QRgb tab_data[] = { | ||
739 | 0x0,0x0,0x0,0x0,0x55a2a2a2,0xaaa2a2a2,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494, | ||
740 | 0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494, | ||
741 | 0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494, | ||
742 | 0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494, | ||
743 | 0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494, | ||
744 | 0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xff949494,0xaaa2a2a2,0x55a2a2a2,0x0,0x0,0x0, | ||
745 | 0x0,0x0,0x0,0x40a3a3a3,0xaaa3a3a3,0xd5afafaf,0xeabdbdbd,0xffc5c5c5,0xffc8c8c8,0xffc7c7c7,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8, | ||
746 | 0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8, | ||
747 | 0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8, | ||
748 | 0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8, | ||
749 | 0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8, | ||
750 | 0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc8c8c8,0xffc7c7c7,0xffc8c8c8,0xffc8c8c8,0xffc5c5c5,0xeabdbdbd,0xd5afafaf,0xaaa3a3a3,0x40a3a3a3, | ||
751 | 0x0,0x0,0x0,0x409f9f9f,0xbfa5a5a5,0xeabcbcbc,0xffcccccc,0xffdfdfdf,0xffe0e0e0,0xffe0e0e0,0xffdfdfdf,0xffe0e0e0,0xffdfdfdf,0xffdfdfdf, | ||
752 | 0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf, | ||
753 | 0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf, | ||
754 | 0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf, | ||
755 | 0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf, | ||
756 | 0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffdfdfdf,0xffe0e0e0,0xffdfdfdf,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffdfdfdf,0xffcccccc,0xeabcbcbc, | ||
757 | 0xbfa5a5a5,0x409f9f9f,0x0,0x409f9f9f,0xbfa1a1a1,0xeabababa,0xffcfcfcf,0xffe6e6e6,0xffe7e7e7,0xffe8e8e8,0xffe7e7e7,0xffe6e6e6,0xffe7e7e7,0xffe7e7e7, | ||
758 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
759 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
760 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
761 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
762 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe6e6e6,0xffe7e7e7,0xffe7e7e7,0xffe8e8e8,0xffe7e7e7,0xffe6e6e6, | ||
763 | 0xffcfcfcf,0xeabababa,0xbfa1a1a1,0x409f9f9f,0xaa9d9d9d,0xeaafafaf,0xffc2c2c2,0xffd3d3d3,0xffe7e7e7,0xffebebeb,0xffececec,0xffececec,0xffebebeb,0xffebebeb, | ||
764 | 0xffececec,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb, | ||
765 | 0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb, | ||
766 | 0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb, | ||
767 | 0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb, | ||
768 | 0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffececec,0xffebebeb,0xffebebeb,0xffececec,0xffececec,0xffececec,0xffebebeb, | ||
769 | 0xffe7e7e7,0xffd3d3d3,0xffc2c2c2,0xeaafafaf,0xaa9d9d9d,0xff949494,0xffc0c0c0,0xffc5c5c5,0xffc9c9c9,0xffc7c7c7,0xffc9c9c9,0xffcacaca,0xffc9c9c9,0xffc9c9c9, | ||
770 | 0xffc8c8c8,0xffc8c8c8,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9, | ||
771 | 0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9, | ||
772 | 0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9, | ||
773 | 0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9, | ||
774 | 0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffc8c8c8,0xffc8c8c8,0xffc9c9c9,0xffc9c9c9,0xffc9c9c9,0xffcacaca, | ||
775 | 0xffc9c9c9,0xffc7c7c7,0xffc9c9c9,0xffc5c5c5,0xffc0c0c0,0xff949494,0xff949494,0xffc8c8c8,0xffc7c7c7,0xffc7c7c7,0xffc5c5c5,0xffc5c5c5,0xffc7c7c7,0xffc5c5c5, | ||
776 | 0xffc7c7c7,0xffc7c7c7,0xffc5c5c5,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7, | ||
777 | 0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7, | ||
778 | 0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7, | ||
779 | 0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7, | ||
780 | 0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc7c7c7,0xffc5c5c5,0xffc7c7c7,0xffc7c7c7,0xffc5c5c5,0xffc5c5c5, | ||
781 | 0xffc7c7c7,0xffc5c5c5,0xffc5c5c5,0xffc7c7c7,0xffc7c7c7,0xffc8c8c8,0xff949494,0xff949494,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffcfcfcf,0xffcdcdcd,0xffd0d0d0, | ||
782 | 0xffd0d0d0,0xffd1d1d1,0xffcfcfcf,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1, | ||
783 | 0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1, | ||
784 | 0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1, | ||
785 | 0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1, | ||
786 | 0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xffcfcfcf,0xffd1d1d1,0xffd0d0d0, | ||
787 | 0xffd0d0d0,0xffd0d0d0,0xffcdcdcd,0xffcfcfcf,0xffd1d1d1,0xffd1d1d1,0xffd1d1d1,0xff949494,0xff949494,0xffd6d6d6,0xffd6d6d6,0xffd4d4d4,0xffd5d5d5,0xffd5d5d5, | ||
788 | 0xffd8d8d8,0xffd8d8d8,0xffd9d9d9,0xffd7d7d7,0xffd8d8d8,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6, | ||
789 | 0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6, | ||
790 | 0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6, | ||
791 | 0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6, | ||
792 | 0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd6d6d6,0xffd8d8d8,0xffd7d7d7,0xffd9d9d9, | ||
793 | 0xffd8d8d8,0xffd8d8d8,0xffd8d8d8,0xffd5d5d5,0xffd5d5d5,0xffd4d4d4,0xffd6d6d6,0xffd6d6d6,0xff949494,0xff949494,0xffdadada,0xffdcdcdc,0xffdadada,0xffdadada, | ||
794 | 0xffdcdcdc,0xffdcdcdc,0xffdddddd,0xffdddddd,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede, | ||
795 | 0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede, | ||
796 | 0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede, | ||
797 | 0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede, | ||
798 | 0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede,0xffdedede, | ||
799 | 0xffdddddd,0xffdddddd,0xffdddddd,0xffdcdcdc,0xffdcdcdc,0xffdadada,0xffdadada,0xffdcdcdc,0xffdadada,0xff949494,0xff949494,0xffdddddd,0xffe1e1e1,0xffdfdfdf, | ||
800 | 0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffe1e1e1,0xffe2e2e2,0xffe2e2e2,0xffe3e3e3,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2, | ||
801 | 0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2, | ||
802 | 0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2, | ||
803 | 0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2, | ||
804 | 0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe2e2e2,0xffe3e3e3, | ||
805 | 0xffe2e2e2,0xffe2e2e2,0xffe1e1e1,0xffe1e1e1,0xffe0e0e0,0xffe0e0e0,0xffe0e0e0,0xffdfdfdf,0xffe1e1e1,0xffdddddd,0xff949494,0xff949494,0xffdfdfdf,0xffe3e3e3, | ||
806 | 0xffe2e2e2,0xffe2e2e2,0xffe3e3e3,0xffe3e3e3,0xffe4e4e4,0xffe4e4e4,0xffe5e5e5,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4, | ||
807 | 0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4, | ||
808 | 0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4, | ||
809 | 0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4, | ||
810 | 0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4, | ||
811 | 0xffe4e4e4,0xffe5e5e5,0xffe4e4e4,0xffe4e4e4,0xffe4e4e4,0xffe3e3e3,0xffe3e3e3,0xffe2e2e2,0xffe2e2e2,0xffe3e3e3,0xffdfdfdf,0xff949494,0xff949494,0xffe2e2e2, | ||
812 | 0xffe5e5e5,0xffe5e5e5,0xffe5e5e5,0xffe6e6e6,0xffe5e5e5,0xffe7e7e7,0xffe7e7e7,0xffe8e8e8,0xffe6e6e6,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
813 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
814 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
815 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
816 | 0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7, | ||
817 | 0xffe7e7e7,0xffe6e6e6,0xffe8e8e8,0xffe7e7e7,0xffe7e7e7,0xffe7e7e7,0xffe5e5e5,0xffe6e6e6,0xffe5e5e5,0xffe5e5e5,0xffe5e5e5,0xffe2e2e2,0xff949494,0xff949494, | ||
818 | 0xffe3e3e3,0xffe7e7e7,0xffe6e6e6,0xffe9e9e9,0xffe9e9e9,0xffe7e7e7,0xffebebeb,0xffeaeaea,0xffe9e9e9,0xffe9e9e9,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb, | ||
819 | 0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb, | ||
820 | 0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb, | ||
821 | 0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb, | ||
822 | 0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb, | ||
823 | 0xffebebeb,0xffebebeb,0xffe9e9e9,0xffe9e9e9,0xffeaeaea,0xffebebeb,0xffebebeb,0xffe7e7e7,0xffe9e9e9,0xffe9e9e9,0xffe6e6e6,0xffe7e7e7,0xffe3e3e3,0xff949494, | ||
824 | 0xff949494,0xffe4e4e4,0xffe8e8e8,0xffe9e9e9,0xffececec,0xffececec,0xffe9e9e9,0xffededed,0xffececec,0xffeeeeee,0xffeeeeee,0xffebebeb,0xffebebeb,0xffebebeb, | ||
825 | 0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb, | ||
826 | 0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb, | ||
827 | 0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb, | ||
828 | 0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb,0xffebebeb, | ||
829 | 0xffebebeb,0xffebebeb,0xffebebeb,0xffeeeeee,0xffeeeeee,0xffececec,0xffededed,0xffededed,0xffe9e9e9,0xffececec,0xffececec,0xffe9e9e9,0xffe8e8e8,0xffe4e4e4, | ||
830 | 0xff949494,0xff949494,0xffe6e6e6,0xffebebeb,0xffebebeb,0xffefefef,0xfff0f0f0,0xffefefef,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff1f1f1,0xfff0f0f0,0xfff0f0f0, | ||
831 | 0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0, | ||
832 | 0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0, | ||
833 | 0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0, | ||
834 | 0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0, | ||
835 | 0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff1f1f1,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xfff0f0f0,0xffefefef,0xfff0f0f0,0xffefefef,0xffebebeb,0xffebebeb, | ||
836 | 0xffe6e6e6,0xff949494,0xff949494,0xffe7e7e7,0xffededed,0xffefefef,0xfff1f1f1,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff4f4f4,0xfff2f2f2,0xfff4f4f4,0xfff2f2f2, | ||
837 | 0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2, | ||
838 | 0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2, | ||
839 | 0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2, | ||
840 | 0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2, | ||
841 | 0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff4f4f4,0xfff2f2f2,0xfff4f4f4,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff1f1f1,0xffefefef, | ||
842 | 0xffededed,0xffe7e7e7,0xff949494,0xff949494,0xffe9e9e9,0xfff0f0f0,0xfff2f2f2,0xfff5f5f5,0xfff8f8f8,0xfff7f7f7,0xfff8f8f8,0xfff8f8f8,0xfff9f9f9,0xfffafafa, | ||
843 | 0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8, | ||
844 | 0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8, | ||
845 | 0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8, | ||
846 | 0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8, | ||
847 | 0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfffafafa,0xfff9f9f9,0xfff8f8f8,0xfff8f8f8,0xfff8f8f8,0xfff7f7f7,0xfff8f8f8,0xfff5f5f5, | ||
848 | 0xfff2f2f2,0xfff0f0f0,0xffe9e9e9,0xff949494,0xff949494,0xffeaeaea,0xfff1f1f1,0xfff6f6f6,0xfff9f9f9,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffdfdfd, | ||
849 | 0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc, | ||
850 | 0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc, | ||
851 | 0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc, | ||
852 | 0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc, | ||
853 | 0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffdfdfd,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc,0xfffcfcfc, | ||
854 | 0xfff9f9f9,0xfff6f6f6,0xfff1f1f1,0xffeaeaea,0xff949494,0xff949494,0xffececec,0xfff4f4f4,0xfffbfbfb,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe, | ||
855 | 0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe, | ||
856 | 0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe, | ||
857 | 0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe, | ||
858 | 0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe, | ||
859 | 0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe, | ||
860 | 0xfffefefe,0xfffefefe,0xfffbfbfb,0xfff4f4f4,0xffececec,0xff949494,0xff949494,0xffeeeeee,0xfff9f9f9,0xfffdfdfd,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe, | ||
861 | 0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe, | ||
862 | 0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe, | ||
863 | 0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe, | ||
864 | 0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe, | ||
865 | 0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe,0xfffefefe, | ||
866 | 0xfffefefe,0xfffefefe,0xfffefefe,0xfffdfdfd,0xfff9f9f9,0xffeeeeee,0xff949494,0xff949494,0xffececec,0xfff9f9f9,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
867 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
868 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
869 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
870 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
871 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
872 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfff9f9f9,0xffececec,0xff949494,0xff949494,0xffececec,0xfff9f9f9,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
873 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
874 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
875 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
876 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
877 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
878 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfff9f9f9,0xffececec,0xff949494,0xff949494,0xffececec,0xfff9f9f9,0xfffbfbfb,0xfffbfbfb, | ||
879 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
880 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
881 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
882 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
883 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
884 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfff9f9f9,0xffececec,0xff949494,0xff949494,0xffececec,0xfff9f9f9,0xfffbfbfb, | ||
885 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
886 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
887 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
888 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
889 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
890 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfff9f9f9,0xffececec,0xff949494,0xff949494,0xffececec,0xfff9f9f9, | ||
891 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
892 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
893 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
894 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
895 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
896 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfff9f9f9,0xffececec,0xff949494,0xff949494,0xffececec, | ||
897 | 0xfff9f9f9,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
898 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
899 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
900 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
901 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
902 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfff9f9f9,0xffececec,0xff949494,0xff949494, | ||
903 | 0xffececec,0xfff9f9f9,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
904 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
905 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
906 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
907 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
908 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfff9f9f9,0xffececec,0xff949494, | ||
909 | 0xff949494,0xffececec,0xfff9f9f9,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
910 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
911 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
912 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
913 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
914 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfff9f9f9,0xffececec, | ||
915 | 0xff949494,0xff949494,0xffececec,0xfff9f9f9,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
916 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
917 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
918 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
919 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
920 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfff9f9f9, | ||
921 | 0xffececec,0xff949494,0xff949494,0xffececec,0xfff9f9f9,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
922 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
923 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
924 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
925 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
926 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
927 | 0xfff9f9f9,0xffececec,0xff949494,0xff949494,0xffececec,0xfff9f9f9,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
928 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
929 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
930 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
931 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
932 | 0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb,0xfffbfbfb, | ||
933 | 0xfffbfbfb,0xfff9f9f9,0xffececec,0xff949494,0x95ababab,0xbfd5d5d5,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed, | ||
934 | 0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed, | ||
935 | 0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed, | ||
936 | 0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed, | ||
937 | 0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed, | ||
938 | 0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed,0xffededed, | ||
939 | 0xffededed,0xffededed,0xffededed,0xc0d4d3d4,0x96aba9aa | ||
940 | }; | ||
941 | |||
942 | static struct EmbedImage { | ||
943 | int width, height, depth; | ||
944 | const unsigned char *data; | ||
945 | int numColors; | ||
946 | const QRgb *colorTable; | ||
947 | bool alpha; | ||
948 | const char *name; | ||
949 | } embed_image_vec[] = { | ||
950 | { 37, 26, 32, (const unsigned char*)buttonborder_data, 0, 0, TRUE, "buttonborder" }, | ||
951 | { 37, 26, 32, (const unsigned char*)buttonfill_data, 0, 0, TRUE, "buttonfill" }, | ||
952 | { 20, 22, 32, (const unsigned char*)checkbox_data, 0, 0, TRUE, "checkbox" }, | ||
953 | { 20, 22, 32, (const unsigned char*)checkboxdown_data, 0, 0, TRUE, "checkboxdown" }, | ||
954 | { 45, 44, 32, (const unsigned char*)clear_fill_large_data, 0, 0, TRUE, "clear_fill_large" }, | ||
955 | { 42, 26, 32, (const unsigned char*)clear_fill_small_data, 0, 0, TRUE, "clear_fill_small" }, | ||
956 | { 37, 26, 32, (const unsigned char*)htmlbtnborder_data, 0, 0, TRUE, "htmlbtnborder" }, | ||
957 | { 20, 22, 32, (const unsigned char*)htmlcheckbox_data, 0, 0, TRUE, "htmlcheckbox" }, | ||
958 | { 20, 22, 32, (const unsigned char*)htmlcheckboxdown_data, 0, 0, TRUE, "htmlcheckboxdown" }, | ||
959 | { 16, 16, 32, (const unsigned char*)htmlradio_data, 0, 0, TRUE, "htmlradio" }, | ||
960 | { 16, 16, 32, (const unsigned char*)htmlradiodown_data, 0, 0, TRUE, "htmlradiodown" }, | ||
961 | { 16, 16, 32, (const unsigned char*)radio_data, 0, 0, TRUE, "radio" }, | ||
962 | { 16, 16, 32, (const unsigned char*)radio_down_data, 0, 0, TRUE, "radio_down" }, | ||
963 | { 13, 8, 32, (const unsigned char*)sbslider_btm_data, 0, 0, TRUE, "sbslider_btm" }, | ||
964 | { 13, 28, 32, (const unsigned char*)sbslider_mid_data, 0, 0, TRUE, "sbslider_mid" }, | ||
965 | { 13, 8, 32, (const unsigned char*)sbslider_top_data, 0, 0, TRUE, "sbslider_top" }, | ||
966 | { 10, 11, 32, (const unsigned char*)sliderarrow_data, 0, 0, TRUE, "sliderarrow" }, | ||
967 | { 85, 33, 32, (const unsigned char*)tab_data, 0, 0, TRUE, "tab" }, | ||
968 | }; | ||
969 | |||
970 | static int cmpEmbedImage(const void *a, const void *b) | ||
971 | { | ||
972 | const EmbedImage* ea = (const EmbedImage*)a; | ||
973 | const EmbedImage* eb = (const EmbedImage*)b; | ||
974 | return strcmp(ea->name,eb->name); | ||
975 | } | ||
976 | inline const QImage& qembed_findImage(const char* name) | ||
977 | { | ||
978 | EmbedImage key; key.name = name; | ||
979 | EmbedImage* r = (EmbedImage*)bsearch( &key, embed_image_vec, | ||
980 | sizeof(embed_image_vec)/sizeof(EmbedImage), sizeof(EmbedImage), cmpEmbedImage ); | ||
981 | QImage* img; | ||
982 | if ( r ) { | ||
983 | img = new QImage((uchar*)r->data, | ||
984 | r->width, | ||
985 | r->height, | ||
986 | r->depth, | ||
987 | (QRgb*)r->colorTable, | ||
988 | r->numColors, | ||
989 | QImage::BigEndian | ||
990 | ); | ||
991 | if ( r->alpha ) | ||
992 | img->setAlphaBuffer(TRUE); | ||
993 | } else { | ||
994 | static QImage dummy; | ||
995 | img = &dummy; | ||
996 | } | ||
997 | return *img; | ||
998 | } | ||
999 | |||
1000 | #endif | ||
diff --git a/noncore/styles/liquid/htmlmasks.h b/noncore/styles/liquid/htmlmasks.h new file mode 100644 index 0000000..3398652 --- a/dev/null +++ b/noncore/styles/liquid/htmlmasks.h | |||
@@ -0,0 +1,32 @@ | |||
1 | #ifndef __LIQUID_DATA_H | ||
2 | #define __LIQUID_DATA_H | ||
3 | |||
4 | static unsigned char buttonmask_bits[] = { | ||
5 | 0xc0, 0xff, 0xff, 0x7f, 0x00, 0xf0, 0xff, 0xff, 0xff, 0x01, 0xf8, 0xff, | ||
6 | 0xff, 0xff, 0x03, 0xfc, 0xff, 0xff, 0xff, 0x07, 0xfe, 0xff, 0xff, 0xff, | ||
7 | 0x0f, 0xfe, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xff, | ||
8 | 0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, | ||
9 | 0xff, 0x1f, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0xff, 0x1f, | ||
10 | 0xff, 0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, | ||
11 | 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0xff, | ||
12 | 0x1f, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xff, | ||
13 | 0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0xff, 0x0f, 0xfe, 0xff, 0xff, | ||
14 | 0xff, 0x0f, 0xfc, 0xff, 0xff, 0xff, 0x07, 0xf8, 0xff, 0xff, 0xff, 0x03, | ||
15 | 0xf0, 0xff, 0xff, 0xff, 0x01, 0xe0, 0xff, 0xff, 0x7f, 0x00 }; | ||
16 | |||
17 | static unsigned char htmlbuttonmask_bits[] = { | ||
18 | 0xc0, 0xff, 0xff, 0x7f, 0x00, 0xf0, 0xff, 0xff, 0xff, 0x01, 0xf8, 0xff, | ||
19 | 0xff, 0xff, 0x03, 0xfc, 0xff, 0xff, 0xff, 0x07, 0xfe, 0xff, 0xff, 0xff, | ||
20 | 0x0f, 0xfe, 0xff, 0xff, 0xff, 0x0f, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xff, | ||
21 | 0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, | ||
22 | 0xff, 0x1f, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0xff, 0x1f, | ||
23 | 0xff, 0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, | ||
24 | 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0xff, | ||
25 | 0x1f, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xff, 0xff, 0xff, 0xff, 0x1f, 0xff, | ||
26 | 0xff, 0xff, 0xff, 0x1f, 0xfe, 0xff, 0xff, 0xff, 0x0f, 0xfe, 0xff, 0xff, | ||
27 | 0xff, 0x0f, 0xfc, 0xff, 0xff, 0xff, 0x07, 0xf8, 0xff, 0xff, 0xff, 0x03, | ||
28 | 0xf0, 0xff, 0xff, 0xff, 0x01, 0xc0, 0xff, 0xff, 0x7f, 0x00 }; | ||
29 | |||
30 | |||
31 | #endif | ||
32 | |||
diff --git a/noncore/styles/liquid/liquid.cpp b/noncore/styles/liquid/liquid.cpp new file mode 100644 index 0000000..5f014ad --- a/dev/null +++ b/noncore/styles/liquid/liquid.cpp | |||
@@ -0,0 +1,2666 @@ | |||
1 | /*- | ||
2 | * Copyright (C)QPL 2001 Daniel M. Duley. All rights reserved. | ||
3 | */ | ||
4 | |||
5 | |||
6 | |||
7 | #ifndef INCLUDE_MENUITEM_DEF | ||
8 | #define INCLUDE_MENUITEM_DEF | ||
9 | #endif | ||
10 | |||
11 | #include <qmenudata.h> | ||
12 | #include "liquid.h" | ||
13 | #include <qapplication.h> | ||
14 | #include <qpe/config.h> | ||
15 | #include "effects.h" | ||
16 | #include <qpalette.h> | ||
17 | #include <qbitmap.h> | ||
18 | #include <qtabbar.h> | ||
19 | #include <qpopupmenu.h> | ||
20 | #include <qobjectlist.h> | ||
21 | #include <qimage.h> | ||
22 | #include <qtimer.h> | ||
23 | #include <qpixmapcache.h> | ||
24 | #include <qradiobutton.h> | ||
25 | #include <qcombobox.h> | ||
26 | #include <qdrawutil.h> | ||
27 | #include <qwidgetlist.h> | ||
28 | #include <qtoolbutton.h> | ||
29 | #include <qheader.h> | ||
30 | #include <unistd.h> | ||
31 | #include <qmenubar.h> | ||
32 | |||
33 | |||
34 | #include <stdio.h> | ||
35 | |||
36 | #include "htmlmasks.h" | ||
37 | #include "embeddata.h" | ||
38 | |||
39 | typedef void (QStyle::*QDrawMenuBarItemImpl) (QPainter *, int, int, int, int, QMenuItem *, | ||
40 | QColorGroup &, bool, bool); | ||
41 | |||
42 | QDrawMenuBarItemImpl qt_set_draw_menu_bar_impl(QDrawMenuBarItemImpl impl); | ||
43 | |||
44 | void TransMenuHandler::stripePixmap(QPixmap &pix, const QColor &color) | ||
45 | { | ||
46 | QImage img(pix.convertToImage()); | ||
47 | QImageEffect::fade(img, 0.9, color); | ||
48 | int x, y; | ||
49 | int r, g, b; | ||
50 | for(y=0; y < img.height(); y+=3){ | ||
51 | unsigned int *data = (unsigned int *) img.scanLine(y); | ||
52 | for(x=0; x < img.width(); ++x){ | ||
53 | r = qRed(data[x]); | ||
54 | g = qGreen(data[x]); | ||
55 | b = qBlue(data[x]); | ||
56 | if(r-10) | ||
57 | r-=10; | ||
58 | if(g-10) | ||
59 | g-=10; | ||
60 | if(b-10) | ||
61 | b-=10; | ||
62 | data[x] = qRgb(r, g, b); | ||
63 | } | ||
64 | } | ||
65 | pix.convertFromImage(img); | ||
66 | } | ||
67 | |||
68 | TransMenuHandler::TransMenuHandler(QObject *parent) | ||
69 | : QObject(parent) | ||
70 | { | ||
71 | pixDict.setAutoDelete(true); | ||
72 | reloadSettings(); | ||
73 | } | ||
74 | |||
75 | void TransMenuHandler::reloadSettings() | ||
76 | { | ||
77 | pixDict.clear(); | ||
78 | |||
79 | Config config ( "qpe" ); | ||
80 | config. setGroup ( "MosfetMenus" ); | ||
81 | |||
82 | type = config. readNumEntry("Type", TransStippleBg); | ||
83 | color = QColor ( config. readEntry("Color", QApplication::palette().active().button().name())); | ||
84 | fgColor = QColor ( config. readEntry("TextColor", QApplication::palette().active().text().name())); | ||
85 | opacity = config. readNumEntry("Opacity", 10); | ||
86 | shadowText = config. readBoolEntry("ShadowText", true); | ||
87 | } | ||
88 | |||
89 | bool TransMenuHandler::eventFilter(QObject *obj, QEvent *ev) | ||
90 | { | ||
91 | QPopupMenu *p = (QPopupMenu *)obj; | ||
92 | |||
93 | if(ev->type() == QEvent::Show){ | ||
94 | if(type == TransStippleBg || type == TransStippleBtn || | ||
95 | type == Custom){ | ||
96 | QApplication::syncX(); | ||
97 | QPixmap *pix = new QPixmap; | ||
98 | if(p->testWFlags(Qt::WType_Popup)){ | ||
99 | QRect r(p->x(), p->y(), p->width(), p->height()); | ||
100 | QRect deskR = QApplication::desktop()->rect(); | ||
101 | if(r.right() > deskR.right() || r.bottom() > deskR.bottom()){ | ||
102 | r.setBottom(deskR.bottom()); | ||
103 | r.setRight(deskR.right()); | ||
104 | } | ||
105 | *pix = QPixmap::grabWindow(QApplication::desktop()-> winId(), r.x(), r.y(), | ||
106 | r.width(), r.height()); | ||
107 | } | ||
108 | else{ // tear off menu | ||
109 | pix->resize(p->width(), p->height()); | ||
110 | pix->fill(Qt::black.rgb()); | ||
111 | } | ||
112 | if(type == TransStippleBg){ | ||
113 | stripePixmap(*pix, p->colorGroup().background()); | ||
114 | } | ||
115 | else if(type == TransStippleBtn){ | ||
116 | stripePixmap(*pix, p->colorGroup().button()); | ||
117 | } | ||
118 | else{ | ||
119 | QPixmapEffect::fade(*pix, (((float)opacity)+80)*0.01, color); | ||
120 | } | ||
121 | pixDict.insert(p->winId(), pix); | ||
122 | } | ||
123 | } | ||
124 | else if(ev->type() == QEvent::Hide){ | ||
125 | if(type == TransStippleBg || type == TransStippleBtn || | ||
126 | type == Custom){ | ||
127 | // qWarning("Deleting menu pixmap, width %d", pixDict.find(p->winId())->width()); | ||
128 | pixDict.remove(p->winId()); | ||
129 | } | ||
130 | } | ||
131 | return(false); | ||
132 | } | ||
133 | |||
134 | |||
135 | LiquidStyle::LiquidStyle() | ||
136 | :QWindowsStyle() | ||
137 | { | ||
138 | setName ( "LiquidStyle" ); | ||
139 | |||
140 | btnMaskBmp = QBitmap(37, 26, buttonmask_bits, true); | ||
141 | btnMaskBmp.setMask(btnMaskBmp); | ||
142 | htmlBtnMaskBmp = QBitmap(37, 26, htmlbuttonmask_bits, true); | ||
143 | htmlBtnMaskBmp.setMask(htmlBtnMaskBmp); | ||
144 | headerHoverID = -1; | ||
145 | highlightWidget = NULL; | ||
146 | setButtonDefaultIndicatorWidth(0); | ||
147 | btnDict.setAutoDelete(true); | ||
148 | bevelFillDict.setAutoDelete(true); | ||
149 | smallBevelFillDict.setAutoDelete(true); | ||
150 | customBtnColorList.setAutoDelete(true); | ||
151 | customBtnIconList.setAutoDelete(true); | ||
152 | customBtnLabelList.setAutoDelete(true); | ||
153 | |||
154 | rMatrix.rotate(270.0); | ||
155 | highcolor = QPixmap::defaultDepth() > 8; | ||
156 | btnBorderPix = new QPixmap; | ||
157 | btnBorderPix->convertFromImage(qembed_findImage("buttonfill")); | ||
158 | btnBlendPix = new QPixmap; | ||
159 | btnBlendPix->convertFromImage(qembed_findImage("buttonborder")); | ||
160 | bevelFillPix = new QPixmap; | ||
161 | bevelFillPix->convertFromImage(qembed_findImage("clear_fill_large")); | ||
162 | smallBevelFillPix = new QPixmap; | ||
163 | smallBevelFillPix->convertFromImage(qembed_findImage("clear_fill_small")); | ||
164 | // new stuff | ||
165 | vsbSliderFillPix = menuPix = NULL; | ||
166 | menuHandler = new TransMenuHandler(this); | ||
167 | setScrollBarExtent(15, 15); | ||
168 | int i; | ||
169 | for(i=0; i < BITMAP_ITEMS; ++i){ | ||
170 | pixmaps[i] = NULL; | ||
171 | } | ||
172 | oldSliderThickness = sliderThickness(); | ||
173 | setSliderThickness(11); | ||
174 | } | ||
175 | |||
176 | LiquidStyle::~LiquidStyle() | ||
177 | { | ||
178 | if(btnBorderPix) | ||
179 | delete btnBorderPix; | ||
180 | if(btnBlendPix) | ||
181 | delete btnBlendPix; | ||
182 | if(bevelFillPix) | ||
183 | delete bevelFillPix; | ||
184 | if(smallBevelFillPix) | ||
185 | delete smallBevelFillPix; | ||
186 | if(vsbSliderFillPix) | ||
187 | delete vsbSliderFillPix; | ||
188 | if(menuPix) | ||
189 | delete menuPix; | ||
190 | |||
191 | setScrollBarExtent(16, 16); | ||
192 | setSliderThickness(oldSliderThickness); | ||
193 | int i; | ||
194 | for(i=0; i < BITMAP_ITEMS; ++i){ | ||
195 | if(pixmaps[i]) | ||
196 | delete pixmaps[i]; | ||
197 | } | ||
198 | } | ||
199 | |||
200 | void LiquidStyle::drawClearBevel(QPainter *p, int x, int y, int w, int h, | ||
201 | const QColor &c, const QColor &bg) | ||
202 | { | ||
203 | |||
204 | QPen oldPen = p->pen(); // headers need this | ||
205 | int x2 = x+w-1; | ||
206 | int y2 = y+h-1; | ||
207 | // outer dark rect | ||
208 | p->setPen(c.dark(130)); | ||
209 | p->drawLine(x, y+2, x, y2-2); // l | ||
210 | p->drawLine(x2, y+2, x2, y2-2); // r | ||
211 | p->drawLine(x+2, y, x2-2, y); // t | ||
212 | p->drawLine(x+2, y2, x2-2, y2); // b | ||
213 | p->drawPoint(x+1, y+1); // tl | ||
214 | p->drawPoint(x2-1, y+1); // tr | ||
215 | p->drawPoint(x+1, y2-1); // bl | ||
216 | p->drawPoint(x2-1, y2-1); // br | ||
217 | |||
218 | // inner top light lines | ||
219 | p->setPen(c.light(105)); | ||
220 | p->drawLine(x+2, y+1, x2-2, y+1); | ||
221 | p->drawLine(x+1, y+2, x2-1, y+2); | ||
222 | p->drawLine(x+1, y+3, x+2, y+3); | ||
223 | p->drawLine(x2-2, y+3, x2-1, y+3); | ||
224 | p->drawPoint(x+1, y+4); | ||
225 | p->drawPoint(x2-1, y+4); | ||
226 | |||
227 | // inner bottom light lines | ||
228 | p->setPen(c.light(110)); | ||
229 | p->drawLine(x+2, y2-1, x2-2, y2-1); | ||
230 | p->drawLine(x+1, y2-2, x2-1, y2-2); | ||
231 | p->drawLine(x+1, y2-3, x+2, y2-3); | ||
232 | p->drawLine(x2-2, y2-3, x2-1, y2-3); | ||
233 | p->drawPoint(x+1, y2-4); | ||
234 | p->drawPoint(x2-1, y2-4); | ||
235 | |||
236 | // inner left mid lines | ||
237 | //p->setPen(c.light(105)); | ||
238 | p->setPen(c); | ||
239 | p->drawLine(x+1, y+5, x+1, y2-5); | ||
240 | p->drawLine(x+2, y+4, x+2, y2-4); | ||
241 | |||
242 | // inner right mid lines | ||
243 | p->drawLine(x2-1, y+5, x2-1, y2-5); | ||
244 | p->drawLine(x2-2, y+4, x2-2, y2-4); | ||
245 | |||
246 | // fill | ||
247 | QPixmap *pix; | ||
248 | if(h >= 32){ | ||
249 | pix = bevelFillDict.find(c.rgb()); | ||
250 | if(!pix){ | ||
251 | int h, s, v; | ||
252 | c.hsv(&h, &s, &v); | ||
253 | pix = new QPixmap(*bevelFillPix); | ||
254 | adjustHSV(*pix, h, s, v); | ||
255 | bevelFillDict.insert(c.rgb(), pix); | ||
256 | } | ||
257 | } | ||
258 | else{ | ||
259 | pix = smallBevelFillDict.find(c.rgb()); | ||
260 | if(!pix){ | ||
261 | int h, s, v; | ||
262 | c.hsv(&h, &s, &v); | ||
263 | pix = new QPixmap(*smallBevelFillPix); | ||
264 | adjustHSV(*pix, h, s, v); | ||
265 | smallBevelFillDict.insert(c.rgb(), pix); | ||
266 | } | ||
267 | } | ||
268 | p->drawTiledPixmap(x+3, y+3, w-6, h-6, *pix); | ||
269 | // blend | ||
270 | int red, green, blue; | ||
271 | QColor btnColor(c.dark(130)); | ||
272 | red = (btnColor.red() >> 1) + (bg.red() >> 1); | ||
273 | green = (btnColor.green() >> 1) + (bg.green() >> 1); | ||
274 | blue = (btnColor.blue() >> 1) + (bg.blue() >> 1); | ||
275 | btnColor.setRgb(red, green, blue); | ||
276 | |||
277 | p->setPen(btnColor); | ||
278 | p->drawPoint(x+1, y); | ||
279 | p->drawPoint(x, y+1); | ||
280 | p->drawPoint(x+1, y2); | ||
281 | p->drawPoint(x, y2-1); | ||
282 | |||
283 | p->drawPoint(x2-1, y); | ||
284 | p->drawPoint(x2, y+1); | ||
285 | p->drawPoint(x2-1, y2); | ||
286 | p->drawPoint(x2, y2-1); | ||
287 | |||
288 | p->setPen(oldPen); | ||
289 | |||
290 | } | ||
291 | |||
292 | void LiquidStyle::drawRoundButton(QPainter *painter, const QColor &c, | ||
293 | const QColor &back, int x, int y, int w, int h, | ||
294 | bool supportPushDown, bool pushedDown, | ||
295 | bool autoDefault, bool isMasked) | ||
296 | { | ||
297 | if(w < 21 || h < 21){ | ||
298 | drawClearBevel(painter, x, y, w, h, c, back); | ||
299 | return; | ||
300 | } | ||
301 | if(supportPushDown){ | ||
302 | --w, --h; | ||
303 | } | ||
304 | /* We don't make the round buttons smaller, since they don't look as good | ||
305 | if(autoDefault){ | ||
306 | w = w-buttonDefaultIndicatorWidth()*2; | ||
307 | h = h-buttonDefaultIndicatorWidth()*2; | ||
308 | }*/ | ||
309 | |||
310 | |||
311 | QPixmap *pix = btnDict.find(c.rgb()); | ||
312 | if(!pix){ | ||
313 | int h, s, v; | ||
314 | c.hsv(&h, &s, &v); | ||
315 | pix = new QPixmap(*btnBorderPix); | ||
316 | adjustHSV(*pix, h, s, v); | ||
317 | btnDict.insert(c.rgb(), pix); | ||
318 | } | ||
319 | int x2 = x+w-1; | ||
320 | int y2 = y+h-1; | ||
321 | int bx2 = pix->width()-1; | ||
322 | int by2 = pix->height()-1; | ||
323 | |||
324 | QPixmap tmpPix(w, h); | ||
325 | QPixmap tilePix; | ||
326 | QPainter p; | ||
327 | p.begin(&tmpPix); | ||
328 | |||
329 | // do the fill | ||
330 | p.drawPixmap(0, 0, *pix, 0, 0, 10, 10); // tl | ||
331 | p.drawPixmap(x2-9, 0, *pix, bx2-9, 0, 10, 10); // tr | ||
332 | p.drawPixmap(0, y2-9, *pix, 0, by2-9, 10, 10); // bl | ||
333 | p.drawPixmap(x2-9, y2-9, *pix, bx2-9, by2-9, 10, 10); // br | ||
334 | |||
335 | // edges | ||
336 | tilePix.resize(pix->width()-20, 10); | ||
337 | // top | ||
338 | bitBlt(&tilePix, 0, 0, pix, 10, 0, pix->width()-20, 10); | ||
339 | p.drawTiledPixmap(10, 0, w-20, 10, tilePix); | ||
340 | // bottom | ||
341 | bitBlt(&tilePix, 0, 0, pix, 10, by2-9, pix->width()-20, 20); | ||
342 | p.drawTiledPixmap(10, y2-9, w-20, 10, tilePix); | ||
343 | // left | ||
344 | tilePix.resize(10, pix->height()-20); | ||
345 | bitBlt(&tilePix, 0, 0, pix, 0, 10, 10, pix->height()-20); | ||
346 | p.drawTiledPixmap(0, 10, 10, h-20, tilePix); | ||
347 | // right | ||
348 | bitBlt(&tilePix, 0, 0, pix, bx2-9, 10, 10, pix->height()-20); | ||
349 | p.drawTiledPixmap(x2-9, 10, 10, h-20, tilePix); | ||
350 | |||
351 | // middle | ||
352 | tilePix.resize(pix->width()-20, pix->height()-20); | ||
353 | bitBlt(&tilePix, 0, 0, pix, 10, 10, pix->width()-20, pix->height()-20); | ||
354 | p.drawTiledPixmap(10, 10, w-20, h-20, tilePix); | ||
355 | |||
356 | |||
357 | // do the blend | ||
358 | QBitmap blendMask; | ||
359 | if(!isMasked){ | ||
360 | //QRgb bgRgb = back.rgb(); | ||
361 | //QRgb fgRgb = c.rgb(); | ||
362 | //int r, g, b; | ||
363 | |||
364 | //r = (int)(qRed(bgRgb)*0.75 + qRed(fgRgb)*0.25); | ||
365 | //g = (int)(qGreen(bgRgb)*0.75 + qGreen(fgRgb)*0.25); | ||
366 | //b = (int)(qBlue(bgRgb)*0.75 + qBlue(fgRgb)*0.25); | ||
367 | //QColor blendColor(r, g, b); | ||
368 | int hue, sat, v1, v2; | ||
369 | QColor blendColor(autoDefault ? c : back); | ||
370 | back.hsv(&hue, &sat, &v1); | ||
371 | blendColor.hsv(&hue, &sat, &v2); | ||
372 | if(v2 > v1) | ||
373 | blendColor.setHsv(hue, sat, (int)(v1*0.75 + v2*0.25)); | ||
374 | |||
375 | pix = btnBorderDict.find(blendColor.rgb()); | ||
376 | if(!pix){ | ||
377 | int h, s, v; | ||
378 | blendColor.hsv(&h, &s, &v); | ||
379 | pix = new QPixmap(*btnBlendPix); | ||
380 | adjustHSV(*pix, h, s, v); | ||
381 | btnBorderDict.insert(blendColor.rgb(), pix); | ||
382 | } | ||
383 | } | ||
384 | else{ | ||
385 | pix = pushedDown ? getPixmap(HTMLBtnBorderDown) : | ||
386 | getPixmap(HTMLBtnBorder); | ||
387 | } | ||
388 | p.drawPixmap(0, 0, *pix, 0, 0, 10, 10); // tl | ||
389 | p.drawPixmap(x2-9, 0, *pix, bx2-9, 0, 10, 10); // tr | ||
390 | p.drawPixmap(0, y2-9, *pix, 0, by2-9, 10, 10); // bl | ||
391 | p.drawPixmap(x2-9, y2-9, *pix, bx2-9, by2-9, 10, 10); // br | ||
392 | |||
393 | // edges | ||
394 | tilePix.resize(pix->width()-20, 10); | ||
395 | blendMask.resize(pix->width()-20, 10); | ||
396 | // top | ||
397 | bitBlt(&tilePix, 0, 0, pix, 10, 0, pix->width()-20, 10); | ||
398 | bitBlt(&blendMask, 0, 0, pix->mask(), 10, 0, pix->width()-20, 10); | ||
399 | tilePix.setMask(blendMask); | ||
400 | p.drawTiledPixmap(10, 0, w-20, 10, tilePix); | ||
401 | // bottom | ||
402 | bitBlt(&tilePix, 0, 0, pix, 10, by2-9, pix->width()-20, 20); | ||
403 | bitBlt(&blendMask, 0, 0, pix->mask(), 10, by2-9, pix->width()-20, 20); | ||
404 | tilePix.setMask(blendMask); | ||
405 | p.drawTiledPixmap(10, y2-9, w-20, 10, tilePix); | ||
406 | // left | ||
407 | tilePix.resize(10, pix->height()-20); | ||
408 | blendMask.resize(10, pix->height()-20); | ||
409 | bitBlt(&tilePix, 0, 0, pix, 0, 10, 10, pix->height()-20); | ||
410 | bitBlt(&blendMask, 0, 0, pix->mask(), 0, 10, 10, pix->height()-20); | ||
411 | tilePix.setMask(blendMask); | ||
412 | p.drawTiledPixmap(0, 10, 10, h-20, tilePix); | ||
413 | // right | ||
414 | bitBlt(&tilePix, 0, 0, pix, bx2-9, 10, 10, pix->height()-20); | ||
415 | bitBlt(&blendMask, 0, 0, pix->mask(), bx2-9, 10, 10, pix->height()-20); | ||
416 | tilePix.setMask(blendMask); | ||
417 | p.drawTiledPixmap(x2-9, 10, 10, h-20, tilePix); | ||
418 | |||
419 | p.end(); | ||
420 | |||
421 | // do the button mask - we don't automask buttons | ||
422 | QBitmap btnMask(w, h); | ||
423 | QBitmap *mask = isMasked ? &htmlBtnMaskBmp : &btnMaskBmp; | ||
424 | p.begin(&btnMask); | ||
425 | p.fillRect(0, 0, w, h, Qt::color0); | ||
426 | p.drawPixmap(0, 0, *mask, 0, 0, 10, 10); // tl | ||
427 | p.drawPixmap(x2-9, 0, *mask, bx2-9, 0, 10, 10); // tr | ||
428 | p.drawPixmap(0, y2-9, *mask, 0, by2-9, 10, 10); // bl | ||
429 | p.drawPixmap(x2-9, y2-9, *mask, bx2-9, by2-9, 10, 10); // br | ||
430 | // fills | ||
431 | p.fillRect(10, 0, w-20, 10, Qt::color1); // top | ||
432 | p.fillRect(10, y2-9, w-20, 10, Qt::color1); // bottom | ||
433 | p.fillRect(0, 10, w, h-20, Qt::color1); // middle | ||
434 | p.end(); | ||
435 | tmpPix.setMask(btnMask); | ||
436 | /*if(autoDefault){ | ||
437 | if(supportPushDown && pushedDown){ | ||
438 | painter->drawPixmap(x+3, y+3, tmpPix); | ||
439 | } | ||
440 | else{ | ||
441 | painter->drawPixmap(x+2, y+2, tmpPix); | ||
442 | } | ||
443 | } | ||
444 | else */if(supportPushDown && pushedDown) | ||
445 | painter->drawPixmap(x+1, y+1, tmpPix); | ||
446 | else | ||
447 | painter->drawPixmap(x, y, tmpPix); | ||
448 | |||
449 | |||
450 | |||
451 | } | ||
452 | |||
453 | |||
454 | QPixmap* LiquidStyle::processEmbedded(const char *label, int h, int s, int v, | ||
455 | bool blend) | ||
456 | { | ||
457 | QImage img(qembed_findImage(label)); | ||
458 | img.detach(); | ||
459 | if(img.isNull()){ // shouldn't happen, been tested | ||
460 | qWarning("Invalid embedded label %s", label); | ||
461 | return(NULL); | ||
462 | } | ||
463 | if(img.depth() != 32) | ||
464 | img = img.convertDepth(32); | ||
465 | unsigned int *data = (unsigned int *)img.bits(); | ||
466 | int total = img.width()*img.height(); | ||
467 | int current; | ||
468 | QColor c; | ||
469 | int oldH, oldS, oldV; | ||
470 | int alpha; | ||
471 | if(v < 235) | ||
472 | v += 20; | ||
473 | else | ||
474 | v = 255; | ||
475 | float intensity = v/255.0; | ||
476 | |||
477 | for(current=0; current<total; ++current){ | ||
478 | alpha = qAlpha(data[current]); | ||
479 | c.setRgb(data[current]); | ||
480 | c.hsv(&oldH, &oldS, &oldV); | ||
481 | oldV = (int)(oldV*intensity); | ||
482 | c.setHsv(h, s, oldV); | ||
483 | if(blend && alpha != 255 && alpha != 0){ | ||
484 | float srcPercent = ((float)alpha)/255.0; | ||
485 | float destPercent = 1.0-srcPercent; | ||
486 | oldH = (int)((srcPercent*h) + (destPercent*bH)); | ||
487 | oldS = (int)((srcPercent*s) + (destPercent*bS)); | ||
488 | oldV = (int)((srcPercent*oldV) + (destPercent*bV)); | ||
489 | c.setHsv(oldH, oldS, oldV); | ||
490 | alpha = 255; | ||
491 | } | ||
492 | data[current] = qRgba(c.red(), c.green(), c.blue(), alpha); | ||
493 | } | ||
494 | QPixmap *pix = new QPixmap; | ||
495 | pix->convertFromImage(img); | ||
496 | return(pix); | ||
497 | } | ||
498 | |||
499 | |||
500 | |||
501 | |||
502 | QPixmap* LiquidStyle::getPixmap(BitmapData item) | ||
503 | { | ||
504 | |||
505 | if(pixmaps[item]) | ||
506 | return(pixmaps[item]); | ||
507 | |||
508 | switch(item){ | ||
509 | case HTMLBtnBorder: | ||
510 | pixmaps[HTMLBtnBorder] = processEmbedded("htmlbtnborder", btnH, btnS, btnV); | ||
511 | break; | ||
512 | case HTMLBtnBorderDown: | ||
513 | pixmaps[HTMLBtnBorderDown] = processEmbedded("htmlbtnborder", btnHoverH, btnHoverS, btnHoverV); | ||
514 | break; | ||
515 | case HTMLCB: | ||
516 | pixmaps[HTMLCB] = processEmbedded("htmlcheckbox", bH, bS, bV); | ||
517 | break; | ||
518 | case HTMLCBDown: | ||
519 | pixmaps[HTMLCBDown] = processEmbedded("htmlcheckboxdown", btnH, btnS, btnV); | ||
520 | break; | ||
521 | case HTMLCBHover: | ||
522 | pixmaps[HTMLCBHover] = processEmbedded("htmlcheckbox", btnH, btnS, btnV); | ||
523 | break; | ||
524 | case HTMLCBDownHover: | ||
525 | pixmaps[HTMLCBDownHover] = processEmbedded("htmlcheckboxdown", | ||
526 | btnHoverH, btnHoverS, | ||
527 | btnHoverV); | ||
528 | break; | ||
529 | case HTMLRadio: | ||
530 | pixmaps[HTMLRadio] = processEmbedded("htmlradio", bH, bS, bV); | ||
531 | case HTMLRadioDown: | ||
532 | pixmaps[HTMLRadioDown] = processEmbedded("htmlradiodown", btnH, btnS, btnV); | ||
533 | case HTMLRadioHover: | ||
534 | pixmaps[HTMLRadioHover] = processEmbedded("htmlradio", btnH, btnS, btnV); | ||
535 | case HTMLRadioDownHover: | ||
536 | pixmaps[HTMLRadioDownHover] = processEmbedded("htmlradiodown", | ||
537 | btnHoverH, btnHoverS, | ||
538 | btnHoverV); | ||
539 | case RadioOn: | ||
540 | pixmaps[RadioOn] = processEmbedded("radio_down", btnH, btnS, btnV, true); | ||
541 | break; | ||
542 | case RadioOnHover: | ||
543 | pixmaps[RadioOnHover] = processEmbedded("radio_down", btnHoverH, btnHoverS, | ||
544 | btnHoverV, true); | ||
545 | break; | ||
546 | case RadioOffHover: | ||
547 | pixmaps[RadioOffHover] = processEmbedded("radio", btnH, btnS, btnV, true); | ||
548 | break; | ||
549 | case TabDown: | ||
550 | pixmaps[TabDown] = processEmbedded("tab", btnH, btnS, btnV, true); | ||
551 | break; | ||
552 | case TabFocus: | ||
553 | pixmaps[TabFocus] = processEmbedded("tab", btnHoverH, btnHoverS, | ||
554 | btnHoverS, true); | ||
555 | break; | ||
556 | case CBDown: | ||
557 | pixmaps[CBDown] = processEmbedded("checkboxdown", btnH, btnS, btnV, true); | ||
558 | break; | ||
559 | case CBDownHover: | ||
560 | pixmaps[CBDownHover] = processEmbedded("checkboxdown", btnHoverH, | ||
561 | btnHoverS, btnHoverV, true); | ||
562 | break; | ||
563 | case CBHover: | ||
564 | pixmaps[CBHover] = processEmbedded("checkbox", btnH, btnS, btnV, true); | ||
565 | break; | ||
566 | case HSlider: | ||
567 | pixmaps[HSlider] = processEmbedded("sliderarrow", btnH, btnS, btnV, true); | ||
568 | break; | ||
569 | case VSlider: | ||
570 | pixmaps[VSlider] = processEmbedded("sliderarrow", btnH, btnS, btnV, true); | ||
571 | *pixmaps[VSlider] = pixmaps[VSlider]->xForm(rMatrix); | ||
572 | break; | ||
573 | case RadioOff: | ||
574 | pixmaps[RadioOff] = processEmbedded("radio", bH, bS, bV, true); | ||
575 | break; | ||
576 | case Tab: | ||
577 | pixmaps[Tab] = processEmbedded("tab", bH, bS, bV, true); | ||
578 | break; | ||
579 | case CB: | ||
580 | pixmaps[CB] = processEmbedded("checkbox", bH, bS, bV, true); | ||
581 | break; | ||
582 | case VSBSliderTop: | ||
583 | pixmaps[VSBSliderTop] = processEmbedded("sbslider_top", btnH, btnS, btnV, true); | ||
584 | break; | ||
585 | case VSBSliderBtm: | ||
586 | pixmaps[VSBSliderBtm] = processEmbedded("sbslider_btm", btnH, btnS, btnV, true); | ||
587 | break; | ||
588 | case VSBSliderMid: | ||
589 | pixmaps[VSBSliderMid] = processEmbedded("sbslider_mid", btnH, btnS, btnV); | ||
590 | break; | ||
591 | case VSBSliderTopHover: | ||
592 | pixmaps[VSBSliderTopHover] = processEmbedded("sbslider_top", btnHoverH, btnHoverS, btnHoverV, true); | ||
593 | break; | ||
594 | case VSBSliderBtmHover: | ||
595 | pixmaps[VSBSliderBtmHover] = processEmbedded("sbslider_btm", btnHoverH, btnHoverS, btnHoverV, true); | ||
596 | break; | ||
597 | case VSBSliderMidHover: | ||
598 | pixmaps[VSBSliderMidHover] = processEmbedded("sbslider_mid", btnHoverH, btnHoverS, btnHoverV); | ||
599 | break; | ||
600 | |||
601 | case HSBSliderTop: | ||
602 | pixmaps[HSBSliderTop] = processEmbedded("sbslider_top", btnH, btnS, btnV, true); | ||
603 | *pixmaps[HSBSliderTop] = pixmaps[HSBSliderTop]->xForm(rMatrix); | ||
604 | break; | ||
605 | case HSBSliderBtm: | ||
606 | pixmaps[HSBSliderBtm] = processEmbedded("sbslider_btm", btnH, btnS, btnV, true); | ||
607 | *pixmaps[HSBSliderBtm] = pixmaps[HSBSliderBtm]->xForm(rMatrix); | ||
608 | break; | ||
609 | case HSBSliderMid: | ||
610 | pixmaps[HSBSliderMid] = processEmbedded("sbslider_mid", btnH, btnS, btnV); | ||
611 | *pixmaps[HSBSliderMid] = pixmaps[HSBSliderMid]->xForm(rMatrix); | ||
612 | break; | ||
613 | case HSBSliderTopHover: | ||
614 | pixmaps[HSBSliderTopHover] = processEmbedded("sbslider_top", btnHoverH, btnHoverS, btnHoverV, true); | ||
615 | *pixmaps[HSBSliderTopHover] = pixmaps[HSBSliderTopHover]->xForm(rMatrix); | ||
616 | break; | ||
617 | case HSBSliderBtmHover: | ||
618 | pixmaps[HSBSliderBtmHover] = processEmbedded("sbslider_btm", btnHoverH, btnHoverS, btnHoverV, true); | ||
619 | *pixmaps[HSBSliderBtmHover] = pixmaps[HSBSliderBtmHover]->xForm(rMatrix); | ||
620 | break; | ||
621 | case HSBSliderMidHover: | ||
622 | pixmaps[HSBSliderMidHover] = processEmbedded("sbslider_mid", btnHoverH, btnHoverS, btnHoverV); | ||
623 | *pixmaps[HSBSliderMidHover] = pixmaps[HSBSliderMidHover]->xForm(rMatrix); | ||
624 | break; | ||
625 | case VSBSliderTopBg: | ||
626 | pixmaps[VSBSliderTopBg] = processEmbedded("sbslider_top", bH, bS, bV, true); | ||
627 | break; | ||
628 | case VSBSliderBtmBg: | ||
629 | pixmaps[VSBSliderBtmBg] = processEmbedded("sbslider_btm", bH, bS, bV, true); | ||
630 | break; | ||
631 | case VSBSliderMidBg: | ||
632 | pixmaps[VSBSliderMidBg] = processEmbedded("sbslider_mid", bH, bS, bV); | ||
633 | break; | ||
634 | case HSBSliderTopBg: | ||
635 | pixmaps[HSBSliderTopBg] = processEmbedded("sbslider_top", bH, bS, bV, true); | ||
636 | *pixmaps[HSBSliderTopBg] = pixmaps[HSBSliderTopBg]->xForm(rMatrix); | ||
637 | break; | ||
638 | case HSBSliderBtmBg: | ||
639 | pixmaps[HSBSliderBtmBg] = processEmbedded("sbslider_btm", bH, bS, bV, true); | ||
640 | *pixmaps[HSBSliderBtmBg] = pixmaps[HSBSliderBtmBg]->xForm(rMatrix); | ||
641 | break; | ||
642 | case HSBSliderMidBg: | ||
643 | pixmaps[HSBSliderMidBg] = processEmbedded("sbslider_mid", bH, bS, bV); | ||
644 | *pixmaps[HSBSliderMidBg] = pixmaps[HSBSliderMidBg]->xForm(rMatrix); | ||
645 | break; | ||
646 | default: | ||
647 | break; | ||
648 | } | ||
649 | return(pixmaps[item]); | ||
650 | } | ||
651 | |||
652 | void LiquidStyle::polish(QPalette &appPal) | ||
653 | { | ||
654 | |||
655 | int i; | ||
656 | for(i=0; i < BITMAP_ITEMS; ++i){ | ||
657 | if(pixmaps[i]){ | ||
658 | delete pixmaps[i]; | ||
659 | pixmaps[i] = NULL; | ||
660 | } | ||
661 | } | ||
662 | QWidgetList *list = QApplication::allWidgets(); | ||
663 | QWidgetListIt it( *list ); | ||
664 | QWidget *w; | ||
665 | while ((w=it.current()) != 0 ){ | ||
666 | ++it; | ||
667 | if(w->inherits("QPushButton")){ | ||
668 | unapplyCustomAttributes((QPushButton *)w); | ||
669 | } | ||
670 | } | ||
671 | |||
672 | loadCustomButtons(); | ||
673 | lowLightVal = 100 + (2* /*KGlobalSettings::contrast()*/ 3 +4)*10; | ||
674 | btnDict.clear(); | ||
675 | btnBorderDict.clear(); | ||
676 | bevelFillDict.clear(); | ||
677 | smallBevelFillDict.clear(); | ||
678 | |||
679 | Config config ( "qpe" ); | ||
680 | QPalette pal = QApplication::palette(); | ||
681 | |||
682 | // button color stuff | ||
683 | config. setGroup ( "Appearance" ); | ||
684 | QColor c = QColor ( config. readEntry("Button", ( Qt::lightGray ). name ( ))); | ||
685 | if ( c == QColor ( config. readEntry ( "background", ( Qt::lightGray ). name ( )))) { | ||
686 | // force button color to be different from background | ||
687 | QBrush btnBrush(QColor(200, 202, 228)); | ||
688 | appPal.setBrush(QColorGroup::Button, btnBrush); | ||
689 | } | ||
690 | c.hsv(&btnH, &btnS, &btnV); | ||
691 | c.light(120).hsv(&btnHoverH, &btnHoverS, &btnHoverV); | ||
692 | |||
693 | // menu pixmap | ||
694 | if(!menuPix){ | ||
695 | menuPix = new QPixmap; | ||
696 | menuPix->resize(64, 64); | ||
697 | } | ||
698 | QPainter painter; | ||
699 | menuPix->fill(c.rgb()); | ||
700 | painter.begin(menuPix); | ||
701 | painter.setPen(c.dark(105)); | ||
702 | for(i=0; i < 63; i+=4){ | ||
703 | painter.drawLine(0, i, 63, i); | ||
704 | painter.drawLine(0, i+1, 63, i+1); | ||
705 | }; | ||
706 | painter.end(); | ||
707 | menuBrush.setColor(c); | ||
708 | menuBrush.setPixmap(*menuPix); | ||
709 | |||
710 | // pager brush | ||
711 | c = c.dark(120); | ||
712 | QPixmap *pix = smallBevelFillDict.find(c.rgb()); // better be NULL ;-) | ||
713 | if(!pix){ | ||
714 | int h, s, v; | ||
715 | c.hsv(&h, &s, &v); | ||
716 | pix = new QPixmap(*smallBevelFillPix); | ||
717 | adjustHSV(*pix, h, s, v); | ||
718 | smallBevelFillDict.insert(c.rgb(), pix); | ||
719 | } | ||
720 | pagerHoverBrush.setColor(c); | ||
721 | pagerHoverBrush.setPixmap(*pix); | ||
722 | |||
723 | c = c.dark(120); | ||
724 | pix = smallBevelFillDict.find(c.rgb()); // better be NULL ;-) | ||
725 | if(!pix){ | ||
726 | int h, s, v; | ||
727 | c.hsv(&h, &s, &v); | ||
728 | pix = new QPixmap(*smallBevelFillPix); | ||
729 | adjustHSV(*pix, h, s, v); | ||
730 | smallBevelFillDict.insert(c.rgb(), pix); | ||
731 | } | ||
732 | pagerBrush.setColor(c); | ||
733 | pagerBrush.setPixmap(*pix); | ||
734 | |||
735 | // background color stuff | ||
736 | c = QColor ( config. readEntry ( "Background", ( Qt::lightGray ).name ( ))); | ||
737 | c.hsv(&bH, &bS, &bV); | ||
738 | c.light(120).hsv(&bHoverH, &bHoverS, &bHoverV); | ||
739 | |||
740 | // FIXME? | ||
741 | if(vsbSliderFillPix) | ||
742 | delete vsbSliderFillPix; | ||
743 | vsbSliderFillPix = new QPixmap(bevelFillPix->xForm(rMatrix)); | ||
744 | adjustHSV(*vsbSliderFillPix, bH, bS, bV); | ||
745 | |||
746 | // background brush | ||
747 | QPixmap wallPaper(32, 32); | ||
748 | wallPaper.fill(c.rgb()); | ||
749 | painter.begin(&wallPaper); | ||
750 | for(i=0; i < 32; i+=4){ | ||
751 | painter.setPen(c.dark(105)); | ||
752 | painter.drawLine(0, i, 32, i); | ||
753 | painter.setPen(c.dark(103)); | ||
754 | painter.drawLine(0, i+1, 32, i+1); | ||
755 | }; | ||
756 | painter.end(); | ||
757 | bgBrush.setColor(c); | ||
758 | bgBrush.setPixmap(wallPaper); | ||
759 | appPal.setBrush(QColorGroup::Background, bgBrush); | ||
760 | |||
761 | // lineedits | ||
762 | c = QColor ( config. readEntry("Base", ( Qt::white). name ( ))); | ||
763 | QPixmap basePix; | ||
764 | basePix.resize(32, 32); | ||
765 | basePix.fill(c.rgb()); | ||
766 | painter.begin(&basePix); | ||
767 | painter.setPen(c.dark(105)); | ||
768 | for(i=0; i < 32; i+=4){ | ||
769 | painter.drawLine(0, i, 32, i); | ||
770 | painter.drawLine(0, i+1, 32, i+1); | ||
771 | }; | ||
772 | painter.end(); | ||
773 | baseBrush.setColor(c); | ||
774 | baseBrush.setPixmap(basePix); | ||
775 | it.toFirst(); | ||
776 | while ((w=it.current()) != 0 ){ | ||
777 | ++it; | ||
778 | if(w->inherits("QLineEdit")){ | ||
779 | QPalette pal = w->palette(); | ||
780 | pal.setBrush(QColorGroup::Base, baseBrush); | ||
781 | w->setPalette(pal); | ||
782 | } | ||
783 | else if(w->inherits("QPushButton")){ | ||
784 | applyCustomAttributes((QPushButton *)w); | ||
785 | } | ||
786 | } | ||
787 | |||
788 | } | ||
789 | |||
790 | void LiquidStyle::polish(QWidget *w) | ||
791 | { | ||
792 | if(w->inherits("QMenuBar")){ | ||
793 | //((QFrame*)w)->setLineWidth(0); | ||
794 | w->setBackgroundMode(QWidget::PaletteBackground); | ||
795 | return; | ||
796 | } | ||
797 | if(w->inherits("QPopupMenu")) | ||
798 | w->setBackgroundMode(QWidget::NoBackground); | ||
799 | |||
800 | if(w->isTopLevel()){ | ||
801 | return; | ||
802 | } | ||
803 | |||
804 | w-> setBackgroundOrigin ( QWidget::ParentOrigin ); | ||
805 | |||
806 | if(w->inherits("QComboBox") || | ||
807 | w->inherits("QLineEdit") || w->inherits("QRadioButton") || | ||
808 | w->inherits("QCheckBox") || w->inherits("QScrollBar")) { | ||
809 | w->installEventFilter(this); | ||
810 | } | ||
811 | if(w->inherits("QLineEdit")){ | ||
812 | QPalette pal = w->palette(); | ||
813 | pal.setBrush(QColorGroup::Base, baseBrush); | ||
814 | w->setPalette(pal); | ||
815 | } | ||
816 | if(w->inherits("QPushButton")){ | ||
817 | applyCustomAttributes((QPushButton *)w); | ||
818 | w->installEventFilter(this); | ||
819 | } | ||
820 | if(w->inherits("QButton") || w-> inherits("QComboBox")){ | ||
821 | w-> setBackgroundMode ( QWidget::PaletteBackground ); | ||
822 | } | ||
823 | |||
824 | bool isViewport = qstrcmp(w->name(), "qt_viewport") == 0 || | ||
825 | qstrcmp(w->name(), "qt_clipped_viewport") == 0; | ||
826 | bool isViewportChild = w->parent() && | ||
827 | ((qstrcmp(w->parent()->name(), "qt_viewport") == 0) || | ||
828 | (qstrcmp(w->parent()->name(), "qt_clipped_viewport") == 0)); | ||
829 | |||
830 | if(isViewport && w->parent() && qstrcmp(w->parent()->name(), "proxyview") == 0){ | ||
831 | w->setBackgroundMode(QWidget::X11ParentRelative); | ||
832 | return; | ||
833 | } | ||
834 | if(isViewportChild){ | ||
835 | if(w->inherits("QButton") || w->inherits("QComboBox")){ | ||
836 | if(w->parent()){ // heh, only way to test for KHTML children ;-) | ||
837 | if(w->parent()->parent()){ | ||
838 | if(w->parent()->parent()->parent() && | ||
839 | w->parent()->parent()->parent()->inherits("KHTMLView")){ | ||
840 | w->setAutoMask(true); | ||
841 | w->setBackgroundMode(QWidget::NoBackground); | ||
842 | } | ||
843 | } | ||
844 | } | ||
845 | return; | ||
846 | } | ||
847 | } | ||
848 | if(w->inherits("QHeader")){ | ||
849 | w->setMouseTracking(true); | ||
850 | w->installEventFilter(this); | ||
851 | } | ||
852 | if(w-> inherits("QToolButton")) { | ||
853 | ((QToolButton*)w)->setAutoRaise (false); | ||
854 | } | ||
855 | if(w->ownPalette() && !w->inherits("QButton") && !w->inherits("QComboBox")){ | ||
856 | return; | ||
857 | } | ||
858 | |||
859 | if(w->parent() && w->parent()->isWidgetType() && !((QWidget*)w->parent())-> | ||
860 | palette().active().brush(QColorGroup::Background).pixmap()){ | ||
861 | qWarning("No parent pixmap for child widget %s", w->className()); | ||
862 | return; | ||
863 | } | ||
864 | if(!isViewport && !isViewportChild && !w->testWFlags(WType_Popup) && | ||
865 | !( !w-> inherits("QLineEdit") && w-> parent() && w-> parent()-> isWidgetType ( ) && w-> parent()-> inherits ( "QMultiLineEdit" ))) { | ||
866 | if(w->backgroundMode() == QWidget::PaletteBackground || | ||
867 | w->backgroundMode() == QWidget::PaletteButton){ | ||
868 | w->setBackgroundMode(QWidget::X11ParentRelative); | ||
869 | } | ||
870 | } | ||
871 | if(w->inherits("QToolBar")){ | ||
872 | w->installEventFilter(this); | ||
873 | w->setBackgroundMode(QWidget::PaletteBackground); | ||
874 | return; | ||
875 | } | ||
876 | |||
877 | } | ||
878 | |||
879 | void LiquidStyle::unPolish(QWidget *w) | ||
880 | { | ||
881 | if(w->inherits("QMenuBar")){ | ||
882 | ((QFrame *)w)->setLineWidth(1); | ||
883 | w->setBackgroundMode(QWidget::PaletteBackground); | ||
884 | return; | ||
885 | } | ||
886 | |||
887 | if(w->inherits("QPopupMenu")) | ||
888 | w->setBackgroundMode(QWidget::PaletteButton); | ||
889 | |||
890 | if(w->isTopLevel()) | ||
891 | return; | ||
892 | |||
893 | // for viewport children, don't just check for NoBackground.... | ||
894 | bool isViewportChild = w->parent() && | ||
895 | ((qstrcmp(w->parent()->name(), "qt_viewport") == 0) || | ||
896 | (qstrcmp(w->parent()->name(), "qt_clipped_viewport") == 0)); | ||
897 | |||
898 | w->setPalette(QApplication::palette()); | ||
899 | if(w->backgroundMode() == QWidget::X11ParentRelative || isViewportChild){ | ||
900 | if(w->inherits("QPushButton")) | ||
901 | w->setBackgroundMode(QWidget::PaletteButton); | ||
902 | else | ||
903 | w->setBackgroundMode(QWidget::PaletteBackground); | ||
904 | } | ||
905 | |||
906 | if(isViewportChild) | ||
907 | w->setAutoMask(false); | ||
908 | |||
909 | if(w->inherits("QPushButton")){ | ||
910 | unapplyCustomAttributes((QPushButton *)w); | ||
911 | w->removeEventFilter(this); | ||
912 | } | ||
913 | /* | ||
914 | if(w->inherits("QPushButton") || w-> inherits("QComboBox")){ | ||
915 | w-> setBackgroundMode ( PaletteBackground ); | ||
916 | } | ||
917 | */ | ||
918 | if(w->inherits("QComboBox") || | ||
919 | w->inherits("QLineEdit") || w->inherits("QRadioButton") || | ||
920 | w->inherits("QCheckBox") || w->inherits("QScrollBar")) { | ||
921 | w->removeEventFilter(this); | ||
922 | } | ||
923 | if(w->inherits("QButton") || w->inherits("QComboBox")){ | ||
924 | if(w->parent() && w->parent()->inherits("KHTMLPart")){ | ||
925 | w->setAutoMask(false); | ||
926 | } | ||
927 | } | ||
928 | if(w->inherits("QToolBar")){ | ||
929 | w->removeEventFilter(this); | ||
930 | w->setBackgroundMode(QWidget::PaletteBackground); | ||
931 | return; | ||
932 | } | ||
933 | if(w->inherits("QHeader")){ | ||
934 | w->setMouseTracking(false); | ||
935 | w->removeEventFilter(this); | ||
936 | } | ||
937 | } | ||
938 | |||
939 | void LiquidStyle::polish(QApplication *app) | ||
940 | { | ||
941 | |||
942 | QWindowsStyle::polish(app); | ||
943 | menuAni = app->isEffectEnabled(UI_AnimateMenu); | ||
944 | menuFade = app->isEffectEnabled(UI_FadeMenu); | ||
945 | if(menuAni) | ||
946 | app->setEffectEnabled(UI_AnimateMenu, false); | ||
947 | if(menuFade) | ||
948 | app->setEffectEnabled(UI_FadeMenu, false); | ||
949 | |||
950 | qt_set_draw_menu_bar_impl((QDrawMenuBarItemImpl) &LiquidStyle::drawMenuBarItem); | ||
951 | } | ||
952 | |||
953 | void LiquidStyle::unPolish(QApplication *app) | ||
954 | { | ||
955 | QWindowsStyle::unPolish(app); | ||
956 | app->setEffectEnabled(UI_AnimateMenu, menuAni); | ||
957 | app->setEffectEnabled(UI_FadeMenu, menuFade); | ||
958 | |||
959 | qt_set_draw_menu_bar_impl ( 0 ); | ||
960 | } | ||
961 | |||
962 | /* | ||
963 | * This is a fun method ;-) Here's an overview. KToolBar grabs resize to | ||
964 | * force everything to erase and repaint on resize. This is going away, I'm | ||
965 | * trying to get shaped widgets to work right without masking. QPushButton, | ||
966 | * QComboBox, and Panel applet handles capture mouse enter and leaves in order | ||
967 | * to set the highlightwidget and repaint for mouse hovers. CheckBoxes and | ||
968 | * RadioButtons need to do this differently. Qt buffers these in pixmaps and | ||
969 | * caches them in QPixmapCache, which is bad for doing things like hover | ||
970 | * because the style methods aren't called in paintEvents if everything | ||
971 | * is cached. We use our own Paint event handler instead. Taskbuttons and | ||
972 | * pager buttons draw into a pixmap buffer, so we handle those with palette | ||
973 | * modifications. For QHeader, different header items are actually one widget | ||
974 | * that draws multiple items, so we need to check which ID is hightlighted | ||
975 | * and draw it. Finally, we also check enter and leave events for QLineEdit, | ||
976 | * since if it's inside a combobox we want to highlight the combobox during | ||
977 | * hovering in the edit. | ||
978 | */ | ||
979 | bool LiquidStyle::eventFilter(QObject *obj, QEvent *ev) | ||
980 | { | ||
981 | if(obj->inherits("QToolBar")){ | ||
982 | if(ev->type() == QEvent::Resize){ | ||
983 | const QObjectList *tbChildList = obj->children(); | ||
984 | QObjectListIt it(*tbChildList); | ||
985 | QObject *child; | ||
986 | while((child = it.current()) != NULL){ | ||
987 | ++it; | ||
988 | if(child->isWidgetType()) | ||
989 | ((QWidget *)child)->repaint(true); | ||
990 | } | ||
991 | |||
992 | } | ||
993 | } | ||
994 | else if(obj->inherits("QPushButton") || obj->inherits("QComboBox")){ | ||
995 | QWidget *btn = (QWidget *)obj; | ||
996 | if(ev->type() == QEvent::Enter){ | ||
997 | if(btn->isEnabled()){ | ||
998 | highlightWidget = btn; | ||
999 | btn->repaint(false); | ||
1000 | } | ||
1001 | } | ||
1002 | else if(ev->type() == QEvent::Leave){ | ||
1003 | if(btn == highlightWidget){ | ||
1004 | highlightWidget = NULL; | ||
1005 | btn->repaint(false); | ||
1006 | } | ||
1007 | } | ||
1008 | } | ||
1009 | else if(obj->inherits("QToolButton")){ | ||
1010 | QToolButton *btn = (QToolButton *)btn; | ||
1011 | if(!btn->autoRaise()){ | ||
1012 | if(btn->isEnabled()){ | ||
1013 | highlightWidget = btn; | ||
1014 | btn->repaint(false); | ||
1015 | } | ||
1016 | } | ||
1017 | else if(ev->type() == QEvent::Leave){ | ||
1018 | QWidget *btn = (QWidget *)obj; | ||
1019 | if(btn == highlightWidget){ | ||
1020 | highlightWidget = NULL; | ||
1021 | btn->repaint(false); | ||
1022 | } | ||
1023 | } | ||
1024 | else | ||
1025 | highlightWidget = NULL; | ||
1026 | } | ||
1027 | else if(obj->inherits("QScrollBar")){ | ||
1028 | QScrollBar *sb = (QScrollBar *)obj; | ||
1029 | if(ev->type() == QEvent::Enter){ | ||
1030 | if(sb->isEnabled()){ | ||
1031 | highlightWidget = sb; | ||
1032 | sb->repaint(false); | ||
1033 | } | ||
1034 | } | ||
1035 | else if(ev->type() == QEvent::Leave){ | ||
1036 | if(sb == highlightWidget && !sb->draggingSlider()){ | ||
1037 | highlightWidget = NULL; | ||
1038 | sb->repaint(false); | ||
1039 | } | ||
1040 | } | ||
1041 | else if(ev->type() == QEvent::MouseButtonRelease){ | ||
1042 | QMouseEvent *me = (QMouseEvent *)ev; | ||
1043 | if(sb == highlightWidget && !sb->rect().contains(me->pos())){ | ||
1044 | highlightWidget = NULL; | ||
1045 | sb->repaint(false); | ||
1046 | } | ||
1047 | } | ||
1048 | } | ||
1049 | else if(obj->inherits("QLineEdit")){ | ||
1050 | if(obj->parent() && obj->parent()->inherits("QComboBox")){ | ||
1051 | QWidget *btn = (QComboBox *)obj->parent(); | ||
1052 | if(ev->type() == QEvent::Enter){ | ||
1053 | if (btn->isEnabled()){ | ||
1054 | highlightWidget = btn; | ||
1055 | btn->repaint(false); | ||
1056 | } | ||
1057 | } | ||
1058 | else if(ev->type() == QEvent::Leave){ | ||
1059 | if (btn == highlightWidget) | ||
1060 | highlightWidget = NULL; | ||
1061 | btn->repaint(false); | ||
1062 | } | ||
1063 | } | ||
1064 | } | ||
1065 | else if(obj->inherits("QRadioButton") || obj->inherits("QCheckBox")){ | ||
1066 | QButton *btn = (QButton *)obj; | ||
1067 | bool isRadio = obj->inherits("QRadioButton"); | ||
1068 | if(ev->type() == QEvent::Paint){ | ||
1069 | //if(btn->autoMask()) | ||
1070 | btn->erase(); | ||
1071 | QPainter p; | ||
1072 | p.begin(btn); | ||
1073 | QFontMetrics fm = btn->fontMetrics(); | ||
1074 | QSize lsz = fm.size(ShowPrefix, btn->text()); | ||
1075 | QSize sz = isRadio ? exclusiveIndicatorSize() | ||
1076 | : indicatorSize(); | ||
1077 | |||
1078 | if(btn->hasFocus()){ | ||
1079 | QRect r = QRect(0, 0, btn->width(), btn->height()); | ||
1080 | p.setPen(btn->colorGroup().button().dark(140)); | ||
1081 | p.drawLine(r.x()+1, r.y(), r.right()-1, r.y()); | ||
1082 | p.drawLine(r.x(), r.y()+1, r.x(), r.bottom()-1); | ||
1083 | p.drawLine(r.right(), r.y()+1, r.right(), r.bottom()-1); | ||
1084 | p.drawLine(r.x()+1, r.bottom(), r.right()-1, r.bottom()); | ||
1085 | } | ||
1086 | int x = 0; | ||
1087 | int y = (btn->height()-lsz.height()+fm.height()-sz.height())/2; | ||
1088 | if(isRadio) | ||
1089 | drawExclusiveIndicator(&p, x, y, sz.width(), sz.height(), | ||
1090 | btn->colorGroup(), btn->isOn(), | ||
1091 | btn->isDown(), btn->isEnabled()); | ||
1092 | else | ||
1093 | drawIndicator(&p, x, y, sz.width(), sz.height(), | ||
1094 | btn->colorGroup(), btn->state(), btn->isDown(), | ||
1095 | btn->isEnabled()); | ||
1096 | x = sz.width() + 6; | ||
1097 | y = 0; | ||
1098 | drawItem(&p, sz.width()+6+1, 0, btn->width()-(sz.width()+6+1), | ||
1099 | btn->height(), AlignLeft|AlignVCenter|ShowPrefix, | ||
1100 | btn->colorGroup(), btn->isEnabled(), | ||
1101 | btn->pixmap(), btn->text()); | ||
1102 | p.end(); | ||
1103 | return(true); | ||
1104 | } | ||
1105 | // for hover, just redraw the indicator (not the text) | ||
1106 | else if((ev->type() == QEvent::Enter && btn->isEnabled()) || | ||
1107 | (ev->type() == QEvent::Leave && btn == highlightWidget)){ | ||
1108 | QButton *btn = (QButton *)obj; | ||
1109 | bool isRadio = obj->inherits("QRadioButton"); | ||
1110 | |||
1111 | if(ev->type() == QEvent::Enter) | ||
1112 | highlightWidget = btn; | ||
1113 | else | ||
1114 | highlightWidget = NULL; | ||
1115 | QFontMetrics fm = btn->fontMetrics(); | ||
1116 | QSize lsz = fm.size(ShowPrefix, btn->text()); | ||
1117 | QSize sz = isRadio ? exclusiveIndicatorSize() | ||
1118 | : indicatorSize(); | ||
1119 | int x = 0; | ||
1120 | int y = (btn->height()-lsz.height()+fm.height()-sz.height())/2; | ||
1121 | //if(btn->autoMask()) | ||
1122 | // btn->erase(x+1, y+1, sz.width()-2, sz.height()-2); | ||
1123 | QPainter p; | ||
1124 | p.begin(btn); | ||
1125 | if(isRadio) | ||
1126 | drawExclusiveIndicator(&p, x, y, sz.width(), sz.height(), | ||
1127 | btn->colorGroup(), btn->isOn(), | ||
1128 | btn->isDown(), btn->isEnabled()); | ||
1129 | else | ||
1130 | drawIndicator(&p, x, y, sz.width(), sz.height(), | ||
1131 | btn->colorGroup(), btn->state(), btn->isDown(), | ||
1132 | btn->isEnabled()); | ||
1133 | p.end(); | ||
1134 | } | ||
1135 | } | ||
1136 | else if(obj->inherits("QHeader")){ | ||
1137 | QHeader *hw = (QHeader *)obj; | ||
1138 | if(ev->type() == QEvent::Enter){ | ||
1139 | currentHeader = hw; | ||
1140 | headerHoverID = -1; | ||
1141 | } | ||
1142 | else if(ev->type() == QEvent::Leave){ | ||
1143 | currentHeader = NULL; | ||
1144 | if(headerHoverID != -1){ | ||
1145 | hw->repaint(hw->sectionPos(headerHoverID), 0, | ||
1146 | hw->sectionSize(headerHoverID), hw->height()); | ||
1147 | } | ||
1148 | headerHoverID = -1; | ||
1149 | } | ||
1150 | else if(ev->type() == QEvent::MouseMove){ | ||
1151 | QMouseEvent *me = (QMouseEvent *)ev; | ||
1152 | int oldHeader = headerHoverID; | ||
1153 | headerHoverID = hw->sectionAt(me->x()); | ||
1154 | if(oldHeader != headerHoverID){ | ||
1155 | // reset old header | ||
1156 | if(oldHeader != -1){ | ||
1157 | hw->repaint(hw->sectionPos(oldHeader), 0, | ||
1158 | hw->sectionSize(oldHeader), hw->height()); | ||
1159 | } | ||
1160 | if(headerHoverID != -1){ | ||
1161 | hw->repaint(hw->sectionPos(headerHoverID), 0, | ||
1162 | hw->sectionSize(headerHoverID), hw->height()); | ||
1163 | } | ||
1164 | } | ||
1165 | } | ||
1166 | } | ||
1167 | return(false); | ||
1168 | } | ||
1169 | |||
1170 | void LiquidStyle::drawButton(QPainter *p, int x, int y, int w, int h, | ||
1171 | const QColorGroup &g, bool sunken, | ||
1172 | const QBrush *) | ||
1173 | { | ||
1174 | drawRoundButton(p, sunken ? g.background() : g.button(), g.background(), | ||
1175 | x, y, w, h); | ||
1176 | } | ||
1177 | |||
1178 | void LiquidStyle::drawToolButton(QPainter *p, int x, int y, int w, int h, | ||
1179 | const QColorGroup &g, bool sunken, | ||
1180 | const QBrush *) | ||
1181 | { | ||
1182 | if(p->device()->devType() != QInternal::Widget){ | ||
1183 | // drawing into a temp pixmap, don't use mask | ||
1184 | QColor c = sunken ? g.button() : g.background(); | ||
1185 | p->setPen(c.dark(130)); | ||
1186 | p->drawRect(x, y, w, h); | ||
1187 | p->setPen(c.light(105)); | ||
1188 | p->drawRect(x+1, y+1, w-2, h-2); | ||
1189 | |||
1190 | |||
1191 | // fill | ||
1192 | QPixmap *pix = bevelFillDict.find(c.rgb()); | ||
1193 | if(!pix){ | ||
1194 | int h, s, v; | ||
1195 | c.hsv(&h, &s, &v); | ||
1196 | pix = new QPixmap(*bevelFillPix); | ||
1197 | adjustHSV(*pix, h, s, v); | ||
1198 | bevelFillDict.insert(c.rgb(), pix); | ||
1199 | } | ||
1200 | |||
1201 | p->drawTiledPixmap(x+2, y+2, w-4, h-4, *pix); | ||
1202 | } | ||
1203 | else{ | ||
1204 | drawClearBevel(p, x, y, w, h, sunken ? g.button() : | ||
1205 | highlightWidget == p->device() ? g.button().light(110) : | ||
1206 | g.background(), g.background()); | ||
1207 | } | ||
1208 | } | ||
1209 | |||
1210 | void LiquidStyle::drawPushButton(QPushButton *btn, QPainter *p) | ||
1211 | { | ||
1212 | QRect r = btn->rect(); | ||
1213 | bool sunken = btn->isOn() || btn->isDown(); | ||
1214 | QColorGroup g = btn->colorGroup(); | ||
1215 | |||
1216 | |||
1217 | //int dw = buttonDefaultIndicatorWidth(); | ||
1218 | if(btn->hasFocus() || btn->isDefault()){ | ||
1219 | QColor c = btn->hasFocus() ? g.button().light(110) : g.background(); | ||
1220 | QPixmap *pix = bevelFillDict.find(c.rgb()); | ||
1221 | if(!pix){ | ||
1222 | int h, s, v; | ||
1223 | c.hsv(&h, &s, &v); | ||
1224 | pix = new QPixmap(*bevelFillPix); | ||
1225 | adjustHSV(*pix, h, s, v); | ||
1226 | bevelFillDict.insert(c.rgb(), pix); | ||
1227 | } | ||
1228 | p->setPen(c.dark(150)); | ||
1229 | p->drawLine(r.x()+1, r.y(), r.right()-1, r.y()); | ||
1230 | p->drawLine(r.x(), r.y()+1, r.x(), r.bottom()-1); | ||
1231 | p->drawLine(r.right(), r.y()+1, r.right(), r.bottom()-1); | ||
1232 | p->drawLine(r.x()+1, r.bottom(), r.right()-1, r.bottom()); | ||
1233 | p->drawTiledPixmap(r.x()+1, r.y()+1, r.width()-2, r.height()-2, *pix); | ||
1234 | } | ||
1235 | |||
1236 | QColor newColor = btn == highlightWidget || sunken ? | ||
1237 | g.button().light(120) : g.button(); | ||
1238 | |||
1239 | drawRoundButton(p, newColor, g.background(), | ||
1240 | r.x(), r.y(), r.width(), r.height(), !btn->autoMask(), | ||
1241 | sunken, btn->isDefault() || btn->autoDefault() || btn->hasFocus(), | ||
1242 | btn->autoMask()); | ||
1243 | } | ||
1244 | |||
1245 | void LiquidStyle::drawPushButtonLabel(QPushButton *btn, QPainter *p) | ||
1246 | { | ||
1247 | int x1, y1, x2, y2, w, h; | ||
1248 | btn->rect().coords(&x1, &y1, &x2, &y2); | ||
1249 | w = btn->width(); | ||
1250 | h = btn->height(); | ||
1251 | |||
1252 | bool act = btn->isOn() || btn->isDown(); | ||
1253 | if(act){ | ||
1254 | ++x1, ++y1; | ||
1255 | } | ||
1256 | |||
1257 | // Draw iconset first, if any | ||
1258 | if ( btn->iconSet() && !btn->iconSet()->isNull() ) | ||
1259 | { | ||
1260 | QIconSet::Mode mode = btn->isEnabled() | ||
1261 | ? QIconSet::Normal : QIconSet::Disabled; | ||
1262 | if ( mode == QIconSet::Normal && btn->hasFocus() ) | ||
1263 | mode = QIconSet::Active; | ||
1264 | QPixmap pixmap = btn->iconSet()->pixmap( QIconSet::Small, mode ); | ||
1265 | int pixw = pixmap.width(); | ||
1266 | int pixh = pixmap.height(); | ||
1267 | |||
1268 | p->drawPixmap( x1+6, y1+h/2-pixh/2, pixmap ); | ||
1269 | x1 += pixw + 8; | ||
1270 | w -= pixw + 8; | ||
1271 | } | ||
1272 | |||
1273 | if(act){ | ||
1274 | QFont font = btn->font(); | ||
1275 | font.setBold(true); | ||
1276 | p->setFont(font); | ||
1277 | QColor shadow(btn->colorGroup().button().dark(130)); | ||
1278 | drawItem( p, x1+1, y1+1, w, h, | ||
1279 | AlignCenter | ShowPrefix, btn->colorGroup(), btn->isEnabled(), | ||
1280 | btn->pixmap(), btn->text(), -1, | ||
1281 | &shadow); | ||
1282 | |||
1283 | drawItem( p, x1, y1, w, h, | ||
1284 | AlignCenter | ShowPrefix, btn->colorGroup(), btn->isEnabled(), | ||
1285 | btn->pixmap(), btn->text(), -1, &btn->colorGroup().light()); | ||
1286 | } | ||
1287 | else{ | ||
1288 | /* Too blurry | ||
1289 | drawItem( p, x1+1, y1+1, w, h, | ||
1290 | AlignCenter | ShowPrefix, btn->colorGroup(), btn->isEnabled(), | ||
1291 | btn->pixmap(), btn->text(), -1, | ||
1292 | &btn->colorGroup().button().dark(115)); | ||
1293 | */ | ||
1294 | drawItem( p, x1, y1, w, h, | ||
1295 | AlignCenter | ShowPrefix, | ||
1296 | btn->colorGroup(), btn->isEnabled(), | ||
1297 | btn->pixmap(), btn->text(), -1, | ||
1298 | &btn->colorGroup().buttonText()); | ||
1299 | } | ||
1300 | } | ||
1301 | |||
1302 | void LiquidStyle::drawButtonMask(QPainter *p, int x, int y, int w, int h) | ||
1303 | { | ||
1304 | int x2 = x+w-1; | ||
1305 | int y2 = y+h-1; | ||
1306 | |||
1307 | p->setPen(Qt::color1); | ||
1308 | p->fillRect(x, y, w, h, Qt::color0); | ||
1309 | if(w < 21 || h < 21){ | ||
1310 | // outer rect | ||
1311 | p->drawLine(x, y+2, x, y2-2); // l | ||
1312 | p->drawLine(x2, y+2, x2, y2-2); // r | ||
1313 | p->drawLine(x+2, y, x2-2, y); // t | ||
1314 | p->drawLine(x+2, y2, x2-2, y2); // b | ||
1315 | p->drawLine(x+1, y+1, x2-1, y+1); // top second line | ||
1316 | p->drawLine(x+1, y2-1, x2-1, y2-1); // bottom second line | ||
1317 | p->fillRect(x+1, y+2, w-2, h-4, Qt::color1); | ||
1318 | } | ||
1319 | else{ | ||
1320 | int x2 = x+w-1; | ||
1321 | int y2 = y+h-1; | ||
1322 | int bx2 = htmlBtnMaskBmp.width()-1; | ||
1323 | int by2 = htmlBtnMaskBmp.height()-1; | ||
1324 | p->drawPixmap(0, 0, htmlBtnMaskBmp, 0, 0, 10, 10); // tl | ||
1325 | p->drawPixmap(x2-9, 0, htmlBtnMaskBmp, bx2-9, 0, 10, 10); // tr | ||
1326 | p->drawPixmap(0, y2-9, htmlBtnMaskBmp, 0, by2-9, 10, 10); // bl | ||
1327 | p->drawPixmap(x2-9, y2-9, htmlBtnMaskBmp, bx2-9, by2-9, 10, 10); // br | ||
1328 | // fills | ||
1329 | p->fillRect(10, 0, w-20, 10, Qt::color1); // top | ||
1330 | p->fillRect(10, y2-9, w-20, 10, Qt::color1); // bottom | ||
1331 | p->fillRect(0, 10, w, h-20, Qt::color1); // middle | ||
1332 | } | ||
1333 | } | ||
1334 | |||
1335 | void LiquidStyle::drawBevelButton(QPainter *p, int x, int y, int w, int h, | ||
1336 | const QColorGroup &g, bool sunken, | ||
1337 | const QBrush */*fill*/) | ||
1338 | { | ||
1339 | if(currentHeader && p->device() == currentHeader){ | ||
1340 | int id = currentHeader->sectionAt(x); | ||
1341 | bool isHeaderHover = id != -1 && id == headerHoverID; | ||
1342 | drawClearBevel(p, x, y, w, h, sunken ? | ||
1343 | g.button() : isHeaderHover ? g.button().light(110) : | ||
1344 | g.background(), g.background()); | ||
1345 | } | ||
1346 | else | ||
1347 | drawClearBevel(p, x, y, w, h, sunken ? g.button() : g.background(), | ||
1348 | g.background()); | ||
1349 | } | ||
1350 | |||
1351 | QRect LiquidStyle::buttonRect(int x, int y, int w, int h) | ||
1352 | { | ||
1353 | return(QRect(x+5, y+5, w-10, h-10)); | ||
1354 | } | ||
1355 | |||
1356 | void LiquidStyle::drawComboButton(QPainter *painter, int x, int y, int w, int h, | ||
1357 | const QColorGroup &g, bool sunken, | ||
1358 | bool edit, bool, const QBrush *) | ||
1359 | { | ||
1360 | bool isHover = highlightWidget == painter->device(); | ||
1361 | bool isMasked = false; | ||
1362 | if(painter->device()->devType() == QInternal::Widget) | ||
1363 | isMasked = ((QWidget*)painter->device())->autoMask(); | ||
1364 | // TODO: Do custom code, don't just call drawRoundButton into a pixmap | ||
1365 | QPixmap tmpPix(w, h); | ||
1366 | QPainter p(&tmpPix); | ||
1367 | |||
1368 | drawRoundButton(&p, g.button(), g.background(), 0, 0, w, h, false, | ||
1369 | sunken, false, isMasked); | ||
1370 | if(!isHover){ | ||
1371 | p.setClipRect(0, 0, w-17, h); | ||
1372 | drawRoundButton(&p, g.background(), g.background(), 0, 0, w, h, false, | ||
1373 | sunken, false, isMasked); | ||
1374 | } | ||
1375 | p.end(); | ||
1376 | int x2 = x+w-1; | ||
1377 | int y2 = y+h-1; | ||
1378 | int bx2 = btnMaskBmp.width()-1; | ||
1379 | int by2 = btnMaskBmp.height()-1; | ||
1380 | QBitmap btnMask(w, h); | ||
1381 | QBitmap *mask = isMasked ? &htmlBtnMaskBmp : &btnMaskBmp; | ||
1382 | p.begin(&btnMask); | ||
1383 | p.fillRect(0, 0, w, h, Qt::color0); | ||
1384 | p.drawPixmap(0, 0, *mask, 0, 0, 10, 10); // tl | ||
1385 | p.drawPixmap(x2-9, 0, *mask, bx2-9, 0, 10, 10); // tr | ||
1386 | p.drawPixmap(0, y2-9, *mask, 0, by2-9, 10, 10); // bl | ||
1387 | p.drawPixmap(x2-9, y2-9, *mask, bx2-9, by2-9, 10, 10); // br | ||
1388 | // fills | ||
1389 | p.fillRect(10, 0, w-20, 10, Qt::color1); // top | ||
1390 | p.fillRect(10, y2-9, w-20, 10, Qt::color1); // bottom | ||
1391 | p.fillRect(0, 10, w, h-20, Qt::color1); // middle | ||
1392 | p.end(); | ||
1393 | tmpPix.setMask(btnMask); | ||
1394 | |||
1395 | painter->drawPixmap(x, y, tmpPix); | ||
1396 | |||
1397 | painter->setPen(g.button().dark(120)); | ||
1398 | painter->drawLine(x2-16, y+1, x2-16, y2-1); | ||
1399 | |||
1400 | if(edit){ | ||
1401 | painter->setPen(g.mid()); | ||
1402 | painter->drawRect(x+8, y+2, w-25, h-4); | ||
1403 | } | ||
1404 | int arrow_h = h / 3; | ||
1405 | int arrow_w = arrow_h; | ||
1406 | int arrow_x = w - arrow_w - 6; | ||
1407 | int arrow_y = (h - arrow_h) / 2; | ||
1408 | drawArrow(painter, DownArrow, false, arrow_x, arrow_y, arrow_w, arrow_h, g, true); | ||
1409 | } | ||
1410 | |||
1411 | void LiquidStyle::drawComboButtonMask(QPainter *p, int x, int y, int w, int h) | ||
1412 | { | ||
1413 | drawButtonMask(p, x, y, w, h); | ||
1414 | } | ||
1415 | |||
1416 | QRect LiquidStyle::comboButtonRect(int x, int y, int w, int h) | ||
1417 | { | ||
1418 | //return(QRect(x+3, y+3, w - (h / 3) - 13, h-6)); | ||
1419 | return(QRect(x+9, y+3, w - (h / 3) - 20, h-6)); | ||
1420 | } | ||
1421 | |||
1422 | QRect LiquidStyle::comboButtonFocusRect(int x, int y, int w, int h) | ||
1423 | { | ||
1424 | return(QRect(x+5, y+3, w-(h/3)-13, h-5)); | ||
1425 | } | ||
1426 | |||
1427 | void LiquidStyle::drawScrollBarControls(QPainter *p, const QScrollBar *sb, | ||
1428 | int sliderStart, uint controls, | ||
1429 | uint activeControl) | ||
1430 | { | ||
1431 | bool isHover = highlightWidget == p->device(); | ||
1432 | int sliderMin, sliderMax, sliderLength, buttonDim; | ||
1433 | scrollBarMetrics( sb, sliderMin, sliderMax, sliderLength, buttonDim ); | ||
1434 | |||
1435 | if (sliderStart > sliderMax) | ||
1436 | sliderStart = sliderMax; | ||
1437 | |||
1438 | bool horiz = sb->orientation() == QScrollBar::Horizontal; | ||
1439 | QColorGroup g = sb->colorGroup(); | ||
1440 | QRect addB, subHC, subB; | ||
1441 | QRect addPageR, subPageR, sliderR; | ||
1442 | int addX, addY, subX, subY; | ||
1443 | int len = horiz ? sb->width() : sb->height(); | ||
1444 | int extent = horiz ? sb->height() : sb->width(); | ||
1445 | |||
1446 | // a few apps (ie: KSpread), are broken and use a hardcoded scrollbar | ||
1447 | // extent of 16. Luckily, most apps (ie: Kate), seem fixed by now. | ||
1448 | bool brokenApp; | ||
1449 | if(extent == 16) | ||
1450 | brokenApp = true; | ||
1451 | else | ||
1452 | brokenApp = false; | ||
1453 | |||
1454 | if (horiz) { | ||
1455 | subY = addY = ( extent - buttonDim ) / 2; | ||
1456 | subX = 0; | ||
1457 | addX = len - buttonDim; | ||
1458 | if(sbBuffer.size() != sb->size()) | ||
1459 | sbBuffer.resize(sb->size()); | ||
1460 | } | ||
1461 | else { | ||
1462 | subX = addX = ( extent - buttonDim ) / 2; | ||
1463 | subY = 0; | ||
1464 | addY = len - buttonDim; | ||
1465 | if(sbBuffer.size() != sb->size()) | ||
1466 | sbBuffer.resize(sb->size()); | ||
1467 | } | ||
1468 | subB.setRect( subX,subY,buttonDim,buttonDim ); | ||
1469 | addB.setRect( addX,addY,buttonDim,buttonDim ); | ||
1470 | if(horiz) | ||
1471 | subHC.setRect(addX-buttonDim,addY,buttonDim,buttonDim ); | ||
1472 | else | ||
1473 | subHC.setRect(addX,addY-buttonDim,buttonDim,buttonDim ); | ||
1474 | |||
1475 | int sliderEnd = sliderStart + sliderLength; | ||
1476 | int sliderW = extent; | ||
1477 | |||
1478 | if (horiz) { | ||
1479 | subPageR.setRect( subB.right() + 1, 0, | ||
1480 | sliderStart - subB.right() - 1 , sliderW ); | ||
1481 | addPageR.setRect( sliderEnd, 0, addX - sliderEnd - buttonDim, sliderW ); | ||
1482 | sliderR .setRect( sliderStart, 0, sliderLength, sliderW ); | ||
1483 | } | ||
1484 | else { | ||
1485 | subPageR.setRect( 0, subB.bottom() + 1, sliderW, | ||
1486 | sliderStart - subB.bottom() - 1 ); | ||
1487 | addPageR.setRect( 0, sliderEnd, sliderW, addY - buttonDim - sliderEnd); | ||
1488 | sliderR .setRect( 0, sliderStart, sliderW, sliderLength ); | ||
1489 | } | ||
1490 | |||
1491 | bool maxed = sb->maxValue() == sb->minValue(); | ||
1492 | |||
1493 | QPainter painter; | ||
1494 | if(!horiz){ | ||
1495 | painter.begin(&sbBuffer); | ||
1496 | QRect bgR(0, subB.bottom()+1, sb->width(), (len-(buttonDim*3))+1); | ||
1497 | if(sliderR.height() >= 8){ | ||
1498 | painter.drawPixmap(bgR.x()+1, bgR.y(), *vsbSliderFillPix, 0, 0, | ||
1499 | 13, 8); | ||
1500 | painter.drawPixmap(bgR.x()+1, bgR.y(), *getPixmap(VSBSliderTopBg)); | ||
1501 | painter.drawTiledPixmap(bgR.x()+1, bgR.y()+8, 13, | ||
1502 | bgR.height()-16, *getPixmap(VSBSliderMidBg)); | ||
1503 | painter.drawPixmap(bgR.x()+1, bgR.bottom()-8, *vsbSliderFillPix, | ||
1504 | 0, 0, 13, 8); | ||
1505 | painter.drawPixmap(bgR.x()+1, bgR.bottom()-8, *getPixmap(VSBSliderBtmBg)); | ||
1506 | } | ||
1507 | else{ | ||
1508 | painter.drawTiledPixmap(bgR.x()+1, bgR.y(), 13, bgR.height(), | ||
1509 | *getPixmap(VSBSliderMidBg)); | ||
1510 | painter.setPen(g.background().dark(210)); | ||
1511 | painter.drawRect(bgR.x()+1, bgR.y(), 13, bgR.height()-1); | ||
1512 | painter.setPen(g.mid()); | ||
1513 | painter.drawPoint(bgR.x()+1, bgR.y()); | ||
1514 | painter.drawPoint(bgR.x()+13, bgR.y()); | ||
1515 | painter.drawPoint(bgR.x()+1, bgR.bottom()-1); | ||
1516 | painter.drawPoint(bgR.x()+13, bgR.bottom()-1); | ||
1517 | } | ||
1518 | if(controls & Slider){ | ||
1519 | if(sliderR.height() >= 16){ | ||
1520 | painter.drawPixmap(sliderR.x()+1, sliderR.y(), | ||
1521 | isHover ? *getPixmap(VSBSliderTopHover): | ||
1522 | *getPixmap(VSBSliderTop)); | ||
1523 | painter.drawTiledPixmap(sliderR.x()+1, sliderR.y()+8, 13, | ||
1524 | sliderR.height()-16, isHover ? | ||
1525 | *getPixmap(VSBSliderMidHover) : | ||
1526 | *getPixmap(VSBSliderMid)); | ||
1527 | painter.drawPixmap(sliderR.x()+1, sliderR.bottom()-8, | ||
1528 | isHover ? *getPixmap(VSBSliderBtmHover) : | ||
1529 | *getPixmap(VSBSliderBtm)); | ||
1530 | } | ||
1531 | else if(sliderR.height() >= 8){ | ||
1532 | int m = sliderR.height()/2; | ||
1533 | painter.drawPixmap(sliderR.x()+1, sliderR.y(), | ||
1534 | isHover ? *getPixmap(VSBSliderTopHover): | ||
1535 | *getPixmap(VSBSliderTop), 0, 0, 13, m); | ||
1536 | painter.drawPixmap(sliderR.x()+1, sliderR.y()+m, | ||
1537 | isHover ? *getPixmap(VSBSliderBtmHover): | ||
1538 | *getPixmap(VSBSliderBtm), 0, 8-m, 13, m); | ||
1539 | } | ||
1540 | else{ | ||
1541 | painter.setPen(g.button().dark(210)); | ||
1542 | drawRoundRect(&painter, sliderR.x()+1, sliderR.y(), | ||
1543 | 13, sliderR.height()); | ||
1544 | painter.drawTiledPixmap(sliderR.x()+2, sliderR.y()+1, | ||
1545 | 11, sliderR.height()-2, | ||
1546 | isHover ? *getPixmap(VSBSliderMidHover) : | ||
1547 | *getPixmap(VSBSliderMid), 1, 0); | ||
1548 | } | ||
1549 | } | ||
1550 | painter.setPen(g.mid()); | ||
1551 | painter.drawLine(bgR.x(), bgR.y(), bgR.x(), bgR.bottom()); | ||
1552 | painter.drawLine(bgR.right(), bgR.y(), bgR.right(), bgR.bottom()); | ||
1553 | if(brokenApp && (controls & Slider)){ | ||
1554 | painter.setPen(g.background()); | ||
1555 | painter.drawLine(bgR.right()-1, bgR.y(), bgR.right()-1, | ||
1556 | bgR.bottom()); | ||
1557 | } | ||
1558 | painter.end(); | ||
1559 | } | ||
1560 | else{ | ||
1561 | painter.begin(&sbBuffer); | ||
1562 | QRect bgR(subB.right()+1, 0, (len-(buttonDim*3))+1, sb->height()); | ||
1563 | if(sliderR.width() >= 8){ | ||
1564 | painter.drawPixmap(bgR.x(), bgR.y()+1, *vsbSliderFillPix, 0, 0, | ||
1565 | 8, 13); | ||
1566 | painter.drawPixmap(bgR.x(), bgR.y()+1, *getPixmap(HSBSliderTopBg)); | ||
1567 | painter.drawTiledPixmap(bgR.x()+8, bgR.y()+1, bgR.width()-16, | ||
1568 | 13, *getPixmap(HSBSliderMidBg)); | ||
1569 | painter.drawPixmap(bgR.right()-8, bgR.y()+1, *vsbSliderFillPix, | ||
1570 | 0, 0, 8, 13); | ||
1571 | painter.drawPixmap(bgR.right()-8, bgR.y()+1, *getPixmap(HSBSliderBtmBg)); | ||
1572 | } | ||
1573 | else{ | ||
1574 | painter.drawTiledPixmap(bgR.x(), bgR.y()+1, bgR.width(), 13, | ||
1575 | *getPixmap(HSBSliderMidBg)); | ||
1576 | painter.setPen(g.background().dark(210)); | ||
1577 | painter.drawRect(bgR.x(), bgR.y()+1, bgR.width()-1, 13); | ||
1578 | painter.setPen(g.mid()); | ||
1579 | painter.drawPoint(bgR.x(), bgR.y()+1); | ||
1580 | painter.drawPoint(bgR.x(), bgR.bottom()-1); | ||
1581 | painter.drawPoint(bgR.right()-1, bgR.y()+1); | ||
1582 | painter.drawPoint(bgR.right()-1, bgR.bottom()-1); | ||
1583 | } | ||
1584 | if(controls & Slider){ | ||
1585 | if(sliderR.width() >= 16){ | ||
1586 | painter.drawPixmap(sliderR.x(), sliderR.y()+1, | ||
1587 | isHover ? *getPixmap(HSBSliderTopHover) : | ||
1588 | *getPixmap(HSBSliderTop)); | ||
1589 | painter.drawTiledPixmap(sliderR.x()+8, sliderR.y()+1, sliderR.width()-16, | ||
1590 | 13, isHover ? *getPixmap(HSBSliderMidHover) : | ||
1591 | *getPixmap(HSBSliderMid)); | ||
1592 | painter.drawPixmap(sliderR.right()-8, sliderR.y()+1, isHover ? | ||
1593 | *getPixmap(HSBSliderBtmHover) : | ||
1594 | *getPixmap(HSBSliderBtm)); | ||
1595 | } | ||
1596 | else if(sliderR.width() >= 8){ | ||
1597 | int m = sliderR.width()/2; | ||
1598 | painter.drawPixmap(sliderR.x(), sliderR.y()+1, | ||
1599 | isHover ? *getPixmap(HSBSliderTopHover) : | ||
1600 | *getPixmap(HSBSliderTop), 0, 0, m, 13); | ||
1601 | painter.drawPixmap(sliderR.right()-8, sliderR.y()+1, isHover ? | ||
1602 | *getPixmap(HSBSliderBtmHover) : | ||
1603 | *getPixmap(HSBSliderBtm), 8-m, 0, m, 13); | ||
1604 | } | ||
1605 | else{ | ||
1606 | painter.setPen(g.button().dark(210)); | ||
1607 | drawRoundRect(&painter, sliderR.x(), sliderR.y()+1, | ||
1608 | sliderR.width(), 13); | ||
1609 | painter.drawTiledPixmap(sliderR.x()+1, sliderR.y()+2, | ||
1610 | sliderR.width()-2, 11, isHover ? | ||
1611 | *getPixmap(HSBSliderMidHover) : | ||
1612 | *getPixmap(HSBSliderMid), 0, 1); | ||
1613 | } | ||
1614 | } | ||
1615 | painter.setPen(g.mid()); | ||
1616 | painter.drawLine(bgR.x(), bgR.y(), bgR.right(), bgR.y()); | ||
1617 | painter.drawLine(bgR.x(), bgR.bottom(), bgR.right(), bgR.bottom()); | ||
1618 | if(brokenApp && (controls & Slider)){ | ||
1619 | painter.setPen(g.background()); | ||
1620 | painter.drawLine(bgR.x(), bgR.bottom()-1, bgR.right(), | ||
1621 | bgR.bottom()-1); | ||
1622 | } | ||
1623 | painter.end(); | ||
1624 | } | ||
1625 | |||
1626 | if ( controls & AddLine ) { | ||
1627 | drawSBButton(p, addB, g, activeControl == AddLine); | ||
1628 | drawArrow( p, horiz ? RightArrow : DownArrow, | ||
1629 | false, addB.x()+4, addB.y()+4, | ||
1630 | addB.width()-8, addB.height()-8, g, !maxed); | ||
1631 | } | ||
1632 | if ( controls & SubLine ) { | ||
1633 | drawSBButton(p, subB, g, activeControl == SubLine); | ||
1634 | drawArrow( p, horiz ? LeftArrow : UpArrow, | ||
1635 | false, subB.x()+4, subB.y()+4, | ||
1636 | subB.width()-8, subB.height()-8, g, !maxed); | ||
1637 | drawSBButton(p, subHC, g, activeControl == SubLine); | ||
1638 | drawArrow( p, horiz ? LeftArrow : UpArrow, | ||
1639 | false, subHC.x()+4, subHC.y()+4, | ||
1640 | subHC.width()-8, subHC.height()-8, g, !maxed); | ||
1641 | } | ||
1642 | |||
1643 | if(controls & AddPage){ | ||
1644 | if(addPageR.width()){ | ||
1645 | p->drawPixmap(addPageR.x(), addPageR.y(), sbBuffer, | ||
1646 | addPageR.x(), addPageR.y(), addPageR.width(), | ||
1647 | addPageR.height()); | ||
1648 | } | ||
1649 | } | ||
1650 | if(controls & SubPage){ | ||
1651 | if(subPageR.height()){ | ||
1652 | p->drawPixmap(subPageR.x(), subPageR.y(), sbBuffer, | ||
1653 | subPageR.x(), subPageR.y(), subPageR.width(), | ||
1654 | subPageR.height()); | ||
1655 | } | ||
1656 | } | ||
1657 | if ( controls & Slider ) { | ||
1658 | p->drawPixmap(sliderR.x(), sliderR.y(), sbBuffer, | ||
1659 | sliderR.x(), sliderR.y(), sliderR.width(), | ||
1660 | sliderR.height()); | ||
1661 | } | ||
1662 | } | ||
1663 | |||
1664 | void LiquidStyle::drawSBButton(QPainter *p, const QRect &r, const QColorGroup &g, | ||
1665 | bool down, bool /*fast*/) | ||
1666 | { | ||
1667 | p->setPen(g.mid()); | ||
1668 | p->drawRect(r); | ||
1669 | QColor c(down ? g.button() : g.background()); | ||
1670 | QPixmap *pix = bevelFillDict.find(c.rgb()); | ||
1671 | if(!pix){ | ||
1672 | int h, s, v; | ||
1673 | c.hsv(&h, &s, &v); | ||
1674 | pix = new QPixmap(*bevelFillPix); | ||
1675 | adjustHSV(*pix, h, s, v); | ||
1676 | bevelFillDict.insert(c.rgb(), pix); | ||
1677 | } | ||
1678 | p->drawTiledPixmap(r.x()+1, r.y()+1, r.width()-2, r.height()-2, *pix); | ||
1679 | |||
1680 | } | ||
1681 | |||
1682 | void LiquidStyle::drawSBDeco(QPainter *p, const QRect &r, const QColorGroup &g, | ||
1683 | bool horiz) | ||
1684 | { | ||
1685 | if(horiz){ | ||
1686 | if(r.width() >= 15){ | ||
1687 | int y = r.y()+3; | ||
1688 | int x = r.x() + (r.width()-7)/2; | ||
1689 | int y2 = r.bottom()-3; | ||
1690 | p->setPen(g.light()); | ||
1691 | p->drawLine(x, y, x, y2); | ||
1692 | p->drawLine(x+3, y, x+3, y2); | ||
1693 | p->drawLine(x+6, y, x+6, y2); | ||
1694 | |||
1695 | p->setPen(g.mid()); | ||
1696 | p->drawLine(x+1, y, x+1, y2); | ||
1697 | p->drawLine(x+4, y, x+4, y2); | ||
1698 | p->drawLine(x+7, y, x+7, y2); | ||
1699 | } | ||
1700 | } | ||
1701 | else{ | ||
1702 | if(r.height() >= 15){ | ||
1703 | int x = r.x()+3; | ||
1704 | int y = r.y() + (r.height()-7)/2; | ||
1705 | int x2 = r.right()-3; | ||
1706 | p->setPen(g.light()); | ||
1707 | p->drawLine(x, y, x2, y); | ||
1708 | p->drawLine(x, y+3, x2, y+3); | ||
1709 | p->drawLine(x, y+6, x2, y+6); | ||
1710 | |||
1711 | p->setPen(g.mid()); | ||
1712 | p->drawLine(x, y+1, x2, y+1); | ||
1713 | p->drawLine(x, y+4, x2, y+4); | ||
1714 | p->drawLine(x, y+7, x2, y+7); | ||
1715 | } | ||
1716 | } | ||
1717 | |||
1718 | } | ||
1719 | |||
1720 | |||
1721 | void LiquidStyle::scrollBarMetrics(const QScrollBar *sb, int &sliderMin, | ||
1722 | int &sliderMax, int &sliderLength, | ||
1723 | int &buttonDim) | ||
1724 | { | ||
1725 | |||
1726 | int maxLength; | ||
1727 | int b = 0; | ||
1728 | bool horiz = sb->orientation() == QScrollBar::Horizontal; | ||
1729 | int length = horiz ? sb->width() : sb->height(); | ||
1730 | int extent = horiz ? sb->height() : sb->width(); | ||
1731 | |||
1732 | if ( length > ( extent - b*2 - 1 )*2 + b*2 ) | ||
1733 | buttonDim = extent - b*2; | ||
1734 | else | ||
1735 | buttonDim = ( length - b*2 )/2 - 1; | ||
1736 | |||
1737 | sliderMin = b + buttonDim; | ||
1738 | maxLength = length - b*2 - buttonDim*3; | ||
1739 | |||
1740 | if ( sb->maxValue() == sb->minValue() ) { | ||
1741 | sliderLength = maxLength; | ||
1742 | } else { | ||
1743 | sliderLength = (sb->pageStep()*maxLength)/ | ||
1744 | (sb->maxValue()-sb->minValue()+sb->pageStep()); | ||
1745 | uint range = sb->maxValue()-sb->minValue(); | ||
1746 | if ( sliderLength < 9 || range > INT_MAX/2 ) | ||
1747 | sliderLength = 9; | ||
1748 | if ( sliderLength > maxLength ) | ||
1749 | sliderLength = maxLength; | ||
1750 | } | ||
1751 | sliderMax = sliderMin + maxLength - sliderLength; | ||
1752 | |||
1753 | } | ||
1754 | |||
1755 | QStyle::ScrollControl LiquidStyle::scrollBarPointOver(const QScrollBar *sb, | ||
1756 | int sliderStart, | ||
1757 | const QPoint &p) | ||
1758 | { | ||
1759 | if ( !sb->rect().contains( p ) ) | ||
1760 | return NoScroll; | ||
1761 | int sliderMin, sliderMax, sliderLength, buttonDim, pos; | ||
1762 | scrollBarMetrics( sb, sliderMin, sliderMax, sliderLength, buttonDim ); | ||
1763 | pos = (sb->orientation() == QScrollBar::Horizontal)? p.x() : p.y(); | ||
1764 | if ( pos < sliderMin ) | ||
1765 | return SubLine; | ||
1766 | if ( pos < sliderStart ) | ||
1767 | return SubPage; | ||
1768 | if ( pos < sliderStart + sliderLength ) | ||
1769 | return Slider; | ||
1770 | if ( pos < sliderMax + sliderLength) | ||
1771 | return AddPage; | ||
1772 | if(pos > sliderMax + sliderLength + 16) | ||
1773 | return AddLine; | ||
1774 | |||
1775 | return SubLine; | ||
1776 | } | ||
1777 | |||
1778 | #define QCOORDARRLEN(x) sizeof(x)/(sizeof(QCOORD)*2) | ||
1779 | |||
1780 | |||
1781 | QSize LiquidStyle::exclusiveIndicatorSize() const | ||
1782 | { | ||
1783 | return(QSize(16, 16)); | ||
1784 | } | ||
1785 | |||
1786 | void LiquidStyle::drawExclusiveIndicator(QPainter *p, int x, int y, int w, | ||
1787 | int h, const QColorGroup &g, bool on, | ||
1788 | bool down, bool) | ||
1789 | { | ||
1790 | bool isHover = highlightWidget == p->device(); | ||
1791 | bool isMasked = p->device() && p->device()->devType() == QInternal::Widget | ||
1792 | && ((QWidget*)p->device())->autoMask(); | ||
1793 | |||
1794 | if(isMasked){ | ||
1795 | if(on || down){ | ||
1796 | p->drawPixmap(x, y, isHover ? *getPixmap(HTMLRadioDownHover) : | ||
1797 | *getPixmap(HTMLRadioDown)); | ||
1798 | } | ||
1799 | else | ||
1800 | p->drawPixmap(x, y, isHover ? *getPixmap(HTMLRadioHover) : | ||
1801 | *getPixmap(HTMLRadio)); | ||
1802 | |||
1803 | } | ||
1804 | else{ | ||
1805 | if(on || down){ | ||
1806 | p->drawPixmap(x, y, isHover ? *getPixmap(RadioOnHover) : | ||
1807 | *getPixmap(RadioOn)); | ||
1808 | } | ||
1809 | else | ||
1810 | p->drawPixmap(x, y, isHover ? *getPixmap(RadioOffHover) : | ||
1811 | *getPixmap(RadioOff)); | ||
1812 | } | ||
1813 | } | ||
1814 | |||
1815 | void LiquidStyle::drawExclusiveIndicatorMask(QPainter *p, int x, int y, int w, | ||
1816 | int h, bool) | ||
1817 | { | ||
1818 | p->fillRect(x, y, w, h, Qt::color0); | ||
1819 | p->setPen(Qt::color1); | ||
1820 | p->drawPixmap(x, y, *getPixmap(RadioOn)->mask()); | ||
1821 | } | ||
1822 | |||
1823 | |||
1824 | QSize LiquidStyle::indicatorSize() const | ||
1825 | { | ||
1826 | return(QSize(20, 22)); | ||
1827 | } | ||
1828 | |||
1829 | void LiquidStyle::drawIndicator(QPainter *p, int x, int y, int w, int h, | ||
1830 | const QColorGroup &g, int state, bool down, bool) | ||
1831 | { | ||
1832 | bool isHover = highlightWidget == p->device(); | ||
1833 | bool isMasked = p->device() && p->device()->devType() == QInternal::Widget | ||
1834 | && ((QWidget*)p->device())->autoMask(); | ||
1835 | if(isMasked){ | ||
1836 | if(state != QButton::Off){ | ||
1837 | p->drawPixmap(x, y, isHover ? *getPixmap(HTMLCBDownHover) : | ||
1838 | *getPixmap(HTMLCBDown)); | ||
1839 | } | ||
1840 | else | ||
1841 | p->drawPixmap(x, y, isHover ? *getPixmap(HTMLCBHover) : | ||
1842 | *getPixmap(HTMLCB)); | ||
1843 | |||
1844 | } | ||
1845 | else{ | ||
1846 | if(state != QButton::Off){ | ||
1847 | p->drawPixmap(x, y, isHover ? *getPixmap(CBDownHover) : | ||
1848 | *getPixmap(CBDown)); | ||
1849 | /* Todo - tristate | ||
1850 | if(state == QButton::On){ | ||
1851 | p->setPen(Qt::black); | ||
1852 | p->drawPixmap(3, 3, xBmp); | ||
1853 | } | ||
1854 | else{ | ||
1855 | p->setPen(g.dark()); | ||
1856 | p->drawRect(x+2, y+2, w-4, h-4); | ||
1857 | p->setPen(Qt::black); | ||
1858 | p->drawLine(x+3, (y+h)/2-2, x+w-4, (y+h)/2-2); | ||
1859 | p->drawLine(x+3, (y+h)/2, x+w-4, (y+h)/2); | ||
1860 | p->drawLine(x+3, (y+h)/2+2, x+w-4, (y+h)/2+2); | ||
1861 | }*/ | ||
1862 | } | ||
1863 | else | ||
1864 | p->drawPixmap(x, y, isHover ? *getPixmap(CBHover) : *getPixmap(CB)); | ||
1865 | } | ||
1866 | } | ||
1867 | |||
1868 | void LiquidStyle::drawIndicatorMask(QPainter *p, int x, int y, int w, int h, | ||
1869 | int state) | ||
1870 | { | ||
1871 | // needed for some reason by KHtml, even tho it's all filled ;P | ||
1872 | p->drawPixmap(x, y, *getPixmap(HTMLCB)->mask()); | ||
1873 | |||
1874 | } | ||
1875 | |||
1876 | void LiquidStyle::drawSlider(QPainter *p, int x, int y, int w, int h, | ||
1877 | const QColorGroup &g, Orientation orient, | ||
1878 | bool, bool) | ||
1879 | { | ||
1880 | QWidget *parent = (QWidget *)p->device(); | ||
1881 | p->setBrushOrigin(parent->pos()); | ||
1882 | p->fillRect(x, y, w, h, | ||
1883 | QApplication::palette().active().brush(QColorGroup::Background)); | ||
1884 | p->drawPixmap(x, y, orient == Qt::Horizontal ? *getPixmap(HSlider) : | ||
1885 | *getPixmap(VSlider)); | ||
1886 | } | ||
1887 | |||
1888 | void LiquidStyle::drawSliderMask(QPainter *p, int x, int y, int w, int h, | ||
1889 | Orientation orient, bool, bool) | ||
1890 | { | ||
1891 | p->drawPixmap(x, y, orient == Qt::Horizontal ? *getPixmap(HSlider)->mask() : | ||
1892 | *getPixmap(VSlider)->mask()); | ||
1893 | } | ||
1894 | |||
1895 | int LiquidStyle::sliderLength() const | ||
1896 | { | ||
1897 | return(10); | ||
1898 | } | ||
1899 | |||
1900 | #define QCOORDARRLEN(x) sizeof(x)/(sizeof(QCOORD)*2) | ||
1901 | |||
1902 | void LiquidStyle::drawArrow(QPainter *p, Qt::ArrowType type, bool on, int x, | ||
1903 | int y, int w, int h, const QColorGroup &g, | ||
1904 | bool enabled, const QBrush *) | ||
1905 | { | ||
1906 | static const QCOORD u_arrow[]={3,1, 4,1, 2,2, 5,2, 1,3, 6,3, 0,4, 7,4, 0,5, 7,5}; | ||
1907 | static const QCOORD d_arrow[]={0,2, 7,2, 0,3, 7,3, 1,4, 6,4, 2,5, 5,5, 3,6, 4,6}; | ||
1908 | static const QCOORD l_arrow[]={1,3, 1,4, 2,2, 2,5, 3,1, 3,6, 4,0, 4,7, 5,0, 5,7}; | ||
1909 | static const QCOORD r_arrow[]={2,0, 2,7, 3,0, 3,7, 4,1, 4,6, 5,2, 5,5, 6,3, 6,4}; | ||
1910 | |||
1911 | p->setPen(enabled ? on ? g.light() : g.buttonText() : g.mid()); | ||
1912 | if(w > 8){ | ||
1913 | x = x + (w-8)/2; | ||
1914 | y = y + (h-8)/2; | ||
1915 | } | ||
1916 | |||
1917 | QPointArray a; | ||
1918 | switch(type){ | ||
1919 | case Qt::UpArrow: | ||
1920 | a.setPoints(QCOORDARRLEN(u_arrow), u_arrow); | ||
1921 | break; | ||
1922 | case Qt::DownArrow: | ||
1923 | a.setPoints(QCOORDARRLEN(d_arrow), d_arrow); | ||
1924 | break; | ||
1925 | case Qt::LeftArrow: | ||
1926 | a.setPoints(QCOORDARRLEN(l_arrow), l_arrow); | ||
1927 | break; | ||
1928 | default: | ||
1929 | a.setPoints(QCOORDARRLEN(r_arrow), r_arrow); | ||
1930 | break; | ||
1931 | } | ||
1932 | |||
1933 | a.translate(x, y); | ||
1934 | p->drawLineSegments(a); | ||
1935 | } | ||
1936 | |||
1937 | |||
1938 | void LiquidStyle::drawMenuBarItem(QPainter *p, int x, int y, int w, int h, | ||
1939 | QMenuItem *mi, QColorGroup &g, bool enabled, bool active ) | ||
1940 | { | ||
1941 | x -= 2; // Bug in Qt/E | ||
1942 | y -= 2; | ||
1943 | w += 2; | ||
1944 | h += 2; | ||
1945 | |||
1946 | p-> fillRect ( x, y, w, h, g.brush(QColorGroup::Background)); | ||
1947 | |||
1948 | w -= 2; | ||
1949 | |||
1950 | if(menuHandler->useShadowText()){ | ||
1951 | QColor shadow; | ||
1952 | if(p->device() && p->device()->devType() == QInternal::Widget && | ||
1953 | ((QWidget *)p->device())->inherits("QMenuBar")){ | ||
1954 | shadow = ((QMenuBar*)p->device())->isTopLevel() ? g.button().dark(130) : | ||
1955 | g.background().dark(130); | ||
1956 | } | ||
1957 | else | ||
1958 | shadow = g.background().dark(130); | ||
1959 | |||
1960 | if(active){ | ||
1961 | drawClearBevel(p, x+1, y+1, w-1, h-1, g.button(), g.background()); | ||
1962 | QApplication::style().drawItem(p, x+1, y+1, w, h, | ||
1963 | AlignCenter|ShowPrefix|DontClip|SingleLine, | ||
1964 | g, mi->isEnabled(), NULL, mi->text(), | ||
1965 | -1, &shadow); | ||
1966 | QApplication::style().drawItem(p, x, y, w, h, | ||
1967 | AlignCenter|ShowPrefix|DontClip|SingleLine, | ||
1968 | g, mi->isEnabled(), NULL, mi->text(), | ||
1969 | -1, &g.text()); | ||
1970 | } | ||
1971 | else{ | ||
1972 | QApplication::style().drawItem(p, x+1, y+1, w, h, | ||
1973 | AlignCenter|ShowPrefix|DontClip|SingleLine, | ||
1974 | g, mi->isEnabled(), NULL, mi->text(), | ||
1975 | -1, &shadow); | ||
1976 | QApplication::style().drawItem(p, x, y, w, h, | ||
1977 | AlignCenter|ShowPrefix|DontClip|SingleLine, | ||
1978 | g, mi->isEnabled(), NULL, mi->text(), | ||
1979 | -1, &g.text()); | ||
1980 | } | ||
1981 | } | ||
1982 | else{ | ||
1983 | if(active) | ||
1984 | drawClearBevel(p, x+1, y+1, w-1, h-1, g.button(), g.background()); | ||
1985 | QApplication::style().drawItem(p, x, y, w, h, | ||
1986 | AlignCenter|ShowPrefix|DontClip|SingleLine, | ||
1987 | g, mi->isEnabled(), NULL, mi->text(), | ||
1988 | -1, &g.text()); | ||
1989 | } | ||
1990 | } | ||
1991 | |||
1992 | void LiquidStyle::drawPopupPanel(QPainter *p, int x, int y, int w, int h, | ||
1993 | const QColorGroup &g, int lineWidth, | ||
1994 | const QBrush * fill) | ||
1995 | { | ||
1996 | QColor c; | ||
1997 | switch(menuHandler->transType()){ | ||
1998 | case None: | ||
1999 | case StippledBg: | ||
2000 | case TransStippleBg: | ||
2001 | c = g.background(); | ||
2002 | break; | ||
2003 | case StippledBtn: | ||
2004 | case TransStippleBtn: | ||
2005 | c = g.button(); | ||
2006 | break; | ||
2007 | default: | ||
2008 | c = menuHandler->bgColor(); | ||
2009 | } | ||
2010 | p->setPen(c.dark(140)); | ||
2011 | p->drawRect(x, y, w, h); | ||
2012 | p->setPen(c.light(120)); | ||
2013 | p->drawRect(x+1, y+1, w-2, h-2); | ||
2014 | } | ||
2015 | |||
2016 | void LiquidStyle::drawPopupMenuItem( QPainter* p, bool checkable, int maxpmw, | ||
2017 | int tab, QMenuItem* mi, | ||
2018 | const QPalette& pal, bool act, | ||
2019 | bool enabled, int x, int y, int w, int h) | ||
2020 | { | ||
2021 | static const int motifItemFrame = 2; | ||
2022 | static const int motifItemHMargin = 3; | ||
2023 | static const int motifItemVMargin = 2; | ||
2024 | static const int motifArrowHMargin = 6; | ||
2025 | static const int windowsRightBorder = 12; | ||
2026 | |||
2027 | maxpmw = QMAX( maxpmw, 20 ); | ||
2028 | |||
2029 | |||
2030 | bool dis = !enabled; | ||
2031 | QColorGroup itemg = dis ? pal.disabled() : pal.active(); | ||
2032 | |||
2033 | int checkcol = maxpmw; | ||
2034 | if(act){ | ||
2035 | |||
2036 | // FIXME | ||
2037 | drawClearBevel(p, x, y, w, h, itemg.button(), itemg.background()); | ||
2038 | } | ||
2039 | //else if(((QWidget*)p->device())->backgroundPixmap()){ | ||
2040 | // p->drawPixmap(x, y, *((QWidget*)p->device())->backgroundPixmap(), | ||
2041 | // x, y, w, h); | ||
2042 | //} | ||
2043 | else{ | ||
2044 | if(menuHandler->transType() == None){ | ||
2045 | p->fillRect(x, y, w, h, pal.active().background()); | ||
2046 | } | ||
2047 | else if(menuHandler->transType() == StippledBg){ | ||
2048 | p->fillRect(x, y, w, h, bgBrush); | ||
2049 | } | ||
2050 | else if(menuHandler->transType() == StippledBtn){ | ||
2051 | p->fillRect(x, y, w, h, menuBrush); | ||
2052 | } | ||
2053 | else{ | ||
2054 | QPixmap *pix = menuHandler->pixmap(((QWidget*)p->device())->winId()); | ||
2055 | if(pix) | ||
2056 | p->drawPixmap(x, y, *pix, x, y, w, h); | ||
2057 | } | ||
2058 | } | ||
2059 | |||
2060 | if(!mi) | ||
2061 | return; | ||
2062 | |||
2063 | QColor discol; | ||
2064 | if (dis) { | ||
2065 | discol = itemg.mid(); | ||
2066 | p->setPen(discol); | ||
2067 | } | ||
2068 | |||
2069 | QColorGroup cg2(itemg); | ||
2070 | |||
2071 | if(menuHandler->transType() == Custom){ | ||
2072 | cg2.setColor(QColorGroup::Foreground, menuHandler->textColor()); | ||
2073 | cg2.setColor(QColorGroup::Text, menuHandler->textColor()); | ||
2074 | cg2.setColor(QColorGroup::Light, menuHandler->textColor().light(120)); | ||
2075 | cg2.setColor(QColorGroup::Mid, menuHandler->textColor().dark(120)); | ||
2076 | } | ||
2077 | else{ | ||
2078 | cg2 = QColorGroup(discol, itemg.highlight(), black, black, | ||
2079 | dis ? discol : black, discol, black); | ||
2080 | } | ||
2081 | |||
2082 | if(mi->isSeparator()){ | ||
2083 | QColor c; | ||
2084 | switch(menuHandler->transType()){ | ||
2085 | case None: | ||
2086 | case StippledBg: | ||
2087 | case TransStippleBg: | ||
2088 | c = QApplication::palette().active().background(); | ||
2089 | break; | ||
2090 | case StippledBtn: | ||
2091 | case TransStippleBtn: | ||
2092 | c = QApplication::palette().active().button(); | ||
2093 | break; | ||
2094 | default: | ||
2095 | c = menuHandler->bgColor(); | ||
2096 | } | ||
2097 | p->setPen(c.dark(140)); | ||
2098 | p->drawLine(x, y, x+w, y ); | ||
2099 | p->setPen(c.light(115)); | ||
2100 | p->drawLine(x, y+1, x+w, y+1 ); | ||
2101 | return; | ||
2102 | } | ||
2103 | if(mi->iconSet()) { | ||
2104 | QIconSet::Mode mode = dis? QIconSet::Disabled : QIconSet::Normal; | ||
2105 | if (!dis) | ||
2106 | mode = QIconSet::Active; | ||
2107 | QPixmap pixmap = mi->iconSet()->pixmap(QIconSet::Small, mode); | ||
2108 | int pixw = pixmap.width(); | ||
2109 | int pixh = pixmap.height(); | ||
2110 | QRect cr(x, y, checkcol, h); | ||
2111 | QRect pmr(0, 0, pixw, pixh); | ||
2112 | pmr.moveCenter( cr.center() ); | ||
2113 | p->setPen(itemg.highlightedText()); | ||
2114 | p->drawPixmap(pmr.topLeft(), pixmap ); | ||
2115 | |||
2116 | } | ||
2117 | else if(checkable) { | ||
2118 | int mw = checkcol + motifItemFrame; | ||
2119 | int mh = h - 2*motifItemFrame; | ||
2120 | if (mi->isChecked()){ | ||
2121 | drawCheckMark( p, x + motifItemFrame, | ||
2122 | y+motifItemFrame, mw, mh, cg2, act, dis ); | ||
2123 | } | ||
2124 | } | ||
2125 | if(menuHandler->transType() == Custom) | ||
2126 | p->setPen(menuHandler->textColor()); | ||
2127 | else | ||
2128 | p->setPen(itemg.text()); | ||
2129 | |||
2130 | |||
2131 | int xm = motifItemFrame + checkcol + motifItemHMargin; | ||
2132 | QString s = mi->text(); | ||
2133 | if (!s.isNull()) { | ||
2134 | int t = s.find( '\t' ); | ||
2135 | int m = motifItemVMargin; | ||
2136 | const int text_flags = AlignVCenter|ShowPrefix | DontClip | SingleLine; | ||
2137 | QPen oldPen = p->pen(); | ||
2138 | if(menuHandler->useShadowText()){ | ||
2139 | if(menuHandler->transType() == Custom) | ||
2140 | p->setPen(menuHandler->bgColor().dark(130)); | ||
2141 | else if(menuHandler->transType() == StippledBtn || | ||
2142 | menuHandler->transType() == TransStippleBtn) | ||
2143 | p->setPen(itemg.button().dark(130)); | ||
2144 | else | ||
2145 | p->setPen(bgBrush.color().dark(130)); | ||
2146 | |||
2147 | if (t >= 0) { | ||
2148 | p->drawText(x+w-tab-windowsRightBorder-motifItemHMargin-motifItemFrame+2, | ||
2149 | y+m+2, tab-1, h-2*m-1, text_flags, s.mid( t+1 )); | ||
2150 | } | ||
2151 | p->drawText(x+xm+1, y+m+1, w-xm-tab, h-2*m-1, text_flags, s, t); | ||
2152 | } | ||
2153 | p->setPen(oldPen); | ||
2154 | if (t >= 0) { | ||
2155 | p->drawText(x+w-tab-windowsRightBorder-motifItemHMargin-motifItemFrame+1, | ||
2156 | y+m+1, tab, h-2*m, text_flags, s.mid( t+1 )); | ||
2157 | } | ||
2158 | p->drawText(x+xm, y+m, w-xm-tab+1, h-2*m, text_flags, s, t); | ||
2159 | |||
2160 | } | ||
2161 | else if (mi->pixmap()) { | ||
2162 | QPixmap *pixmap = mi->pixmap(); | ||
2163 | if (pixmap->depth() == 1) | ||
2164 | p->setBackgroundMode(OpaqueMode); | ||
2165 | p->drawPixmap( x+xm, y+motifItemFrame, *pixmap); | ||
2166 | if (pixmap->depth() == 1) | ||
2167 | p->setBackgroundMode(TransparentMode); | ||
2168 | } | ||
2169 | if (mi->popup()) { | ||
2170 | int dim = (h-2*motifItemFrame) / 2; | ||
2171 | drawArrow(p, RightArrow, true, | ||
2172 | x+w - motifArrowHMargin - motifItemFrame - dim, y+h/2-dim/2, | ||
2173 | dim, dim, cg2, TRUE); | ||
2174 | } | ||
2175 | } | ||
2176 | |||
2177 | int LiquidStyle::popupMenuItemHeight(bool /*checkable*/, QMenuItem *mi, | ||
2178 | const QFontMetrics &fm) | ||
2179 | { | ||
2180 | if (mi->isSeparator()) | ||
2181 | return 2; | ||
2182 | |||
2183 | int h = 0; | ||
2184 | if (mi->pixmap()) | ||
2185 | h = mi->pixmap()->height(); | ||
2186 | |||
2187 | if (mi->iconSet()) | ||
2188 | h = QMAX(mi->iconSet()-> | ||
2189 | pixmap(QIconSet::Small, QIconSet::Normal).height(), h); | ||
2190 | |||
2191 | h = QMAX(fm.height() + 4, h); | ||
2192 | |||
2193 | // we want a minimum size of 18 | ||
2194 | h = QMAX(h, 18); | ||
2195 | |||
2196 | return h; | ||
2197 | } | ||
2198 | |||
2199 | |||
2200 | void LiquidStyle::drawFocusRect(QPainter *p, const QRect &r, | ||
2201 | const QColorGroup &g, const QColor *c, | ||
2202 | bool atBorder) | ||
2203 | { | ||
2204 | // are we painting a widget? | ||
2205 | if(p->device()->devType() == QInternal::Widget){ | ||
2206 | // if so does it use a special focus rectangle? | ||
2207 | QWidget *w = (QWidget *)p->device(); | ||
2208 | if(w->inherits("QPushButton") || w->inherits("QSlider")){ | ||
2209 | return; | ||
2210 | } | ||
2211 | else{ | ||
2212 | QWindowsStyle::drawFocusRect(p, r, g, c, atBorder); | ||
2213 | } | ||
2214 | } | ||
2215 | else | ||
2216 | QWindowsStyle::drawFocusRect(p, r, g, c, atBorder); | ||
2217 | |||
2218 | } | ||
2219 | |||
2220 | void LiquidStyle::polishPopupMenu(QPopupMenu *mnu) | ||
2221 | { | ||
2222 | mnu->installEventFilter(menuHandler); | ||
2223 | QWindowsStyle::polishPopupMenu(mnu); | ||
2224 | } | ||
2225 | |||
2226 | void LiquidStyle::drawTab(QPainter *p, const QTabBar *tabBar, QTab *tab, | ||
2227 | bool selected) | ||
2228 | { | ||
2229 | if(tabBar->shape() != QTabBar::RoundedAbove){ | ||
2230 | QWindowsStyle::drawTab(p, tabBar, tab, selected); | ||
2231 | return; | ||
2232 | } | ||
2233 | QPixmap tilePix; | ||
2234 | QRect r = tab->rect(); | ||
2235 | //QPixmap *pix = selected ? tabBar->hasFocus() ? pixmaps[TabFocus] : | ||
2236 | // pixmaps[TabDown] : pixmaps[Tab]; | ||
2237 | |||
2238 | QPixmap *pix = selected ? getPixmap(TabDown) : getPixmap(Tab); | ||
2239 | p->drawPixmap(r.x(), r.y(), *pix, 0, 0, 9, r.height()); | ||
2240 | p->drawPixmap(r.right()-9, r.y(), *pix, pix->width()-9, 0, 9, r.height()); | ||
2241 | tilePix.resize(pix->width()-18, r.height()); | ||
2242 | bitBlt(&tilePix, 0, 0, pix, 9, 0, pix->width()-18, r.height()); | ||
2243 | p->drawTiledPixmap(r.x()+9, r.y(), r.width()-18, r.height(), tilePix); | ||
2244 | QColor c = tabBar->colorGroup().button(); | ||
2245 | if(!selected){ | ||
2246 | p->setPen(c.dark(130)); | ||
2247 | p->drawLine(r.x(), r.bottom(), r.right(), r.bottom()); | ||
2248 | } | ||
2249 | |||
2250 | /* | ||
2251 | p->setPen(c.light(110)); | ||
2252 | p->drawLine(r.x(), r.bottom()+1, r.right(), r.bottom()+1); | ||
2253 | p->setPen(c); | ||
2254 | p->drawLine(r.x(), r.bottom()+2, r.right(), r.bottom()+2); | ||
2255 | p->setPen(c.light(110)); | ||
2256 | p->drawLine(r.x(), r.bottom()+3, r.right(), r.bottom()+3); | ||
2257 | p->setPen(c.light(120)); | ||
2258 | p->drawLine(r.x(), r.bottom()+4, r.right(), r.bottom()+4); | ||
2259 | */ | ||
2260 | |||
2261 | /* | ||
2262 | QColor c = tabBar->colorGroup().button(); | ||
2263 | pix = bevelFillDict.find(c.rgb()); | ||
2264 | if(!pix){ | ||
2265 | int h, s, v; | ||
2266 | c.hsv(&h, &s, &v); | ||
2267 | pix = new QPixmap(*bevelFillPix); | ||
2268 | adjustHSV(*pix, h, s); | ||
2269 | bevelFillDict.insert(c.rgb(), pix); | ||
2270 | }*/ | ||
2271 | |||
2272 | /* | ||
2273 | QRect r = tab->rect(); | ||
2274 | QColorGroup g = tabBar->colorGroup(); | ||
2275 | if(!selected){ | ||
2276 | r.setY(r.y()+1); | ||
2277 | p->setPen(g.dark()); | ||
2278 | p->drawLine(r.x(), r.y()+4, r.x(), r.bottom()-2); | ||
2279 | p->drawLine(r.x(), r.y()+4, r.x()+4, r.y()); | ||
2280 | p->drawLine(r.x()+4, r.y(), r.right()-1, r.y()); | ||
2281 | p->drawLine(r.right(), r.y()+1, r.right(), r.bottom()-2); | ||
2282 | |||
2283 | p->setPen(g.midlight()); | ||
2284 | p->drawLine(r.x()+1, r.y()+4, r.x()+1, r.bottom()); | ||
2285 | p->drawLine(r.x()+1, r.y()+4, r.x()+4, r.y()+1); | ||
2286 | p->drawLine(r.x()+5, r.y()+1, r.right()-2, r.y()+1); | ||
2287 | p->drawLine(r.x(), r.bottom(), r.right(), r.bottom()); | ||
2288 | |||
2289 | p->setPen(g.mid()); | ||
2290 | p->drawPoint(r.right()-1, r.y()+1); | ||
2291 | p->drawLine(r.x()+4, r.y()+2, r.right()-1, r.y()+2); | ||
2292 | p->drawLine(r.x()+3, r.y()+3, r.right()-1, r.y()+3); | ||
2293 | |||
2294 | p->fillRect(r.x()+2, r.y()+4, r.width()-3, r.height()-6, | ||
2295 | g.brush(QColorGroup::Mid)); | ||
2296 | |||
2297 | p->setPen(g.light()); | ||
2298 | p->drawLine(r.x(), r.bottom()-1, r.right(), r.bottom()-1); | ||
2299 | |||
2300 | } | ||
2301 | else{ | ||
2302 | p->setPen(g.light()); | ||
2303 | p->drawLine(r.x(), r.y()+4, r.x(), r.bottom()); | ||
2304 | p->drawLine(r.x(), r.y()+4, r.x()+4, r.y()); | ||
2305 | p->drawLine(r.x()+4, r.y(), r.right()-1, r.y()); | ||
2306 | p->setPen(g.dark()); | ||
2307 | p->drawLine(r.right(), r.y()+1, r.right(), r.bottom()); | ||
2308 | |||
2309 | p->setPen(g.midlight()); | ||
2310 | p->drawLine(r.x()+1, r.y()+4, r.x()+1, r.bottom()); | ||
2311 | p->drawLine(r.x()+1, r.y()+4, r.x()+4, r.y()+1); | ||
2312 | p->drawLine(r.x()+5, r.y()+1, r.right() - 2, r.y()+1); | ||
2313 | p->setPen(g.mid()); | ||
2314 | p->drawLine(r.right()-1, r.y()+1, r.right()-1, r.bottom()); | ||
2315 | }*/ | ||
2316 | |||
2317 | } | ||
2318 | |||
2319 | |||
2320 | |||
2321 | void LiquidStyle::drawTabMask(QPainter *p, const QTabBar*, QTab *tab, | ||
2322 | bool selected) | ||
2323 | |||
2324 | |||
2325 | { | ||
2326 | //p->fillRect(tab->rect(), Qt::color1); | ||
2327 | QRect r = tab->rect(); | ||
2328 | QPixmap *pix = selected ? getPixmap(TabDown) : getPixmap(Tab); | ||
2329 | p->drawPixmap(r.x(), r.y(), *pix->mask(), 0, 0, 9, r.height()); | ||
2330 | p->drawPixmap(r.right()-9, r.y(), *pix->mask(), pix->width()-9, 0, 9, r.height()); | ||
2331 | p->fillRect(r.x()+9, r.y(), r.width()-18, r.height(), Qt::color1); | ||
2332 | } | ||
2333 | |||
2334 | void LiquidStyle::tabbarMetrics(const QTabBar *t, int &hFrame, int &vFrame, | ||
2335 | int &overlap) | ||
2336 | { | ||
2337 | if(t->shape() == QTabBar::RoundedAbove){ | ||
2338 | overlap = 1; | ||
2339 | hFrame = 18; // was 24 | ||
2340 | vFrame = 8; // was 10 | ||
2341 | } | ||
2342 | else | ||
2343 | QWindowsStyle::tabbarMetrics(t, hFrame, vFrame, overlap); | ||
2344 | } | ||
2345 | |||
2346 | |||
2347 | |||
2348 | void LiquidStyle::drawSplitter(QPainter *p, int x, int y, int w, int h, | ||
2349 | const QColorGroup &g, Orientation) | ||
2350 | { | ||
2351 | drawClearBevel(p, x, y, w, h, highlightWidget == p->device() ? | ||
2352 | g.button().light(120) : g.button(), g.background()); | ||
2353 | } | ||
2354 | |||
2355 | |||
2356 | void LiquidStyle::drawPanel(QPainter *p, int x, int y, int w, int h, | ||
2357 | const QColorGroup &g, bool sunken, | ||
2358 | int lineWidth, const QBrush *fill) | ||
2359 | { | ||
2360 | if(p->device()->devType() == QInternal::Widget && | ||
2361 | ((QWidget *)p->device())->inherits("QLineEdit")){ | ||
2362 | int x2 = x+w-1; | ||
2363 | int y2 = y+h-1; | ||
2364 | p->setPen(g.dark()); | ||
2365 | p->drawRect(x, y, w, h); | ||
2366 | p->setPen(g.mid()); | ||
2367 | p->drawLine(x+1, y+1, x2-2, y+1); | ||
2368 | p->drawLine(x+1, y+1, x+1, y2-1); | ||
2369 | } | ||
2370 | else if(lineWidth != 2 || !sunken) | ||
2371 | QWindowsStyle::drawPanel(p, x, y, w, h, g, sunken, lineWidth, fill); | ||
2372 | else{ | ||
2373 | QPen oldPen = p->pen(); | ||
2374 | int x2 = x+w-1; | ||
2375 | int y2 = y+h-1; | ||
2376 | p->setPen(g.light()); | ||
2377 | p->drawLine(x, y2, x2, y2); | ||
2378 | p->drawLine(x2, y, x2, y2); | ||
2379 | p->setPen(g.mid()); | ||
2380 | p->drawLine(x, y, x2, y); | ||
2381 | p->drawLine(x, y, x, y2); | ||
2382 | |||
2383 | p->setPen(g.midlight()); | ||
2384 | p->drawLine(x+1, y2-1, x2-1, y2-1); | ||
2385 | p->drawLine(x2-1, y+1, x2-1, y2-1); | ||
2386 | p->setPen(g.dark()); | ||
2387 | p->drawLine(x+1, y+1, x2-1, y+1); | ||
2388 | p->drawLine(x+1, y+1, x+1, y2-1); | ||
2389 | p->setPen(oldPen); | ||
2390 | if(fill){ | ||
2391 | // I believe here we are only supposed to fill if there is a | ||
2392 | // specified fill brush... | ||
2393 | p->fillRect(x+2, y+2, w-4, h-4, *fill); | ||
2394 | } | ||
2395 | } | ||
2396 | } | ||
2397 | |||
2398 | |||
2399 | void LiquidStyle::adjustHSV(QPixmap &pix, int h, int s, int v) | ||
2400 | { | ||
2401 | QBitmap *maskBmp = NULL; | ||
2402 | if(pix.mask()) | ||
2403 | maskBmp = new QBitmap(*pix.mask()); | ||
2404 | QImage img = pix.convertToImage(); | ||
2405 | if(img.depth() != 32) | ||
2406 | img = img.convertDepth(32); | ||
2407 | unsigned int *data = (unsigned int *)img.bits(); | ||
2408 | int total = img.width()*img.height(); | ||
2409 | int current; | ||
2410 | QColor c; | ||
2411 | int oldH, oldS, oldV; | ||
2412 | if(v < 235) | ||
2413 | v += 20; | ||
2414 | else | ||
2415 | v = 255; | ||
2416 | float intensity = v/255.0; | ||
2417 | |||
2418 | for(current=0; current<total; ++current){ | ||
2419 | c.setRgb(data[current]); | ||
2420 | c.hsv(&oldH, &oldS, &oldV); | ||
2421 | oldV = (int)(oldV*intensity); | ||
2422 | c.setHsv(h, s, oldV); | ||
2423 | data[current] = c.rgb(); | ||
2424 | } | ||
2425 | pix.convertFromImage(img); | ||
2426 | if(maskBmp) | ||
2427 | pix.setMask(*maskBmp); | ||
2428 | } | ||
2429 | |||
2430 | void LiquidStyle::intensity(QPixmap &pix, float percent) | ||
2431 | { | ||
2432 | QImage image = pix.convertToImage(); | ||
2433 | int i, tmp, r, g, b; | ||
2434 | int segColors = image.depth() > 8 ? 256 : image.numColors(); | ||
2435 | unsigned char *segTbl = new unsigned char[segColors]; | ||
2436 | int pixels = image.depth() > 8 ? image.width()*image.height() : | ||
2437 | image.numColors(); | ||
2438 | unsigned int *data = image.depth() > 8 ? (unsigned int *)image.bits() : | ||
2439 | (unsigned int *)image.colorTable(); | ||
2440 | |||
2441 | bool brighten = (percent >= 0); | ||
2442 | if(percent < 0) | ||
2443 | percent = -percent; | ||
2444 | |||
2445 | if(brighten){ // keep overflow check out of loops | ||
2446 | for(i=0; i < segColors; ++i){ | ||
2447 | tmp = (int)(i*percent); | ||
2448 | if(tmp > 255) | ||
2449 | tmp = 255; | ||
2450 | segTbl[i] = tmp; | ||
2451 | } | ||
2452 | } | ||
2453 | else{ | ||
2454 | for(i=0; i < segColors; ++i){ | ||
2455 | tmp = (int)(i*percent); | ||
2456 | if(tmp < 0) | ||
2457 | tmp = 0; | ||
2458 | segTbl[i] = tmp; | ||
2459 | } | ||
2460 | } | ||
2461 | |||
2462 | if(brighten){ // same here | ||
2463 | for(i=0; i < pixels; ++i){ | ||
2464 | r = qRed(data[i]); | ||
2465 | g = qGreen(data[i]); | ||
2466 | b = qBlue(data[i]); | ||
2467 | r = r + segTbl[r] > 255 ? 255 : r + segTbl[r]; | ||
2468 | g = g + segTbl[g] > 255 ? 255 : g + segTbl[g]; | ||
2469 | b = b + segTbl[b] > 255 ? 255 : b + segTbl[b]; | ||
2470 | data[i] = qRgb(r, g, b); | ||
2471 | } | ||
2472 | } | ||
2473 | else{ | ||
2474 | for(i=0; i < pixels; ++i){ | ||
2475 | r = qRed(data[i]); | ||
2476 | g = qGreen(data[i]); | ||
2477 | b = qBlue(data[i]); | ||
2478 | r = r - segTbl[r] < 0 ? 0 : r - segTbl[r]; | ||
2479 | g = g - segTbl[g] < 0 ? 0 : g - segTbl[g]; | ||
2480 | b = b - segTbl[b] < 0 ? 0 : b - segTbl[b]; | ||
2481 | data[i] = qRgb(r, g, b); | ||
2482 | } | ||
2483 | } | ||
2484 | delete [] segTbl; | ||
2485 | pix.convertFromImage(image); | ||
2486 | } | ||
2487 | |||
2488 | void LiquidStyle::drawRoundRect(QPainter *p, int x, int y, int w, int h) | ||
2489 | { | ||
2490 | int x2 = x+w-1; | ||
2491 | int y2 = y+h-1; | ||
2492 | p->drawLine(x+1, y, x2-1, y); | ||
2493 | p->drawLine(x, y+1, x, y2-1); | ||
2494 | p->drawLine(x+1, y2, x2-1, y2); | ||
2495 | p->drawLine(x2, y+1, x2, y2-1); | ||
2496 | } | ||
2497 | |||
2498 | void LiquidStyle::drawSliderGroove (QPainter * p, int x, int y, int w, int h, | ||
2499 | const QColorGroup &g, QCOORD, | ||
2500 | Orientation orient) | ||
2501 | { | ||
2502 | bool isFocus = ((QWidget *)p->device())->hasFocus(); | ||
2503 | QColor c = isFocus ? g.background().dark(120) : g.background(); | ||
2504 | if(orient == Qt::Horizontal){ | ||
2505 | int x2 = x+w-1; | ||
2506 | y+=2; | ||
2507 | p->setPen(c.dark(130)); | ||
2508 | p->drawLine(x+1, y, x2-1, y); | ||
2509 | p->setPen(c.dark(150)); | ||
2510 | p->drawLine(x, y+1, x2, y+1); | ||
2511 | p->setPen(c.dark(125)); | ||
2512 | p->drawLine(x, y+2, x2, y+2); | ||
2513 | p->setPen(c.dark(130)); | ||
2514 | p->drawLine(x, y+3, x2, y+3); | ||
2515 | p->setPen(c.dark(120)); | ||
2516 | p->drawLine(x, y+4, x2, y+4); | ||
2517 | p->setPen(c.light(110)); | ||
2518 | p->drawLine(x+1, y+5, x2-1, y+5); | ||
2519 | } | ||
2520 | else{ | ||
2521 | int y2 = y+h-1; | ||
2522 | x+=2; | ||
2523 | p->setPen(c.dark(130)); | ||
2524 | p->drawLine(x, y+1, x, y2-1); | ||
2525 | p->setPen(c.dark(150)); | ||
2526 | p->drawLine(x+1, y, x+1, y2); | ||
2527 | p->setPen(c.dark(125)); | ||
2528 | p->drawLine(x+2, y, x+2, y2); | ||
2529 | p->setPen(c.dark(130)); | ||
2530 | p->drawLine(x+3, y, x+3, y2); | ||
2531 | p->setPen(c.dark(120)); | ||
2532 | p->drawLine(x+4, y, x+4, y2); | ||
2533 | p->setPen(c.light(110)); | ||
2534 | p->drawLine(x+5, y+1, x+5, y2-1); | ||
2535 | } | ||
2536 | //QWindowsStyle::drawSliderGroove(p, x, y, w, h, g, c, orient); | ||
2537 | |||
2538 | } | ||
2539 | |||
2540 | void LiquidStyle::drawSliderGrooveMask (QPainter * p, int x, int y, int w, | ||
2541 | int h, QCOORD, Orientation orient) | ||
2542 | { | ||
2543 | p->fillRect(x, y, w, h, Qt::color0); | ||
2544 | p->setPen(Qt::color1); | ||
2545 | if(orient == Qt::Horizontal){ | ||
2546 | int x2 = x+w-1; | ||
2547 | y+=2; | ||
2548 | p->drawLine(x+1, y, x2-1, y); | ||
2549 | p->fillRect(x, y+1, w, 4, Qt::color1); | ||
2550 | p->drawLine(x+1, y+5, x2-1, y+5); | ||
2551 | } | ||
2552 | else{ | ||
2553 | int y2 = y+h-1; | ||
2554 | x+=2; | ||
2555 | p->drawLine(x, y+1, x, y2-1); | ||
2556 | p->fillRect(x+1, y, 4, h, Qt::color1); | ||
2557 | p->drawLine(x+5, y+1, x+5, y2-1); | ||
2558 | } | ||
2559 | } | ||
2560 | |||
2561 | // I'm debating if to use QValueList or QList here. I like QValueList better, | ||
2562 | // but QList handles pointers which is good for a lot of empty icons... | ||
2563 | |||
2564 | void LiquidStyle::loadCustomButtons() | ||
2565 | { | ||
2566 | return; // TODO | ||
2567 | customBtnColorList.clear(); | ||
2568 | customBtnIconList.clear(); | ||
2569 | customBtnLabelList.clear(); | ||
2570 | |||
2571 | // KConfig *config = KGlobal::config(); | ||
2572 | // QString oldGrp = config->group(); | ||
2573 | // config->setGroup("MosfetButtons"); | ||
2574 | |||
2575 | QStrList iconList, colorList; //temp, we store QPixmaps and QColors | ||
2576 | iconList.setAutoDelete(true); | ||
2577 | colorList.setAutoDelete(true); | ||
2578 | // config->readListEntry("Labels", customBtnLabelList); | ||
2579 | // config->readListEntry("Icons", iconList); | ||
2580 | // config->readListEntry("Colors", colorList); | ||
2581 | |||
2582 | const char *labelStr = customBtnLabelList.first(); | ||
2583 | const char *colorStr = colorList.first(); | ||
2584 | const char *iconStr = iconList.first(); | ||
2585 | |||
2586 | // KIconLoader *ldr = KGlobal::iconLoader(); | ||
2587 | while(labelStr != NULL){ | ||
2588 | QColor *c = new QColor; | ||
2589 | c->setNamedColor(QString(colorStr)); | ||
2590 | customBtnColorList.append(c); | ||
2591 | |||
2592 | QString tmpStr(iconStr); | ||
2593 | if(!tmpStr.isEmpty()){ | ||
2594 | QPixmap *pixmap = | ||
2595 | new QPixmap();//ldr->loadIcon(tmpStr, KIcon::Small)); | ||
2596 | if(pixmap->isNull()){ | ||
2597 | delete pixmap; | ||
2598 | customBtnIconList.append(NULL); | ||
2599 | } | ||
2600 | else | ||
2601 | customBtnIconList.append(pixmap); | ||
2602 | } | ||
2603 | else | ||
2604 | customBtnIconList.append(NULL); | ||
2605 | |||
2606 | labelStr = customBtnLabelList.next(); | ||
2607 | colorStr = colorList.next(); | ||
2608 | iconStr = iconList.next(); | ||
2609 | } | ||
2610 | } | ||
2611 | |||
2612 | void LiquidStyle::applyCustomAttributes(QPushButton *btn) | ||
2613 | { | ||
2614 | return; // TODO | ||
2615 | QString str = btn->text(); | ||
2616 | if(str.isEmpty()) | ||
2617 | return; | ||
2618 | while(str.contains('&') != 0) | ||
2619 | str = str.remove(str.find('&'), 1); | ||
2620 | |||
2621 | const char *s; | ||
2622 | int idx = 0; | ||
2623 | for(s = customBtnLabelList.first(); s != NULL; | ||
2624 | ++idx, s = customBtnLabelList.next()){ | ||
2625 | if(qstricmp(s, str.latin1()) == 0){ | ||
2626 | QPalette pal = btn->palette(); | ||
2627 | pal.setColor(QColorGroup::Button, | ||
2628 | *customBtnColorList.at(idx)); | ||
2629 | btn->setPalette(pal); | ||
2630 | /* | ||
2631 | if(customBtnIconList.at(idx) != NULL){ | ||
2632 | QPixmap *pix = customBtnIconList.at(idx); | ||
2633 | btn->setIconSet(QIconSet(*pix)); | ||
2634 | }*/ | ||
2635 | break; | ||
2636 | } | ||
2637 | } | ||
2638 | } | ||
2639 | |||
2640 | void LiquidStyle::unapplyCustomAttributes(QPushButton *btn) | ||
2641 | { | ||
2642 | return; // TODO | ||
2643 | QString str = btn->text(); | ||
2644 | if(str.isEmpty()) | ||
2645 | return; | ||
2646 | while(str.contains('&') != 0) | ||
2647 | str = str.remove(str.find('&'), 1); | ||
2648 | |||
2649 | const char *s; | ||
2650 | for(s = customBtnLabelList.first(); s != NULL; s = customBtnLabelList.next()){ | ||
2651 | if(qstricmp(s, str.latin1()) == 0){ | ||
2652 | btn->setPalette(QApplication::palette()); | ||
2653 | btn->setIconSet(QIconSet()); | ||
2654 | break; | ||
2655 | } | ||
2656 | } | ||
2657 | } | ||
2658 | |||
2659 | // #include "liquid.moc" | ||
2660 | |||
2661 | |||
2662 | |||
2663 | |||
2664 | |||
2665 | |||
2666 | /* vim: set noet sw=8 ts=8: */ | ||
diff --git a/noncore/styles/liquid/liquid.h b/noncore/styles/liquid/liquid.h new file mode 100644 index 0000000..fb691ea --- a/dev/null +++ b/noncore/styles/liquid/liquid.h | |||
@@ -0,0 +1,218 @@ | |||
1 | #ifndef LIQUID_STYLE_H | ||
2 | #define LIQUID_STYLE_H | ||
3 | |||
4 | |||
5 | #include <qwindowsstyle.h> | ||
6 | #include <qpainter.h> | ||
7 | #include <qdrawutil.h> | ||
8 | #include <qpalette.h> | ||
9 | #include <qwidget.h> | ||
10 | #include <qpushbutton.h> | ||
11 | #include <qscrollbar.h> | ||
12 | #include <qbitmap.h> | ||
13 | #include <qintdict.h> | ||
14 | #include <qstrlist.h> | ||
15 | #include <qobject.h> | ||
16 | #include <limits.h> | ||
17 | |||
18 | |||
19 | /*- | ||
20 | * Copyright (C)QPL 2001 Daniel M. Duley. All rights reserved. | ||
21 | */ | ||
22 | |||
23 | class QPixmap; | ||
24 | |||
25 | #define BITMAP_ITEMS 41 | ||
26 | #define LIQUID_MENU_CHANGE 667 | ||
27 | #define MOSFET_BUTTON_CHANGE 661 | ||
28 | |||
29 | enum BitmapData{RadioOn=0, RadioOff, RadioOnHover, RadioOffHover, VSBSliderTop, | ||
30 | VSBSliderMid, VSBSliderBtm, VSBSliderTopHover, VSBSliderMidHover, | ||
31 | VSBSliderBtmHover, VSBSliderTopBg, VSBSliderMidBg, VSBSliderBtmBg, | ||
32 | HSBSliderTop, HSBSliderMid, HSBSliderBtm, HSBSliderTopHover, HSBSliderMidHover, | ||
33 | HSBSliderBtmHover, HSBSliderTopBg, HSBSliderMidBg, | ||
34 | HSBSliderBtmBg, Tab, TabDown, TabFocus, CB, CBDown, CBHover, CBDownHover, | ||
35 | HSlider, VSlider, HTMLBtnBorder, HTMLBtnBorderDown, HTMLCB, HTMLCBDown, | ||
36 | HTMLCBHover, HTMLCBDownHover, HTMLRadio, HTMLRadioDown, HTMLRadioHover, | ||
37 | HTMLRadioDownHover}; | ||
38 | |||
39 | |||
40 | class QHeader; | ||
41 | |||
42 | enum TransType{None=0, StippledBg, StippledBtn, TransStippleBg, | ||
43 | TransStippleBtn, Custom}; | ||
44 | |||
45 | class TransMenuHandler : public QObject | ||
46 | { | ||
47 | Q_OBJECT | ||
48 | public: | ||
49 | TransMenuHandler(QObject *parent); | ||
50 | ~TransMenuHandler(){;} | ||
51 | void reloadSettings(); | ||
52 | int transType(){return(type);} | ||
53 | QPixmap *pixmap(WId id){return(pixDict.find(id));} | ||
54 | const QColor& textColor(){return(fgColor);} | ||
55 | const QColor& bgColor(){return(color);} | ||
56 | bool useShadowText(){return(shadowText);} | ||
57 | protected: | ||
58 | bool eventFilter(QObject *obj, QEvent *ev); | ||
59 | void stripePixmap(QPixmap &pix, const QColor &color); | ||
60 | |||
61 | QColor color, fgColor; | ||
62 | int opacity; | ||
63 | int type; | ||
64 | bool shadowText; | ||
65 | QIntDict<QPixmap>pixDict; | ||
66 | }; | ||
67 | |||
68 | class LiquidStyle : public QWindowsStyle | ||
69 | { | ||
70 | friend class TransMenuHandler; | ||
71 | public: | ||
72 | LiquidStyle(); | ||
73 | ~LiquidStyle(); | ||
74 | virtual void polish(QWidget *w); | ||
75 | virtual void unPolish(QWidget *w); | ||
76 | virtual void polish(QApplication *a); | ||
77 | virtual void unPolish(QApplication *a); | ||
78 | virtual void polish(QPalette &p); | ||
79 | void drawButton(QPainter *p, int x, int y, int w, int h, | ||
80 | const QColorGroup &g, bool sunken = FALSE, | ||
81 | const QBrush *fill = 0 ); | ||
82 | void drawButtonMask(QPainter *p, int x, int y, int w, int h); | ||
83 | void drawComboButtonMask(QPainter *p, int x, int y, int w, int h); | ||
84 | QRect buttonRect(int x, int y, int w, int h); | ||
85 | void drawBevelButton(QPainter *p, int x, int y, int w, int h, | ||
86 | const QColorGroup &g, bool sunken = FALSE, | ||
87 | const QBrush *fill = 0 ); | ||
88 | void drawPushButton(QPushButton *btn, QPainter *p); | ||
89 | virtual void drawPushButtonLabel (QPushButton *btn, QPainter *p); | ||
90 | void drawScrollBarControls(QPainter*, const QScrollBar*, int sliderStart, | ||
91 | uint controls, uint activeControl ); | ||
92 | QStyle::ScrollControl scrollBarPointOver(const QScrollBar *sb, | ||
93 | int sliderStart, const QPoint &p); | ||
94 | void scrollBarMetrics(const QScrollBar *sb, int &sliderMin, int &sliderMax, | ||
95 | int &sliderLength, int &buttonDim); | ||
96 | QSize indicatorSize() const; | ||
97 | void drawIndicator(QPainter* p, int x, int y, int w, int h, | ||
98 | const QColorGroup &g, int state, bool down = FALSE, | ||
99 | bool enabled = TRUE ); | ||
100 | void drawIndicatorMask(QPainter *p, int x, int y, int w, int h, int); | ||
101 | QSize exclusiveIndicatorSize() const; | ||
102 | void drawExclusiveIndicator(QPainter* p, int x, int y, int w, int h, | ||
103 | const QColorGroup &g, bool on, | ||
104 | bool down = FALSE, bool enabled = TRUE ); | ||
105 | void drawExclusiveIndicatorMask(QPainter *p, int x, int y, int w, | ||
106 | int h, bool); | ||
107 | void drawComboButton(QPainter *p, int x, int y, int w, int h, | ||
108 | const QColorGroup &g, bool sunken = FALSE, | ||
109 | bool editable = FALSE, bool enabled = TRUE, | ||
110 | const QBrush *fill = 0 ); | ||
111 | QRect comboButtonRect(int x, int y, int w, int h); | ||
112 | QRect comboButtonFocusRect(int x, int y, int w, int h); | ||
113 | int sliderLength() const; | ||
114 | void drawArrow(QPainter *p, Qt::ArrowType type, bool down, | ||
115 | int x, int y, int w, int h, const QColorGroup &g, | ||
116 | bool enabled=true, const QBrush *fill = 0); | ||
117 | void drawSlider(QPainter *p, int x, int y, int w, int h, | ||
118 | const QColorGroup &g, Orientation orient, | ||
119 | bool tickAbove, bool tickBelow); | ||
120 | void drawSliderMask(QPainter *p, int x, int y, int w, int h, | ||
121 | Orientation orient, bool, bool); | ||
122 | void drawMenuBarItem(QPainter *p, int x, int y, int w, int h, | ||
123 | QMenuItem *mi, QColorGroup &g, bool enabled, bool active ); | ||
124 | |||
125 | void drawPopupMenuItem(QPainter *p, bool checkable, int maxpmw, | ||
126 | int tab, QMenuItem *mi, const QPalette &pal, | ||
127 | bool act, bool enabled, int x, int y, int w, | ||
128 | int h); | ||
129 | int popupMenuItemHeight(bool c, QMenuItem *mi, const QFontMetrics &fm); | ||
130 | void drawFocusRect(QPainter *p, const QRect &r, const QColorGroup &g, | ||
131 | const QColor *pen, bool atBorder); | ||
132 | int defaultFrameWidth() const {return(2);} | ||
133 | void polishPopupMenu(QPopupMenu *mnu); | ||
134 | void drawTab(QPainter *p, const QTabBar *tabBar, QTab *tab, | ||
135 | bool selected); | ||
136 | void drawTabMask( QPainter*, const QTabBar*, QTab*, bool selected ); | ||
137 | void tabbarMetrics(const QTabBar *t, int &hFrame, int &vFrame, | ||
138 | int &overlap); | ||
139 | |||
140 | void drawSplitter(QPainter *p, int x, int y, int w, int h, | ||
141 | const QColorGroup &g, Orientation orient); | ||
142 | int splitterWidth() const {return(6);} | ||
143 | void drawPanel(QPainter *p, int x, int y, int w, int h, | ||
144 | const QColorGroup &g, bool sunken, int lineWidth, | ||
145 | const QBrush *fill); | ||
146 | void drawToolButton(QPainter *p, int x, int y, int w, | ||
147 | int h, const QColorGroup &g, | ||
148 | bool sunken, const QBrush *fill); | ||
149 | // for repainting toolbuttons when the toolbar is resized | ||
150 | bool eventFilter(QObject *obj, QEvent *ev); | ||
151 | void drawSliderGroove(QPainter * p, int x, int y, int w, int h, | ||
152 | const QColorGroup &g, QCOORD c, Orientation); | ||
153 | void drawSliderGrooveMask(QPainter * p, int x, int y, int w, int h, | ||
154 | QCOORD c, Orientation); | ||
155 | int buttonDefaultIndicatorWidth() const {return(2);} | ||
156 | void drawPopupPanel(QPainter *p, int x, int y, int w, int h, | ||
157 | const QColorGroup &g, int lineWidth, | ||
158 | const QBrush * fill); | ||
159 | protected: | ||
160 | void adjustHSV(QPixmap &pix, int h, int s, int v); | ||
161 | void intensity(QPixmap &pix, float percent); | ||
162 | |||
163 | void drawRoundButton(QPainter *p, const QColor &c, const QColor &bg, int x, | ||
164 | int y, int w, int h, bool supportPushDown = false, | ||
165 | bool pushedDown = false, bool autoDefault = false, | ||
166 | bool isMasked = false); | ||
167 | void drawClearBevel(QPainter *p, int x, int y, int w, int h, | ||
168 | const QColor &c, const QColor &bg); | ||
169 | void drawSBDeco(QPainter *p, const QRect &r, const QColorGroup &g, | ||
170 | bool horiz); | ||
171 | void drawSBButton(QPainter *p, const QRect &r, const QColorGroup &g, | ||
172 | bool down=false, bool fast = true); | ||
173 | void drawRoundRect(QPainter *p, int x, int y, int w, int h); | ||
174 | void loadCustomButtons(); | ||
175 | void applyCustomAttributes(QPushButton *btn); | ||
176 | void unapplyCustomAttributes(QPushButton *btn); | ||
177 | QPixmap* getPixmap(BitmapData item); | ||
178 | QPixmap* processEmbedded(const char *label, int h, int s, int v, bool blend=false); | ||
179 | private: | ||
180 | bool highcolor; | ||
181 | QColorGroup radioOnGrp; | ||
182 | QWidget *highlightWidget; | ||
183 | QBrush wallpaper; | ||
184 | QBitmap lightBmp; | ||
185 | QBitmap grayBmp; | ||
186 | QBitmap dgrayBmp; | ||
187 | QBitmap maskBmp; | ||
188 | QBitmap xBmp; | ||
189 | QBitmap btnMaskBmp, htmlBtnMaskBmp; | ||
190 | QPixmap *btnBorderPix, *btnBlendPix, *bevelFillPix, *smallBevelFillPix, *menuPix; | ||
191 | QBitmap paper1, paper2, paper3; | ||
192 | QBrush baseBrush, menuBrush, pagerBrush, pagerHoverBrush, bgBrush; | ||
193 | bool menuAni, menuFade; | ||
194 | |||
195 | QIntDict<QPixmap>btnDict; | ||
196 | QIntDict<QPixmap>btnBorderDict; | ||
197 | QIntDict<QPixmap>bevelFillDict; | ||
198 | QIntDict<QPixmap>smallBevelFillDict; | ||
199 | |||
200 | QList<QColor>customBtnColorList; | ||
201 | QList<QPixmap>customBtnIconList; | ||
202 | QStrList customBtnLabelList; | ||
203 | QPixmap *vsbSliderFillPix; | ||
204 | TransMenuHandler *menuHandler; | ||
205 | QPixmap *pixmaps[BITMAP_ITEMS]; | ||
206 | QPixmap sbBuffer; | ||
207 | int oldSliderThickness; | ||
208 | int lowLightVal; | ||
209 | QHeader *currentHeader; | ||
210 | int headerHoverID; | ||
211 | QWMatrix rMatrix; | ||
212 | int bH, bS, bV; | ||
213 | int bHoverH, bHoverS, bHoverV; | ||
214 | int btnH, btnS, btnV; | ||
215 | int btnHoverH, btnHoverS, btnHoverV; | ||
216 | }; | ||
217 | |||
218 | #endif | ||
diff --git a/noncore/styles/liquid/liquid.pro b/noncore/styles/liquid/liquid.pro new file mode 100644 index 0000000..b5dc1bc --- a/dev/null +++ b/noncore/styles/liquid/liquid.pro | |||
@@ -0,0 +1,19 @@ | |||
1 | TEMPLATE = lib | ||
2 | |||
3 | CONFIG = qt embedded release warn_on | ||
4 | |||
5 | SOURCES = liquid.cpp \ | ||
6 | effects.cpp \ | ||
7 | plugin.cpp | ||
8 | |||
9 | HEADERS = liquid.h \ | ||
10 | effects.h | ||
11 | |||
12 | LIBS += -lqpe | ||
13 | |||
14 | INCLUDEPATH += $(OPIEDIR)/include | ||
15 | |||
16 | DESTDIR = $(OPIEDIR)/plugins/styles | ||
17 | TARGET = liquid | ||
18 | |||
19 | VERSION = 1.0.0 \ No newline at end of file | ||
diff --git a/noncore/styles/liquid/mk_qpl_diff.sh b/noncore/styles/liquid/mk_qpl_diff.sh new file mode 100755 index 0000000..b297cd1 --- a/dev/null +++ b/noncore/styles/liquid/mk_qpl_diff.sh | |||
@@ -0,0 +1,21 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | FILES="liquid.h liquid.cpp plugin.cpp" | ||
4 | |||
5 | echo -n "Creating QPL diff for liquid ... " | ||
6 | |||
7 | cat >opie-liquid.diff <<EOT | ||
8 | This is a patch to mosfet's liquid 0.7. | ||
9 | Features: | ||
10 | - Qt-only | ||
11 | - works with Qt/E on QPE/OPIE | ||
12 | |||
13 | EOT | ||
14 | |||
15 | for i in $FILES; do | ||
16 | tar xzOf mosfet-liquid0.7.tar.gz "mosfet-liquid0.7/widget-engine/$i" | diff -bu3 - "$i" >>opie-liquid.diff | ||
17 | done | ||
18 | |||
19 | echo "done" | ||
20 | |||
21 | exit 0 \ No newline at end of file | ||
diff --git a/noncore/styles/liquid/mosfet-liquid0.7.tar.gz b/noncore/styles/liquid/mosfet-liquid0.7.tar.gz new file mode 100644 index 0000000..470ef9c --- a/dev/null +++ b/noncore/styles/liquid/mosfet-liquid0.7.tar.gz | |||
Binary files differ | |||
diff --git a/noncore/styles/liquid/opie-liquid.control b/noncore/styles/liquid/opie-liquid.control new file mode 100644 index 0000000..7b6ae71 --- a/dev/null +++ b/noncore/styles/liquid/opie-liquid.control | |||
@@ -0,0 +1,10 @@ | |||
1 | Files: plugins/styles/libliquid.so* | ||
2 | Priority: optional | ||
3 | Section: opie/system | ||
4 | Maintainer: Robert Griebl <sandman@handhelds.org> | ||
5 | Architecture: arm | ||
6 | Version: $QPE_VERSION-$SUB_VERSION.1 | ||
7 | Depends: opie-base ($QPE_VERSION) | ||
8 | Description: Liquid style by Mosfet. | ||
9 | Mosfet's well known Liquid GUI style from KDE, | ||
10 | ported to OPIE. | ||
diff --git a/noncore/styles/liquid/opie-liquid.diff b/noncore/styles/liquid/opie-liquid.diff new file mode 100644 index 0000000..f902cb8 --- a/dev/null +++ b/noncore/styles/liquid/opie-liquid.diff | |||
@@ -0,0 +1,1114 @@ | |||
1 | This is a patch to mosfet's liquid 0.7. | ||
2 | Features: | ||
3 | - Qt-only | ||
4 | - works with Qt/E on QPE/OPIE | ||
5 | |||
6 | --- -Mon Jun 24 19:05:49 2002 | ||
7 | +++ liquid.hFri Jun 21 14:48:21 2002 | ||
8 | @@ -2,7 +2,7 @@ | ||
9 | #define LIQUID_STYLE_H | ||
10 | |||
11 | |||
12 | -#include <kstyle.h> | ||
13 | +#include <qwindowsstyle.h> | ||
14 | #include <qpainter.h> | ||
15 | #include <qdrawutil.h> | ||
16 | #include <qpalette.h> | ||
17 | @@ -20,7 +20,7 @@ | ||
18 | * Copyright (C)QPL 2001 Daniel M. Duley. All rights reserved. | ||
19 | */ | ||
20 | |||
21 | -class KPixmap; | ||
22 | +class QPixmap; | ||
23 | |||
24 | #define BITMAP_ITEMS 41 | ||
25 | #define LIQUID_MENU_CHANGE 667 | ||
26 | @@ -50,24 +50,22 @@ | ||
27 | ~TransMenuHandler(){;} | ||
28 | void reloadSettings(); | ||
29 | int transType(){return(type);} | ||
30 | - KPixmap *pixmap(WId id){return(pixDict.find(id));} | ||
31 | + QPixmap *pixmap(WId id){return(pixDict.find(id));} | ||
32 | const QColor& textColor(){return(fgColor);} | ||
33 | const QColor& bgColor(){return(color);} | ||
34 | bool useShadowText(){return(shadowText);} | ||
35 | -protected slots: | ||
36 | - void slotKIPCMessage(int id, int arg); | ||
37 | protected: | ||
38 | bool eventFilter(QObject *obj, QEvent *ev); | ||
39 | - void stripePixmap(KPixmap &pix, const QColor &color); | ||
40 | + void stripePixmap(QPixmap &pix, const QColor &color); | ||
41 | |||
42 | QColor color, fgColor; | ||
43 | int opacity; | ||
44 | int type; | ||
45 | bool shadowText; | ||
46 | - QIntDict<KPixmap>pixDict; | ||
47 | + QIntDict<QPixmap>pixDict; | ||
48 | }; | ||
49 | |||
50 | -class LiquidStyle : public KStyle | ||
51 | +class LiquidStyle : public QWindowsStyle | ||
52 | { | ||
53 | friend class TransMenuHandler; | ||
54 | public: | ||
55 | @@ -121,33 +119,14 @@ | ||
56 | bool tickAbove, bool tickBelow); | ||
57 | void drawSliderMask(QPainter *p, int x, int y, int w, int h, | ||
58 | Orientation orient, bool, bool); | ||
59 | - void drawKToolBar(QPainter *p, int x, int y, int w, int h, | ||
60 | - const QColorGroup &g, KToolBarPos type, | ||
61 | - QBrush *fill=NULL); | ||
62 | - void drawKBarHandle(QPainter *p, int x, int y, int w, int h, | ||
63 | - const QColorGroup &g, | ||
64 | - KToolBarPos type, QBrush *fill=NULL); | ||
65 | - void drawKMenuBar(QPainter *p, int x, int y, int w, int h, | ||
66 | - const QColorGroup &g, bool macMode, | ||
67 | - QBrush *fill=NULL); | ||
68 | - void drawKToolBarButton(QPainter *p, int x, int y, int w, int h, | ||
69 | - const QColorGroup &g, bool sunken=false, | ||
70 | - bool raised = true, bool enabled = true, | ||
71 | - bool popup = false, | ||
72 | - KToolButtonType icontext = Icon, | ||
73 | - const QString& btext=QString::null, | ||
74 | - const QPixmap *icon=NULL, | ||
75 | - QFont *font=NULL, QWidget *btn=NULL); | ||
76 | - void drawKMenuItem(QPainter *p, int x, int y, int w, int h, | ||
77 | - const QColorGroup &g, bool active, | ||
78 | - QMenuItem *item, QBrush *fill=NULL); | ||
79 | +void drawMenuBarItem(QPainter *p, int x, int y, int w, int h, | ||
80 | + QMenuItem *mi, QColorGroup &g, bool enabled, bool active ); | ||
81 | + | ||
82 | void drawPopupMenuItem(QPainter *p, bool checkable, int maxpmw, | ||
83 | int tab, QMenuItem *mi, const QPalette &pal, | ||
84 | bool act, bool enabled, int x, int y, int w, | ||
85 | int h); | ||
86 | int popupMenuItemHeight(bool c, QMenuItem *mi, const QFontMetrics &fm); | ||
87 | - void drawKProgressBlock(QPainter *p, int x, int y, int w, int h, | ||
88 | - const QColorGroup &g, QBrush *fill); | ||
89 | void drawFocusRect(QPainter *p, const QRect &r, const QColorGroup &g, | ||
90 | const QColor *pen, bool atBorder); | ||
91 | int defaultFrameWidth() const {return(2);} | ||
92 | @@ -167,12 +146,6 @@ | ||
93 | void drawToolButton(QPainter *p, int x, int y, int w, | ||
94 | int h, const QColorGroup &g, | ||
95 | bool sunken, const QBrush *fill); | ||
96 | - void drawKickerAppletHandle(QPainter *p, int x, int y, int w, int h, | ||
97 | - const QColorGroup &g, QBrush *); | ||
98 | - void drawKickerTaskButton(QPainter *p, int x, int y, int w, int h, | ||
99 | - const QColorGroup &g, | ||
100 | - const QString &title, bool active, | ||
101 | - QPixmap *icon, QBrush *fill); | ||
102 | // for repainting toolbuttons when the toolbar is resized | ||
103 | bool eventFilter(QObject *obj, QEvent *ev); | ||
104 | void drawSliderGroove(QPainter * p, int x, int y, int w, int h, | ||
105 | --- -Mon Jun 24 19:05:49 2002 | ||
106 | +++ liquid.cppFri Jun 21 22:02:55 2002 | ||
107 | @@ -10,12 +10,9 @@ | ||
108 | |||
109 | #include <qmenudata.h> | ||
110 | #include "liquid.h" | ||
111 | -#include <kapp.h> | ||
112 | -#include <kglobal.h> | ||
113 | -#include <kconfig.h> | ||
114 | -#include <kdrawutil.h> | ||
115 | -#include <kglobalsettings.h> | ||
116 | -#include <kpixmapeffect.h> | ||
117 | +#include <qapplication.h> | ||
118 | +#include <qpe/config.h> | ||
119 | +#include "effects.h" | ||
120 | #include <qpalette.h> | ||
121 | #include <qbitmap.h> | ||
122 | #include <qtabbar.h> | ||
123 | @@ -25,28 +22,29 @@ | ||
124 | #include <qtimer.h> | ||
125 | #include <qpixmapcache.h> | ||
126 | #include <qradiobutton.h> | ||
127 | -#include <kimageeffect.h> | ||
128 | -#include <ktoolbar.h> | ||
129 | +#include <qcombobox.h> | ||
130 | #include <qdrawutil.h> | ||
131 | #include <qwidgetlist.h> | ||
132 | #include <qtoolbutton.h> | ||
133 | #include <qheader.h> | ||
134 | #include <unistd.h> | ||
135 | -#include <klocale.h> | ||
136 | -#include <kiconloader.h> | ||
137 | -#include <kmenubar.h> | ||
138 | -#include <kipc.h> | ||
139 | +#include <qmenubar.h> | ||
140 | |||
141 | -#include <X11/X.h> | ||
142 | -#include <X11/Xlib.h> | ||
143 | + | ||
144 | +#include <stdio.h> | ||
145 | |||
146 | #include "htmlmasks.h" | ||
147 | #include "embeddata.h" | ||
148 | |||
149 | -void TransMenuHandler::stripePixmap(KPixmap &pix, const QColor &color) | ||
150 | +typedef void (QStyle::*QDrawMenuBarItemImpl) (QPainter *, int, int, int, int, QMenuItem *, | ||
151 | + QColorGroup &, bool, bool); | ||
152 | + | ||
153 | +QDrawMenuBarItemImpl qt_set_draw_menu_bar_impl(QDrawMenuBarItemImpl impl); | ||
154 | + | ||
155 | +void TransMenuHandler::stripePixmap(QPixmap &pix, const QColor &color) | ||
156 | { | ||
157 | QImage img(pix.convertToImage()); | ||
158 | - KImageEffect::fade(img, 0.9, color); | ||
159 | + QImageEffect::fade(img, 0.9, color); | ||
160 | int x, y; | ||
161 | int r, g, b; | ||
162 | for(y=0; y < img.height(); y+=3){ | ||
163 | @@ -71,24 +69,21 @@ | ||
164 | : QObject(parent) | ||
165 | { | ||
166 | pixDict.setAutoDelete(true); | ||
167 | - connect(kapp, SIGNAL(kipcMessage(int, int)), this, | ||
168 | - SLOT(slotKIPCMessage(int, int))); | ||
169 | reloadSettings(); | ||
170 | } | ||
171 | |||
172 | void TransMenuHandler::reloadSettings() | ||
173 | { | ||
174 | pixDict.clear(); | ||
175 | - KConfig *config = KGlobal::config(); | ||
176 | - config->setGroup("MosfetMenus"); | ||
177 | |||
178 | - type = config->readNumEntry("Type", TransStippleBg); | ||
179 | - color = config->readColorEntry("Color", | ||
180 | - &QApplication::palette().active().button()); | ||
181 | - fgColor = config->readColorEntry("TextColor", | ||
182 | - &QApplication::palette().active().text()); | ||
183 | - opacity = config->readNumEntry("Opacity", 10); | ||
184 | - shadowText = config->readBoolEntry("ShadowText", true); | ||
185 | + Config config ( "qpe" ); | ||
186 | + config. setGroup ( "MosfetMenus" ); | ||
187 | + | ||
188 | + type = config. readNumEntry("Type", TransStippleBg); | ||
189 | + color = QColor ( config. readEntry("Color", QApplication::palette().active().button().name())); | ||
190 | + fgColor = QColor ( config. readEntry("TextColor", QApplication::palette().active().text().name())); | ||
191 | + opacity = config. readNumEntry("Opacity", 10); | ||
192 | + shadowText = config. readBoolEntry("ShadowText", true); | ||
193 | } | ||
194 | |||
195 | bool TransMenuHandler::eventFilter(QObject *obj, QEvent *ev) | ||
196 | @@ -99,7 +94,7 @@ | ||
197 | if(type == TransStippleBg || type == TransStippleBtn || | ||
198 | type == Custom){ | ||
199 | QApplication::syncX(); | ||
200 | - KPixmap *pix = new KPixmap; | ||
201 | + QPixmap *pix = new QPixmap; | ||
202 | if(p->testWFlags(Qt::WType_Popup)){ | ||
203 | QRect r(p->x(), p->y(), p->width(), p->height()); | ||
204 | QRect deskR = QApplication::desktop()->rect(); | ||
205 | @@ -107,7 +102,7 @@ | ||
206 | r.setBottom(deskR.bottom()); | ||
207 | r.setRight(deskR.right()); | ||
208 | } | ||
209 | - *pix = QPixmap::grabWindow(qt_xrootwin(), r.x(), r.y(), | ||
210 | + *pix = QPixmap::grabWindow(QApplication::desktop()-> winId(), r.x(), r.y(), | ||
211 | r.width(), r.height()); | ||
212 | } | ||
213 | else{ // tear off menu | ||
214 | @@ -121,7 +116,7 @@ | ||
215 | stripePixmap(*pix, p->colorGroup().button()); | ||
216 | } | ||
217 | else{ | ||
218 | - KPixmapEffect::fade(*pix, (((float)opacity)+80)*0.01, color); | ||
219 | + QPixmapEffect::fade(*pix, (((float)opacity)+80)*0.01, color); | ||
220 | } | ||
221 | pixDict.insert(p->winId(), pix); | ||
222 | } | ||
223 | @@ -129,74 +124,19 @@ | ||
224 | else if(ev->type() == QEvent::Hide){ | ||
225 | if(type == TransStippleBg || type == TransStippleBtn || | ||
226 | type == Custom){ | ||
227 | - qWarning("Deleting menu pixmap, width %d", pixDict.find(p->winId())->width()); | ||
228 | +// qWarning("Deleting menu pixmap, width %d", pixDict.find(p->winId())->width()); | ||
229 | pixDict.remove(p->winId()); | ||
230 | } | ||
231 | } | ||
232 | return(false); | ||
233 | } | ||
234 | |||
235 | -void TransMenuHandler::slotKIPCMessage(int id, int) | ||
236 | -{ | ||
237 | - if(id == LIQUID_MENU_CHANGE){ | ||
238 | - bool oldShadow = shadowText; | ||
239 | - | ||
240 | - KConfig *config = KGlobal::config(); | ||
241 | - config->reparseConfiguration(); // in case KControl changed values | ||
242 | - | ||
243 | - // Make sure no popupmenus are shown. There shouldn't be any because | ||
244 | - // the user just clicked "Apply", but there can be tear offs ;-) | ||
245 | - // We just close them so the pixmaps are deleted and regenerated. | ||
246 | - QWidgetList *list = QApplication::topLevelWidgets(); | ||
247 | - QWidgetListIt it( *list ); | ||
248 | - QWidget *w; | ||
249 | - while ((w=it.current()) != 0 ){ | ||
250 | - ++it; | ||
251 | - if(w->inherits("QPopupMenu")){ | ||
252 | - w->close(); | ||
253 | - } | ||
254 | - } | ||
255 | - | ||
256 | - reloadSettings(); | ||
257 | - | ||
258 | - // Now repaint menubar if needed | ||
259 | - if(shadowText != oldShadow){ | ||
260 | - it.toFirst(); | ||
261 | - while ((w=it.current()) != 0 ){ | ||
262 | - ++it; | ||
263 | - if(w->inherits("QMenuBar")){ | ||
264 | - w->repaint(); | ||
265 | - } | ||
266 | - } | ||
267 | - } | ||
268 | - } | ||
269 | - else if(id == MOSFET_BUTTON_CHANGE){ | ||
270 | - qWarning("In mosfet button change"); | ||
271 | - // really, this should be in LiquidStyle, but what the hell? ;-) | ||
272 | - QWidgetList *list = QApplication::allWidgets(); | ||
273 | - QWidgetListIt it( *list ); | ||
274 | - QWidget *w; | ||
275 | - while ((w=it.current()) != 0 ){ | ||
276 | - ++it; | ||
277 | - if(w->inherits("QPushButton")){ | ||
278 | - ((LiquidStyle*)parent())->unapplyCustomAttributes((QPushButton *)w); | ||
279 | - } | ||
280 | - } | ||
281 | - ((LiquidStyle*)parent())->loadCustomButtons(); | ||
282 | - it.toFirst(); | ||
283 | - while ((w=it.current()) != 0 ){ | ||
284 | - ++it; | ||
285 | - if(w->inherits("QPushButton")){ | ||
286 | - ((LiquidStyle*)parent())->applyCustomAttributes((QPushButton *)w); | ||
287 | - } | ||
288 | - } | ||
289 | - | ||
290 | - } | ||
291 | -} | ||
292 | |||
293 | LiquidStyle::LiquidStyle() | ||
294 | - :KStyle() | ||
295 | + :QWindowsStyle() | ||
296 | { | ||
297 | + setName ( "LiquidStyle" ); | ||
298 | + | ||
299 | btnMaskBmp = QBitmap(37, 26, buttonmask_bits, true); | ||
300 | btnMaskBmp.setMask(btnMaskBmp); | ||
301 | htmlBtnMaskBmp = QBitmap(37, 26, htmlbuttonmask_bits, true); | ||
302 | @@ -730,20 +670,19 @@ | ||
303 | } | ||
304 | |||
305 | loadCustomButtons(); | ||
306 | - lowLightVal = 100 + (2*KGlobalSettings::contrast()+4)*10; | ||
307 | + lowLightVal = 100 + (2* /*KGlobalSettings::contrast()*/ 3 +4)*10; | ||
308 | btnDict.clear(); | ||
309 | btnBorderDict.clear(); | ||
310 | bevelFillDict.clear(); | ||
311 | smallBevelFillDict.clear(); | ||
312 | |||
313 | - KConfig *config = KGlobal::config(); | ||
314 | - QString oldGrp = config->group(); | ||
315 | + Config config ( "qpe" ); | ||
316 | QPalette pal = QApplication::palette(); | ||
317 | |||
318 | // button color stuff | ||
319 | - config->setGroup("General"); | ||
320 | - QColor c = config->readColorEntry("buttonBackground", &Qt::lightGray); | ||
321 | - if(c == config->readColorEntry("background", &Qt::lightGray)){ | ||
322 | + config. setGroup ( "Appearance" ); | ||
323 | + QColor c = QColor ( config. readEntry("Button", ( Qt::lightGray ). name ( ))); | ||
324 | + if ( c == QColor ( config. readEntry ( "background", ( Qt::lightGray ). name ( )))) { | ||
325 | // force button color to be different from background | ||
326 | QBrush btnBrush(QColor(200, 202, 228)); | ||
327 | appPal.setBrush(QColorGroup::Button, btnBrush); | ||
328 | @@ -794,15 +733,7 @@ | ||
329 | pagerBrush.setPixmap(*pix); | ||
330 | |||
331 | // background color stuff | ||
332 | - c = config->readColorEntry("background", &Qt::lightGray); | ||
333 | - if(qstrcmp(kapp->argv()[0], "kicker") == 0){ | ||
334 | - appPal.setColor(QColorGroup::Mid, menuBrush.color().dark(110)); | ||
335 | - appPal.setColor(QColorGroup::Dark, menuBrush.color().dark(130)); | ||
336 | - appPal.setColor(QColorGroup::Midlight, menuBrush.color().light(110)); | ||
337 | - appPal.setColor(QColorGroup::Light, menuBrush.color().light(115)); | ||
338 | - menuBrush.setColor(c); // hack - used for kicker applets | ||
339 | - appPal.setBrush(QColorGroup::Background, menuBrush); | ||
340 | - } | ||
341 | + c = QColor ( config. readEntry ( "Background", ( Qt::lightGray ).name ( ))); | ||
342 | c.hsv(&bH, &bS, &bV); | ||
343 | c.light(120).hsv(&bHoverH, &bHoverS, &bHoverV); | ||
344 | |||
345 | @@ -825,13 +756,10 @@ | ||
346 | painter.end(); | ||
347 | bgBrush.setColor(c); | ||
348 | bgBrush.setPixmap(wallPaper); | ||
349 | - if(qstrcmp(kapp->argv()[0], "kicker") != 0 && | ||
350 | - qstrcmp(kapp->argv()[0], "ksplash") != 0){ | ||
351 | appPal.setBrush(QColorGroup::Background, bgBrush); | ||
352 | - } | ||
353 | |||
354 | // lineedits | ||
355 | - c = config->readColorEntry("windowBackground", &Qt::white); | ||
356 | + c = QColor ( config. readEntry("Base", ( Qt::white). name ( ))); | ||
357 | QPixmap basePix; | ||
358 | basePix.resize(32, 32); | ||
359 | basePix.fill(c.rgb()); | ||
360 | @@ -857,51 +785,27 @@ | ||
361 | } | ||
362 | } | ||
363 | |||
364 | - config->setGroup(oldGrp); | ||
365 | } | ||
366 | |||
367 | void LiquidStyle::polish(QWidget *w) | ||
368 | { | ||
369 | if(w->inherits("QMenuBar")){ | ||
370 | - ((QFrame*)w)->setLineWidth(0); | ||
371 | - w->setBackgroundMode(QWidget::NoBackground); | ||
372 | + //((QFrame*)w)->setLineWidth(0); | ||
373 | + w->setBackgroundMode(QWidget::PaletteBackground); | ||
374 | return; | ||
375 | } | ||
376 | if(w->inherits("QPopupMenu")) | ||
377 | w->setBackgroundMode(QWidget::NoBackground); | ||
378 | |||
379 | if(w->isTopLevel()){ | ||
380 | - if(!w->inherits("QPopupMenu") && | ||
381 | - qstrcmp(kapp->argv()[0], "kicker") == 0){ | ||
382 | - qWarning("Got panel toplevel %s", w->className()); | ||
383 | - // force extensions and child panels to use proper palette. | ||
384 | - if(w->inherits("Panel")){ | ||
385 | - qWarning("Setting panel palette"); | ||
386 | - w->setPalette(kapp->palette()); | ||
387 | - } | ||
388 | - else{ | ||
389 | - // reset palette for everything else | ||
390 | - QPalette pal = kapp->palette(); | ||
391 | - pal.setBrush(QColorGroup::Background, bgBrush); | ||
392 | - pal.setColor(QColorGroup::Mid, bgBrush.color().dark(130)); | ||
393 | - pal.setColor(QColorGroup::Dark, bgBrush.color().dark(150)); | ||
394 | - pal.setColor(QColorGroup::Midlight, bgBrush.color().light(110)); | ||
395 | - pal.setColor(QColorGroup::Light, bgBrush.color().light(120)); | ||
396 | - w->setPalette(pal); | ||
397 | - } | ||
398 | - } | ||
399 | return; | ||
400 | } | ||
401 | - if(qstrcmp(kapp->argv()[0], "kicker") == 0 && | ||
402 | - w->inherits("KPanelExtension")){ // FIXME - doesn't work | ||
403 | - w->setPalette(kapp->palette()); | ||
404 | - } | ||
405 | + | ||
406 | + w-> setBackgroundOrigin ( QWidget::ParentOrigin ); | ||
407 | |||
408 | if(w->inherits("QComboBox") || | ||
409 | w->inherits("QLineEdit") || w->inherits("QRadioButton") || | ||
410 | - w->inherits("QCheckBox") || w->inherits("QScrollBar") || | ||
411 | - w->isA("AppletHandle") || w->inherits("KMiniPagerButton") || | ||
412 | - w->inherits("TaskContainer")){ | ||
413 | + w->inherits("QCheckBox") || w->inherits("QScrollBar")) { | ||
414 | w->installEventFilter(this); | ||
415 | } | ||
416 | if(w->inherits("QLineEdit")){ | ||
417 | @@ -913,6 +817,9 @@ | ||
418 | applyCustomAttributes((QPushButton *)w); | ||
419 | w->installEventFilter(this); | ||
420 | } | ||
421 | + if(w->inherits("QButton") || w-> inherits("QComboBox")){ | ||
422 | + w-> setBackgroundMode ( QWidget::PaletteBackground ); | ||
423 | + } | ||
424 | |||
425 | bool isViewport = qstrcmp(w->name(), "qt_viewport") == 0 || | ||
426 | qstrcmp(w->name(), "qt_clipped_viewport") == 0; | ||
427 | @@ -942,11 +849,12 @@ | ||
428 | w->setMouseTracking(true); | ||
429 | w->installEventFilter(this); | ||
430 | } | ||
431 | + if(w-> inherits("QToolButton")) { | ||
432 | + ((QToolButton*)w)->setAutoRaise (false); | ||
433 | + } | ||
434 | if(w->ownPalette() && !w->inherits("QButton") && !w->inherits("QComboBox")){ | ||
435 | return; | ||
436 | } | ||
437 | - if(w->inherits("PanelButtonBase")) | ||
438 | - return; | ||
439 | |||
440 | if(w->parent() && w->parent()->isWidgetType() && !((QWidget*)w->parent())-> | ||
441 | palette().active().brush(QColorGroup::Background).pixmap()){ | ||
442 | @@ -954,17 +862,18 @@ | ||
443 | return; | ||
444 | } | ||
445 | if(!isViewport && !isViewportChild && !w->testWFlags(WType_Popup) && | ||
446 | - !w->inherits("KDesktop") && !w->inherits("PasswordDlg")){ | ||
447 | + !( !w-> inherits("QLineEdit") && w-> parent() && w-> parent()-> isWidgetType ( ) && w-> parent()-> inherits ( "QMultiLineEdit" ))) { | ||
448 | if(w->backgroundMode() == QWidget::PaletteBackground || | ||
449 | w->backgroundMode() == QWidget::PaletteButton){ | ||
450 | w->setBackgroundMode(QWidget::X11ParentRelative); | ||
451 | } | ||
452 | } | ||
453 | - if(w->inherits("KToolBar")){ | ||
454 | + if(w->inherits("QToolBar")){ | ||
455 | w->installEventFilter(this); | ||
456 | - //w->setBackgroundMode(QWidget::NoBackground); | ||
457 | + w->setBackgroundMode(QWidget::PaletteBackground); | ||
458 | return; | ||
459 | } | ||
460 | + | ||
461 | } | ||
462 | |||
463 | void LiquidStyle::unPolish(QWidget *w) | ||
464 | @@ -1001,12 +910,14 @@ | ||
465 | unapplyCustomAttributes((QPushButton *)w); | ||
466 | w->removeEventFilter(this); | ||
467 | } | ||
468 | - | ||
469 | +/* | ||
470 | + if(w->inherits("QPushButton") || w-> inherits("QComboBox")){ | ||
471 | + w-> setBackgroundMode ( PaletteBackground ); | ||
472 | + } | ||
473 | +*/ | ||
474 | if(w->inherits("QComboBox") || | ||
475 | w->inherits("QLineEdit") || w->inherits("QRadioButton") || | ||
476 | - w->inherits("QCheckBox") || w->inherits("QScrollBar") || | ||
477 | - w->isA("AppletHandle") || w->inherits("KMiniPagerButton") || | ||
478 | - w->inherits("TaskContainer")){ | ||
479 | + w->inherits("QCheckBox") || w->inherits("QScrollBar")) { | ||
480 | w->removeEventFilter(this); | ||
481 | } | ||
482 | if(w->inherits("QButton") || w->inherits("QComboBox")){ | ||
483 | @@ -1014,9 +925,9 @@ | ||
484 | w->setAutoMask(false); | ||
485 | } | ||
486 | } | ||
487 | - if(w->inherits("KToolBar")){ | ||
488 | + if(w->inherits("QToolBar")){ | ||
489 | w->removeEventFilter(this); | ||
490 | - //w->setBackgroundMode(QWidget::PaletteBackground); | ||
491 | + w->setBackgroundMode(QWidget::PaletteBackground); | ||
492 | return; | ||
493 | } | ||
494 | if(w->inherits("QHeader")){ | ||
495 | @@ -1028,20 +939,24 @@ | ||
496 | void LiquidStyle::polish(QApplication *app) | ||
497 | { | ||
498 | |||
499 | - KStyle::polish(app); | ||
500 | + QWindowsStyle::polish(app); | ||
501 | menuAni = app->isEffectEnabled(UI_AnimateMenu); | ||
502 | menuFade = app->isEffectEnabled(UI_FadeMenu); | ||
503 | if(menuAni) | ||
504 | app->setEffectEnabled(UI_AnimateMenu, false); | ||
505 | if(menuFade) | ||
506 | app->setEffectEnabled(UI_FadeMenu, false); | ||
507 | + | ||
508 | + qt_set_draw_menu_bar_impl((QDrawMenuBarItemImpl) &LiquidStyle::drawMenuBarItem); | ||
509 | } | ||
510 | |||
511 | void LiquidStyle::unPolish(QApplication *app) | ||
512 | { | ||
513 | - KStyle::unPolish(app); | ||
514 | + QWindowsStyle::unPolish(app); | ||
515 | app->setEffectEnabled(UI_AnimateMenu, menuAni); | ||
516 | app->setEffectEnabled(UI_FadeMenu, menuFade); | ||
517 | + | ||
518 | + qt_set_draw_menu_bar_impl ( 0 ); | ||
519 | } | ||
520 | |||
521 | /* | ||
522 | @@ -1063,7 +978,7 @@ | ||
523 | */ | ||
524 | bool LiquidStyle::eventFilter(QObject *obj, QEvent *ev) | ||
525 | { | ||
526 | - if(obj->inherits("KToolBar")){ | ||
527 | + if(obj->inherits("QToolBar")){ | ||
528 | if(ev->type() == QEvent::Resize){ | ||
529 | const QObjectList *tbChildList = obj->children(); | ||
530 | QObjectListIt it(*tbChildList); | ||
531 | @@ -1076,35 +991,7 @@ | ||
532 | |||
533 | } | ||
534 | } | ||
535 | - else if(obj->inherits("KMiniPagerButton")){ | ||
536 | - QButton *btn = (QButton *)obj; | ||
537 | - if(ev->type() == QEvent::Paint){ | ||
538 | - if(!(btn->isOn() || btn->isDown())){ | ||
539 | - QPalette pal = btn->palette(); | ||
540 | - pal.setBrush(QColorGroup::Dark, btn == highlightWidget ? | ||
541 | - pagerHoverBrush : pagerBrush); | ||
542 | - btn->setPalette(pal); | ||
543 | - } | ||
544 | - else{ | ||
545 | - QPalette pal = btn->palette(); | ||
546 | - pal.setBrush(QColorGroup::Dark, | ||
547 | - QApplication::palette().active().brush(QColorGroup::Dark)); | ||
548 | - btn->setPalette(pal); | ||
549 | - | ||
550 | - } | ||
551 | - } | ||
552 | - else if(ev->type() == QEvent::Enter){ | ||
553 | - highlightWidget = btn; | ||
554 | - btn->repaint(false); | ||
555 | - } | ||
556 | - else if(ev->type() == QEvent::Leave){ | ||
557 | - highlightWidget = NULL; | ||
558 | - btn->repaint(false); | ||
559 | - } | ||
560 | - | ||
561 | - } | ||
562 | - else if(obj->inherits("QPushButton") || obj->inherits("QComboBox") || | ||
563 | - obj->isA("AppletHandle")){ | ||
564 | + else if(obj->inherits("QPushButton") || obj->inherits("QComboBox")){ | ||
565 | QWidget *btn = (QWidget *)obj; | ||
566 | if(ev->type() == QEvent::Enter){ | ||
567 | if(btn->isEnabled()){ | ||
568 | @@ -1119,20 +1006,7 @@ | ||
569 | } | ||
570 | } | ||
571 | } | ||
572 | - else if(obj->inherits("TaskContainer")){ | ||
573 | - QButton *btn = (QButton *)obj; | ||
574 | - QPalette pal = btn->palette(); | ||
575 | - if(ev->type() == QEvent::Enter){ | ||
576 | - pal.setColor(QColorGroup::Background, pal.active().button().light(110)); | ||
577 | - btn->setPalette(pal); | ||
578 | - } | ||
579 | - else if(ev->type() == QEvent::Leave){ | ||
580 | - pal.setColor(QColorGroup::Background, | ||
581 | - QApplication::palette().active().background()); | ||
582 | - btn->setPalette(pal); | ||
583 | - } | ||
584 | - } | ||
585 | - else if(obj->inherits("QToolButton") && !obj->inherits("KToolBarButton")){ | ||
586 | + else if(obj->inherits("QToolButton")){ | ||
587 | QToolButton *btn = (QToolButton *)btn; | ||
588 | if(!btn->autoRaise()){ | ||
589 | if(btn->isEnabled()){ | ||
590 | @@ -1340,11 +1214,6 @@ | ||
591 | QColorGroup g = btn->colorGroup(); | ||
592 | |||
593 | |||
594 | - QColor testColor; | ||
595 | - if(btn->parent() && btn->parent()->isWidgetType()){ | ||
596 | - testColor = p->backgroundColor(); // remove me | ||
597 | - } | ||
598 | - | ||
599 | //int dw = buttonDefaultIndicatorWidth(); | ||
600 | if(btn->hasFocus() || btn->isDefault()){ | ||
601 | QColor c = btn->hasFocus() ? g.button().light(110) : g.background(); | ||
602 | @@ -2065,203 +1934,24 @@ | ||
603 | p->drawLineSegments(a); | ||
604 | } | ||
605 | |||
606 | -void LiquidStyle::drawKBarHandle(QPainter *p, int x, int y, int w, int h, | ||
607 | - const QColorGroup &g, KToolBarPos, | ||
608 | - QBrush *) | ||
609 | -{ | ||
610 | - p->setPen(g.button().dark(120)); | ||
611 | - int x2 = x+w-1; | ||
612 | - int y2 = y+h-1; | ||
613 | - p->drawLine(x+1, y, x2-1, y); | ||
614 | - p->drawLine(x+1, y2, x2-1, y2); | ||
615 | - p->drawLine(x, y+1, x, y2-1); | ||
616 | - p->drawLine(x2, y+1, x2, y2-1); | ||
617 | - | ||
618 | - p->setPen(g.background()); | ||
619 | - p->drawPoint(x, y); | ||
620 | - p->drawPoint(x2, y); | ||
621 | - p->drawPoint(x, y2); | ||
622 | - p->drawPoint(x2, y2); | ||
623 | - | ||
624 | - | ||
625 | - | ||
626 | - // p->drawRect(x, y, w, h); | ||
627 | - QPixmap *pix = bevelFillDict.find(g.button().rgb()); | ||
628 | - if(!pix){ | ||
629 | - int h, s, v; | ||
630 | - g.button().hsv(&h, &s, &v); | ||
631 | - pix = new QPixmap(*bevelFillPix); | ||
632 | - adjustHSV(*pix, h, s, v); | ||
633 | - bevelFillDict.insert(g.button().rgb(), pix); | ||
634 | - } | ||
635 | - | ||
636 | - p->drawTiledPixmap(x+1, y+1, w-2, h-2, *pix); | ||
637 | -} | ||
638 | - | ||
639 | -void LiquidStyle::drawKMenuBar(QPainter *p, int x, int y, int w, int h, | ||
640 | - const QColorGroup &g, bool mac, QBrush *) | ||
641 | -{ | ||
642 | - if(p->device() && p->device()->devType() == QInternal::Widget && | ||
643 | - ((KMenuBar *)p->device())->isTopLevelMenu()){ | ||
644 | - p->setPen(Qt::black); | ||
645 | - p->drawRect(x, y, w, h); | ||
646 | - p->drawTiledPixmap(x+1, y+1, w-2, h-2, *menuPix); | ||
647 | - // left | ||
648 | - p->drawLine(x+1, y+1, x+1, y+5); | ||
649 | - p->drawLine(x+2, y+1, x+2, y+3); | ||
650 | - p->drawLine(x+3, y+1, x+3, y+2); | ||
651 | - p->drawLine(x+4, y+1, x+6, y+1); | ||
652 | - // right | ||
653 | - int x2 = x+w-1; | ||
654 | - p->drawLine(x2-1, y+1, x2-1, y+5); | ||
655 | - p->drawLine(x2-2, y+1, x2-2, y+3); | ||
656 | - p->drawLine(x2-3, y+1, x2-3, y+2); | ||
657 | - p->drawLine(x2-4, y+1, x2-6, y+1); | ||
658 | - } | ||
659 | - else{ | ||
660 | - qDrawShadePanel(p, x, y, w, h, g, false, 1, | ||
661 | - &g.brush(QColorGroup::Background)); | ||
662 | - } | ||
663 | |||
664 | -} | ||
665 | - | ||
666 | -void LiquidStyle::drawKToolBar(QPainter *p, int x, int y, int w, int h, | ||
667 | - const QColorGroup &g, KToolBarPos, QBrush *) | ||
668 | +void LiquidStyle::drawMenuBarItem(QPainter *p, int x, int y, int w, int h, | ||
669 | + QMenuItem *mi, QColorGroup &g, bool enabled, bool active ) | ||
670 | { | ||
671 | - //p->fillRect(x, y, w, h, g.brush(QColorGroup::Background)); | ||
672 | -} | ||
673 | + x -= 2; // Bug in Qt/E | ||
674 | + y -= 2; | ||
675 | + w += 2; | ||
676 | + h += 2; | ||
677 | |||
678 | -void LiquidStyle::drawKToolBarButton(QPainter *p, int x, int y, int w, int h, | ||
679 | - const QColorGroup &g, bool sunken, | ||
680 | - bool raised, bool enabled, bool popup, | ||
681 | - KToolButtonType icontext, | ||
682 | - const QString& btext, const QPixmap *pixmap, | ||
683 | - QFont *font, QWidget *btn) | ||
684 | -{ | ||
685 | - int dx, dy; | ||
686 | - | ||
687 | - QFontMetrics fm(*font); | ||
688 | - | ||
689 | - QToolBar* toolbar = 0; | ||
690 | - if(btn->parent() && btn->parent()->isWidgetType() && btn->parent()->inherits("QToolBar")) | ||
691 | - toolbar = static_cast<QToolBar*>(btn->parent()); | ||
692 | - | ||
693 | - --w, --h; | ||
694 | - if(sunken) | ||
695 | - ++x, ++y; | ||
696 | + p-> fillRect ( x, y, w, h, g.brush(QColorGroup::Background)); | ||
697 | |||
698 | - QColor btnColor(sunken ? g.button() : raised ? g.button().light(110) : | ||
699 | - g.background()); | ||
700 | - drawClearBevel(p, x, y, w, h, btnColor, g.background()); | ||
701 | - | ||
702 | - p->setPen(g.text()); | ||
703 | - | ||
704 | - if (icontext == Icon){ // icon only | ||
705 | - if (pixmap){ | ||
706 | - dx = ( w - pixmap->width() ) / 2; | ||
707 | - dy = ( h - pixmap->height() ) / 2; | ||
708 | - if ( sunken ) | ||
709 | - { | ||
710 | - ++dx; | ||
711 | - ++dy; | ||
712 | - } | ||
713 | - p->drawPixmap( x+dx, y+dy, *pixmap ); | ||
714 | - } | ||
715 | - } | ||
716 | - else if (icontext == IconTextRight){ // icon and text (if any) | ||
717 | - if (pixmap){ | ||
718 | - dx = 4; | ||
719 | - dy = ( h - pixmap->height() ) / 2; | ||
720 | - if ( sunken ){ | ||
721 | - ++dx; | ||
722 | - ++dy; | ||
723 | - } | ||
724 | - p->drawPixmap( x+dx, y+dy, *pixmap ); | ||
725 | - } | ||
726 | - if (!btext.isNull()){ | ||
727 | - int tf = AlignVCenter|AlignLeft; | ||
728 | - if (pixmap) | ||
729 | - dx= 4 + pixmap->width() + 2; | ||
730 | - else | ||
731 | - dx= 4; | ||
732 | - dy = 0; | ||
733 | - if ( sunken ){ | ||
734 | - ++dx; | ||
735 | - ++dy; | ||
736 | - } | ||
737 | - if (font) | ||
738 | - p->setFont(*font); | ||
739 | - if(raised) | ||
740 | - p->setPen(KGlobalSettings::toolBarHighlightColor()); | ||
741 | - p->drawText(x+dx, y+dy, w-dx, h, tf, btext); | ||
742 | - } | ||
743 | - } | ||
744 | - else if (icontext == Text){ // only text, even if there is a icon | ||
745 | - if (!btext.isNull()){ | ||
746 | - int tf = AlignVCenter|AlignLeft; | ||
747 | - if (!enabled) | ||
748 | - p->setPen(g.dark()); | ||
749 | - dx= (w - fm.width(btext)) / 2; | ||
750 | - dy= (h - fm.lineSpacing()) / 2; | ||
751 | - if ( sunken ){ | ||
752 | - ++dx; | ||
753 | - ++dy; | ||
754 | - } | ||
755 | - if (font) | ||
756 | - p->setFont(*font); | ||
757 | - if(raised) | ||
758 | - p->setPen(KGlobalSettings::toolBarHighlightColor()); | ||
759 | - p->drawText(x+dx, y+dy, fm.width(btext), fm.lineSpacing(), tf, btext); | ||
760 | - } | ||
761 | - } | ||
762 | - else if (icontext == IconTextBottom){ | ||
763 | - if (pixmap){ | ||
764 | - dx = (w - pixmap->width()) / 2; | ||
765 | - dy = (h - fm.lineSpacing() - pixmap->height()) / 2; | ||
766 | - if ( sunken ){ | ||
767 | - ++dx; | ||
768 | - ++dy; | ||
769 | - } | ||
770 | - p->drawPixmap( x+dx, y+dy, *pixmap ); | ||
771 | - } | ||
772 | - if (!btext.isNull()){ | ||
773 | - int tf = AlignBottom|AlignHCenter; | ||
774 | - dy= pixmap->height(); | ||
775 | - dx = 2; | ||
776 | - if ( sunken ){ | ||
777 | - ++dx; | ||
778 | - ++dy; | ||
779 | - } | ||
780 | - if (font) | ||
781 | - p->setFont(*font); | ||
782 | - if(raised) | ||
783 | - p->setPen(KGlobalSettings::toolBarHighlightColor()); | ||
784 | - p->drawText(x, y, w, h-3, tf, btext); | ||
785 | - } | ||
786 | - } | ||
787 | - if (popup){ | ||
788 | - if (enabled) | ||
789 | - qDrawArrow (p, Qt::DownArrow, Qt::WindowsStyle, false, w-5, h-5, 0, 0, | ||
790 | - g, true); | ||
791 | - else | ||
792 | - qDrawArrow (p, Qt::DownArrow, Qt::WindowsStyle, false, w-5, h-5, | ||
793 | - 0, 0, g, false); | ||
794 | - } | ||
795 | -} | ||
796 | - | ||
797 | - | ||
798 | -void LiquidStyle::drawKMenuItem(QPainter *p, int x, int y, int w, int h, | ||
799 | - const QColorGroup &g, bool active, QMenuItem *mi, | ||
800 | - QBrush *) | ||
801 | -{ | ||
802 | - if ( p->font() == KGlobalSettings::generalFont() ) | ||
803 | - p->setFont( KGlobalSettings::menuFont() ); | ||
804 | + w -= 2; | ||
805 | |||
806 | if(menuHandler->useShadowText()){ | ||
807 | QColor shadow; | ||
808 | if(p->device() && p->device()->devType() == QInternal::Widget && | ||
809 | - ((QWidget *)p->device())->inherits("KMenuBar")){ | ||
810 | - shadow = ((KMenuBar*)p->device())->isTopLevel() ? g.button().dark(130) : | ||
811 | + ((QWidget *)p->device())->inherits("QMenuBar")){ | ||
812 | + shadow = ((QMenuBar*)p->device())->isTopLevel() ? g.button().dark(130) : | ||
813 | g.background().dark(130); | ||
814 | } | ||
815 | else | ||
816 | @@ -2336,8 +2026,6 @@ | ||
817 | |||
818 | maxpmw = QMAX( maxpmw, 20 ); | ||
819 | |||
820 | - if ( p->font() == KGlobalSettings::generalFont() ) | ||
821 | - p->setFont( KGlobalSettings::menuFont() ); | ||
822 | |||
823 | bool dis = !enabled; | ||
824 | QColorGroup itemg = dis ? pal.disabled() : pal.active(); | ||
825 | @@ -2363,7 +2051,7 @@ | ||
826 | p->fillRect(x, y, w, h, menuBrush); | ||
827 | } | ||
828 | else{ | ||
829 | - KPixmap *pix = menuHandler->pixmap(((QWidget*)p->device())->winId()); | ||
830 | + QPixmap *pix = menuHandler->pixmap(((QWidget*)p->device())->winId()); | ||
831 | if(pix) | ||
832 | p->drawPixmap(x, y, *pix, x, y, w, h); | ||
833 | } | ||
834 | @@ -2508,25 +2196,6 @@ | ||
835 | return h; | ||
836 | } | ||
837 | |||
838 | -void LiquidStyle::drawKProgressBlock(QPainter *p, int x, int y, int w, int h, | ||
839 | - const QColorGroup &g, QBrush *fill) | ||
840 | -{ | ||
841 | - p->setPen(g.button().dark(130)); | ||
842 | - p->drawRect(x, y, w, h); | ||
843 | - p->setPen(g.button().light(120)); | ||
844 | - p->drawRect(x+1, y+1, w-2, h-2); | ||
845 | - if(w >= 4 && h >= 4){ | ||
846 | - QPixmap *pix = bevelFillDict.find(g.button().dark(120).rgb()); | ||
847 | - if(!pix){ | ||
848 | - int h, s, v; | ||
849 | - g.button().dark(120).hsv(&h, &s, &v); | ||
850 | - pix = new QPixmap(*bevelFillPix); | ||
851 | - adjustHSV(*pix, h, s, v); | ||
852 | - bevelFillDict.insert(g.button().dark(120).rgb(), pix); | ||
853 | - } | ||
854 | - p->drawTiledPixmap(x+2, y+2, w-4, h-4, *pix); | ||
855 | - } | ||
856 | -} | ||
857 | |||
858 | void LiquidStyle::drawFocusRect(QPainter *p, const QRect &r, | ||
859 | const QColorGroup &g, const QColor *c, | ||
860 | @@ -2540,25 +2209,25 @@ | ||
861 | return; | ||
862 | } | ||
863 | else{ | ||
864 | - KStyle::drawFocusRect(p, r, g, c, atBorder); | ||
865 | + QWindowsStyle::drawFocusRect(p, r, g, c, atBorder); | ||
866 | } | ||
867 | } | ||
868 | else | ||
869 | - KStyle::drawFocusRect(p, r, g, c, atBorder); | ||
870 | + QWindowsStyle::drawFocusRect(p, r, g, c, atBorder); | ||
871 | |||
872 | } | ||
873 | |||
874 | void LiquidStyle::polishPopupMenu(QPopupMenu *mnu) | ||
875 | { | ||
876 | mnu->installEventFilter(menuHandler); | ||
877 | - KStyle::polishPopupMenu(mnu); | ||
878 | + QWindowsStyle::polishPopupMenu(mnu); | ||
879 | } | ||
880 | |||
881 | void LiquidStyle::drawTab(QPainter *p, const QTabBar *tabBar, QTab *tab, | ||
882 | bool selected) | ||
883 | { | ||
884 | if(tabBar->shape() != QTabBar::RoundedAbove){ | ||
885 | - KStyle::drawTab(p, tabBar, tab, selected); | ||
886 | + QWindowsStyle::drawTab(p, tabBar, tab, selected); | ||
887 | return; | ||
888 | } | ||
889 | QPixmap tilePix; | ||
890 | @@ -2671,7 +2340,7 @@ | ||
891 | vFrame = 8; // was 10 | ||
892 | } | ||
893 | else | ||
894 | - KStyle::tabbarMetrics(t, hFrame, vFrame, overlap); | ||
895 | + QWindowsStyle::tabbarMetrics(t, hFrame, vFrame, overlap); | ||
896 | } | ||
897 | |||
898 | |||
899 | @@ -2699,7 +2368,7 @@ | ||
900 | p->drawLine(x+1, y+1, x+1, y2-1); | ||
901 | } | ||
902 | else if(lineWidth != 2 || !sunken) | ||
903 | - KStyle::drawPanel(p, x, y, w, h, g, sunken, lineWidth, fill); | ||
904 | + QWindowsStyle::drawPanel(p, x, y, w, h, g, sunken, lineWidth, fill); | ||
905 | else{ | ||
906 | QPen oldPen = p->pen(); | ||
907 | int x2 = x+w-1; | ||
908 | @@ -2726,105 +2395,6 @@ | ||
909 | } | ||
910 | } | ||
911 | |||
912 | -void LiquidStyle::drawKickerAppletHandle(QPainter *p, int x, int y, int w, int h, | ||
913 | - const QColorGroup &g, QBrush *) | ||
914 | -{ | ||
915 | - p->fillRect(x, y, w, h, g.brush(QColorGroup::Background)); | ||
916 | - drawClearBevel(p, x, y, w, h, highlightWidget == p->device() ? | ||
917 | - g.button().light(120) : g.button(), g.button()); | ||
918 | - /* | ||
919 | - if(h > w){ | ||
920 | - int y2 = y+h-1; | ||
921 | - | ||
922 | - p->setPen(g.light()); | ||
923 | - | ||
924 | - p->drawLine(x+1, y+2, x+1, y2-2); | ||
925 | - p->drawLine(x+4, y+2, x+4, y2-2); | ||
926 | - | ||
927 | - p->setPen(g.dark()); | ||
928 | - p->drawLine(x+2, y+2, x+2, y2-2); | ||
929 | - p->drawLine(x+5, y+2, x+5, y2-2); | ||
930 | - | ||
931 | - } | ||
932 | - else{ | ||
933 | - int x2 = x+w-1; | ||
934 | - | ||
935 | - p->setPen(g.light()); | ||
936 | - | ||
937 | - p->drawLine(x+2, y+1, x2-2, y+1); | ||
938 | - p->drawLine(x+2, y+4, x2-2, y+4); | ||
939 | - | ||
940 | - p->setPen(g.dark()); | ||
941 | - p->drawLine(x+2, y+2, x2-2, y+2); | ||
942 | - p->drawLine(x+2, y+5, x2-2, y+5); | ||
943 | - }*/ | ||
944 | - | ||
945 | -} | ||
946 | - | ||
947 | -void LiquidStyle::drawKickerTaskButton(QPainter *p, int x, int y, int w, int h, | ||
948 | - const QColorGroup &g, | ||
949 | - const QString &text, bool sunken, | ||
950 | - QPixmap *pixmap, QBrush *) | ||
951 | -{ | ||
952 | - p->fillRect(x, y, w, h, g.brush(QColorGroup::Button)); | ||
953 | - drawClearBevel(p, x, y, w, h, sunken ? g.button() : g.background(), g.button()); | ||
954 | - p->setPen(g.buttonText()); // Kicker doesn't set this ;-) | ||
955 | - | ||
956 | - if(text.isNull() && !pixmap) | ||
957 | - return; | ||
958 | - | ||
959 | - const int pxWidth = 20; | ||
960 | - int textPos = pxWidth; | ||
961 | - QRect br(buttonRect(x, y, w, h)); | ||
962 | - | ||
963 | - if (sunken) | ||
964 | - p->translate(1,1); | ||
965 | - | ||
966 | - if ( pixmap && !pixmap->isNull() ) { | ||
967 | - int dx = ( pxWidth - pixmap->width() ) / 2; | ||
968 | - int dy = ( h - pixmap->height() ) / 2; | ||
969 | - p->drawPixmap( br.x()+dx, dy, *pixmap ); | ||
970 | - } | ||
971 | - | ||
972 | - QString s = text; | ||
973 | - static const QString &modStr = KGlobal::staticQString( | ||
974 | - QString::fromUtf8("[") + i18n("modified") + QString::fromUtf8("]")); | ||
975 | - | ||
976 | - int modStrPos = s.find(modStr); | ||
977 | - | ||
978 | - if (-1 != modStrPos) { | ||
979 | - | ||
980 | - // +1 because we include a space after the closing brace. | ||
981 | - s.remove(modStrPos, modStr.length()+1); | ||
982 | - | ||
983 | - QPixmap modPixmap = SmallIcon("modified"); | ||
984 | - | ||
985 | - int dx = (pxWidth - modPixmap.width()) / 2; | ||
986 | - int dy = (h - modPixmap.height()) / 2; | ||
987 | - | ||
988 | - p->drawPixmap(br.x() + textPos + dx, dy, modPixmap); | ||
989 | - | ||
990 | - textPos += pxWidth; | ||
991 | - } | ||
992 | - | ||
993 | - if (!s.isEmpty()){ | ||
994 | - if (p->fontMetrics().width(s) > br.width() - textPos) { | ||
995 | - | ||
996 | - int maxLen = br.width() - textPos - p->fontMetrics().width("..."); | ||
997 | - | ||
998 | - while ((!s.isEmpty()) && (p->fontMetrics().width(s) > maxLen)) | ||
999 | - s.truncate(s.length() - 1); | ||
1000 | - | ||
1001 | - s.append("..."); | ||
1002 | - } | ||
1003 | - | ||
1004 | - p->setPen(g.buttonText()); | ||
1005 | - | ||
1006 | - p->drawText(br.x()+ textPos, -1, w-textPos, h, | ||
1007 | - AlignLeft|AlignVCenter, s); | ||
1008 | - } | ||
1009 | - | ||
1010 | -} | ||
1011 | |||
1012 | void LiquidStyle::adjustHSV(QPixmap &pix, int h, int s, int v) | ||
1013 | { | ||
1014 | @@ -2998,22 +2568,22 @@ | ||
1015 | customBtnIconList.clear(); | ||
1016 | customBtnLabelList.clear(); | ||
1017 | |||
1018 | - KConfig *config = KGlobal::config(); | ||
1019 | - QString oldGrp = config->group(); | ||
1020 | - config->setGroup("MosfetButtons"); | ||
1021 | +// KConfig *config = KGlobal::config(); | ||
1022 | +// QString oldGrp = config->group(); | ||
1023 | +// config->setGroup("MosfetButtons"); | ||
1024 | |||
1025 | QStrList iconList, colorList; //temp, we store QPixmaps and QColors | ||
1026 | iconList.setAutoDelete(true); | ||
1027 | colorList.setAutoDelete(true); | ||
1028 | - config->readListEntry("Labels", customBtnLabelList); | ||
1029 | - config->readListEntry("Icons", iconList); | ||
1030 | - config->readListEntry("Colors", colorList); | ||
1031 | +// config->readListEntry("Labels", customBtnLabelList); | ||
1032 | +// config->readListEntry("Icons", iconList); | ||
1033 | +// config->readListEntry("Colors", colorList); | ||
1034 | |||
1035 | const char *labelStr = customBtnLabelList.first(); | ||
1036 | const char *colorStr = colorList.first(); | ||
1037 | const char *iconStr = iconList.first(); | ||
1038 | |||
1039 | - KIconLoader *ldr = KGlobal::iconLoader(); | ||
1040 | +// KIconLoader *ldr = KGlobal::iconLoader(); | ||
1041 | while(labelStr != NULL){ | ||
1042 | QColor *c = new QColor; | ||
1043 | c->setNamedColor(QString(colorStr)); | ||
1044 | @@ -3022,7 +2592,7 @@ | ||
1045 | QString tmpStr(iconStr); | ||
1046 | if(!tmpStr.isEmpty()){ | ||
1047 | QPixmap *pixmap = | ||
1048 | - new QPixmap(ldr->loadIcon(tmpStr, KIcon::Small)); | ||
1049 | + new QPixmap();//ldr->loadIcon(tmpStr, KIcon::Small)); | ||
1050 | if(pixmap->isNull()){ | ||
1051 | delete pixmap; | ||
1052 | customBtnIconList.append(NULL); | ||
1053 | @@ -3037,7 +2607,6 @@ | ||
1054 | colorStr = colorList.next(); | ||
1055 | iconStr = iconList.next(); | ||
1056 | } | ||
1057 | - config->setGroup(oldGrp); | ||
1058 | } | ||
1059 | |||
1060 | void LiquidStyle::applyCustomAttributes(QPushButton *btn) | ||
1061 | @@ -3087,7 +2656,7 @@ | ||
1062 | } | ||
1063 | } | ||
1064 | |||
1065 | -#include "liquid.moc" | ||
1066 | +// #include "liquid.moc" | ||
1067 | |||
1068 | |||
1069 | |||
1070 | --- -Mon Jun 24 19:05:49 2002 | ||
1071 | +++ plugin.cppThu Jun 20 20:01:37 2002 | ||
1072 | @@ -1,29 +1,29 @@ | ||
1073 | #include "liquid.h" | ||
1074 | -#include <klocale.h> | ||
1075 | + | ||
1076 | |||
1077 | extern "C" { | ||
1078 | - KStyle* allocate(); | ||
1079 | - int minor_version(); | ||
1080 | - int major_version(); | ||
1081 | - const char *description(); | ||
1082 | + QStyle* allocate ( ); | ||
1083 | + int minor_version ( ); | ||
1084 | + int major_version ( ); | ||
1085 | + const char *description ( ); | ||
1086 | } | ||
1087 | |||
1088 | -KStyle* allocate() | ||
1089 | +QStyle* allocate ( ) | ||
1090 | { | ||
1091 | - return(new LiquidStyle); | ||
1092 | + return new LiquidStyle ( ); | ||
1093 | } | ||
1094 | |||
1095 | -int minor_version() | ||
1096 | +int minor_version ( ) | ||
1097 | { | ||
1098 | - return(0); | ||
1099 | + return 0; | ||
1100 | } | ||
1101 | |||
1102 | -int major_version() | ||
1103 | +int major_version ( ) | ||
1104 | { | ||
1105 | - return(1); | ||
1106 | + return 1; | ||
1107 | } | ||
1108 | |||
1109 | -const char *description() | ||
1110 | +const char *description ( ) | ||
1111 | { | ||
1112 | - return(i18n("High performance liquid plugin").utf8()); | ||
1113 | + return "High performance liquid plugin"; | ||
1114 | } | ||
diff --git a/noncore/styles/liquid/plugin.cpp b/noncore/styles/liquid/plugin.cpp new file mode 100644 index 0000000..fca7c06 --- a/dev/null +++ b/noncore/styles/liquid/plugin.cpp | |||
@@ -0,0 +1,29 @@ | |||
1 | #include "liquid.h" | ||
2 | |||
3 | |||
4 | extern "C" { | ||
5 | QStyle* allocate ( ); | ||
6 | int minor_version ( ); | ||
7 | int major_version ( ); | ||
8 | const char *description ( ); | ||
9 | } | ||
10 | |||
11 | QStyle* allocate ( ) | ||
12 | { | ||
13 | return new LiquidStyle ( ); | ||
14 | } | ||
15 | |||
16 | int minor_version ( ) | ||
17 | { | ||
18 | return 0; | ||
19 | } | ||
20 | |||
21 | int major_version ( ) | ||
22 | { | ||
23 | return 1; | ||
24 | } | ||
25 | |||
26 | const char *description ( ) | ||
27 | { | ||
28 | return "High performance liquid plugin"; | ||
29 | } | ||