1 |
|
package pl.magot.vetch.ancal.views; |
2 |
|
|
|
|
| 93,1% |
Uncovered Elements: 4 (58) |
Complexity: 19 |
Complexity Density: 0,7 |
|
3 |
|
public class dayStyle { |
4 |
|
public final static int iColorFrame = 0xff666666; |
5 |
|
public final static int iColorFrameHoliday = 0xff888888; |
6 |
|
public final static int iColorFrameToday = 0xff888888; |
7 |
|
|
8 |
|
public final static int iColorText = 0xffdddddd; |
9 |
|
public final static int iColorTextHoliday = 0xfff0f0f0; |
10 |
|
public final static int iColorTextToday = 0xff002200; |
11 |
|
|
12 |
|
public final static int iColorTextHeader = 0xffcccccc; |
13 |
|
public final static int iColorTextHeaderHoliday = 0xffd0d0d0; |
14 |
|
public final static int iColorTextHeaderToday = 0xff002200; |
15 |
|
|
16 |
|
public final static int iColorTextHeaderLight = 0xffdddddd; |
17 |
|
public final static int iColorTextHeaderLightHoliday = 0xffe0e0e0; |
18 |
|
public final static int iColorTextHeaderLightToday = 0xff003300; |
19 |
|
|
20 |
|
public final static int iColorBkg = 0xff888888; |
21 |
|
public final static int iColorBkgHoliday = 0xffaaaaaa; |
22 |
|
public final static int iColorBkgToday = 0xff88aa88; |
23 |
|
|
24 |
|
public final static int iColorBkgFocusLight = 0xffffddbb; |
25 |
|
public final static int iColorBkgFocusDark = 0xffaa5500; |
26 |
|
|
27 |
|
public final static int iColorTextHour = 0xFFFF8800; |
28 |
|
public final static int iColorTextWeek = 0xFF1177BB; |
29 |
|
|
30 |
|
public final static int iColorTimeItem = 0xff555555; |
31 |
|
public final static int iColorTimeItemFocus = 0xFF664422; |
32 |
|
|
33 |
|
public final static int iColorTimeItemBkg = 0xffeeeeee; |
34 |
|
public final static int iColorTimeItemBkgFocus = 0xFFaa5500; |
35 |
|
|
36 |
|
public final static int iColorTextFocused = 0xff221100; |
37 |
|
|
38 |
|
|
|
|
| 66,7% |
Uncovered Elements: 1 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
39 |
40
|
public static int getColorTimeItem(boolean bFocused) {... |
40 |
40
|
return bFocused ? iColorTimeItemFocus : iColorTimeItem; |
41 |
|
} |
42 |
|
|
|
|
| 66,7% |
Uncovered Elements: 1 (3) |
Complexity: 2 |
Complexity Density: 2 |
|
43 |
40
|
public static int getColorTimeItemBkg(boolean bFocused) {... |
44 |
40
|
return bFocused ? iColorTimeItemBkgFocus : iColorTimeItemBkg; |
45 |
|
} |
46 |
|
|
|
|
| 77,8% |
Uncovered Elements: 2 (9) |
Complexity: 3 |
Complexity Density: 0,6 |
|
47 |
603
|
public static int getColorFrame(boolean bHoliday, boolean bToday) {... |
48 |
603
|
if (bToday) |
49 |
0
|
return iColorFrameToday; |
50 |
603
|
if (bHoliday) |
51 |
174
|
return iColorFrameHoliday; |
52 |
429
|
return iColorFrame; |
53 |
|
} |
54 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (9) |
Complexity: 3 |
Complexity Density: 0,6 |
|
55 |
603
|
public static int getColorTextHeader(boolean bHoliday, boolean bToday) {... |
56 |
603
|
if (bToday) |
57 |
33
|
return iColorTextHeaderToday; |
58 |
570
|
if (bHoliday) |
59 |
174
|
return iColorTextHeaderHoliday; |
60 |
396
|
return iColorTextHeader; |
61 |
|
} |
62 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (9) |
Complexity: 3 |
Complexity Density: 0,6 |
|
63 |
1313
|
public static int getColorText(boolean bHoliday, boolean bToday) {... |
64 |
1313
|
if (bToday) |
65 |
40
|
return iColorTextToday; |
66 |
1273
|
if (bHoliday) |
67 |
393
|
return iColorTextHoliday; |
68 |
880
|
return iColorText; |
69 |
|
} |
70 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (9) |
Complexity: 3 |
Complexity Density: 0,6 |
|
71 |
386
|
public static int getColorTextHeaderLight(boolean bHoliday, boolean bToday) {... |
72 |
386
|
if (bToday) |
73 |
33
|
return iColorTextHeaderLightToday; |
74 |
353
|
if (bHoliday) |
75 |
110
|
return iColorTextHeaderLightHoliday; |
76 |
243
|
return iColorTextHeaderLight; |
77 |
|
} |
78 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (9) |
Complexity: 3 |
Complexity Density: 0,6 |
|
79 |
1669
|
public static int getColorBkg(boolean bHoliday, boolean bToday) {... |
80 |
1669
|
if (bToday) |
81 |
53
|
return iColorBkgToday; |
82 |
1616
|
if (bHoliday) |
83 |
498
|
return iColorBkgHoliday; |
84 |
1118
|
return iColorBkg; |
85 |
|
} |
86 |
|
} |