Mercurial > projects > openmelee
comparison themes/default/Spinner.cfg @ 0:c10bc63824e7
Initial commit!
author | zzzzrrr <mason.green@gmail.com> |
---|---|
date | Fri, 20 Mar 2009 06:41:25 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c10bc63824e7 |
---|---|
1 widget Spinner { | |
2 new VBox { | |
3 new SpinnerButton button2 { | |
4 icon.iconIndex = 0; | |
5 } | |
6 | |
7 new SpinnerButton button1 { | |
8 icon.iconIndex = 1; | |
9 } | |
10 } | |
11 | |
12 button1 = sub(button1); | |
13 button2 = sub(button2); | |
14 } | |
15 | |
16 | |
17 widget SpinnerButton { | |
18 layout = Layered; | |
19 | |
20 [hfill vfill] new Icon icon { | |
21 addIcon = "themes/default/img/spinner_up.png"; | |
22 addIcon = "themes/default/img/spinner_down.png"; | |
23 } | |
24 | |
25 [hfill vfill] new Graphic { | |
26 style.normal = { | |
27 background = solid(rgba(1, 1, 1, 0)); | |
28 } | |
29 style.hover = { | |
30 background = solid(rgba(1, 1, 1, .2)); | |
31 deactivation = .3; | |
32 } | |
33 style.active = { | |
34 background = solid(rgba(1, 1, 1, .4)); | |
35 } | |
36 } | |
37 | |
38 icon = sub(icon); | |
39 } | |
40 | |
41 | |
42 widget InputSpinner { | |
43 size = 60 0; | |
44 shape = Rectangle; | |
45 style.normal = { | |
46 border = 1 black; | |
47 background = solid(rgb(.2, .21, .24)); | |
48 } | |
49 layout = HBox; | |
50 layout = { | |
51 spacing = 2; | |
52 } | |
53 | |
54 [hexpand hfill vexpand hfill] new Group { | |
55 layout = { | |
56 padding = 2 2; | |
57 } | |
58 | |
59 [hexpand hfill vexpand] new InputArea input { | |
60 shape = Rectangle; | |
61 style.normal = { | |
62 background = solid(black); | |
63 textInput = { | |
64 caretColor = rgb(.6, .7, 1); | |
65 } | |
66 } | |
67 | |
68 fontSize = 11; | |
69 text = "0"; | |
70 } | |
71 } | |
72 new Spinner spinner; | |
73 | |
74 | |
75 spinner = sub(spinner); | |
76 input = sub(input); | |
77 value = prop(spinner.value); | |
78 | |
79 value = 0; | |
80 } |