0
|
1 widget ScrollbarButton {
|
|
2 layout = Layered;
|
|
3
|
|
4 [hfill vfill] new Graphic {
|
|
5 size = 17 17;
|
|
6
|
|
7 style.normal = {
|
|
8 image = grid("themes/default/img/scrollbutton.png", hline(3, 14), vline(3, 14));
|
|
9 background = solid(white);
|
|
10 }
|
|
11
|
|
12 style.active = {
|
|
13 background = solid(rgba(1, 1, 1, 0));
|
|
14 }
|
|
15 }
|
|
16
|
|
17 [hfill vfill] new Graphic {
|
|
18 size = 17 17;
|
|
19
|
|
20 style.normal = {
|
|
21 image = grid("themes/default/img/scrollbutton_active.png", hline(3, 14), vline(3, 14));
|
|
22 background = solid(rgba(1, 1, 1, 0));
|
|
23 }
|
|
24
|
|
25 style.active = {
|
|
26 background = solid(white);
|
|
27 }
|
|
28 }
|
|
29
|
|
30 new Icon icon {
|
|
31 addIcon = "themes/default/img/arrow0.png";
|
|
32 addIcon = "themes/default/img/arrow1.png";
|
|
33 addIcon = "themes/default/img/arrow2.png";
|
|
34 addIcon = "themes/default/img/arrow3.png";
|
|
35 }
|
|
36
|
|
37 arrowDir = prop(icon.iconIndex);
|
|
38 }
|