0
|
1 widget Combo {
|
|
2 layout = VBox;
|
|
3 size = 100 0;
|
|
4
|
|
5 [hexpand hfill] new HBox {
|
|
6 [hexpand hfill] new Input input {
|
|
7 size = 80 0;
|
|
8 }
|
|
9
|
|
10 [vexpand vfill] new ScrollbarButton button {
|
|
11 arrowDir = 3;
|
|
12 }
|
|
13 }
|
|
14
|
|
15
|
|
16 new HBox popup {
|
|
17 [hexpand hfill vexpand vfill] new ScrollView {
|
|
18 children.useChildSize = 1;
|
|
19
|
|
20 [hexpand hfill vexpand vfill] new VBox {
|
|
21 shape = Rectangle;
|
|
22 style.normal = {
|
|
23 background = solid(rgba(.1, .1, .1, .8));
|
|
24 border = 1 rgba(.4, .4, .4, .7);
|
|
25 }
|
|
26 layout = {
|
|
27 padding = 1 1;
|
|
28 }
|
|
29
|
|
30 [hexpand hfill vexpand vfill] new TextList textList;
|
|
31 }
|
|
32 }
|
|
33 }
|
|
34
|
|
35 input = sub(input);
|
|
36 popup = sub(popup);
|
|
37 button = sub(button);
|
|
38 textList = sub(popup.textList);
|
|
39 }
|