comparison themes/default/Menu.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 HMenu {
2 new HBox children {
3 layout = {
4 spacing = 8;
5 padding = 8 2;
6 }
7 }
8
9 children = sub(children);
10 }
11
12
13 widget HMenuItem {
14 [hexpand hfill] new Group {
15 shape = Rectangle;
16 style.active = {
17 background = solid(rgba(1, 1, 1, .1));
18 border = 1 black;
19 }
20 layout = {
21 padding = 2 2;
22 }
23
24 new Label label {
25 fontSize = 11;
26 style.normal = {
27 color = rgb(.8, .8, .8);
28 }
29 }
30 }
31
32 label = sub(label);
33 text = prop(label.text);
34
35 childDir = 3;
36 }
37
38
39 widget VMenu {
40 [hexpand hfill vexpand vfill] new Graphic {
41 renderOversize = 8 8;
42 renderOffset = 2 2;
43 style.normal = {
44 background = solid(rgba(0, 0, 0, .5));
45 image = grid("themes/default/img/menuShadow.png", hline(14, 66), vline(14, 66));
46 }
47
48 [hexpand hfill vexpand vfill] new Group {
49 size = 80 0;
50 shape = Rectangle;
51 style.normal = {
52 background = solid(rgb(.18, .18, .18));
53 border = 1 rgb(.25, .25, .25);
54 }
55 layout = {
56 padding = 4 3;
57 }
58
59 [hfill hexpand] new VBox children {
60 layout = {
61 spacing = 2;
62 padding = 2 2;
63 attribs = "hexpand hfill";
64 }
65 }
66 }
67 }
68
69 children = sub(children);
70 }
71
72
73 widget VMenuItem {
74 [hexpand hfill] new Group {
75 shape = Rectangle;
76 style.active = {
77 background = solid(rgba(1, 1, 1, .05));
78 border = 1 black;
79 }
80 layout = {
81 padding = 2 2;
82 }
83
84 new Label label {
85 fontSize = 11;
86 style.normal = {
87 color = rgb(.8, .8, .8);
88 }
89 }
90 }
91
92 label = sub(label);
93 text = prop(label.text);
94
95 childDir = 0;
96 }