Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

321 lines
8.9 KiB

  1. #include "resource.h"
  2. #define BODYBLUE 107,117,165
  3. // Main Style Sheet
  4. <Style resid=banner>
  5. // Standard style for Element and Button
  6. Element
  7. {
  8. FontFace: "Trebuchet MS";
  9. FontSize: -19;
  10. FontStyle: 0;
  11. FontWeight: Light;
  12. Foreground: White;
  13. }
  14. Element[ID=atom(name)]
  15. {
  16. FontSize: -45;
  17. }
  18. Button[MouseFocused]
  19. {
  20. Cursor: Hand;
  21. }
  22. </Style>
  23. <Style resid=left>
  24. Element
  25. {
  26. FontFace: "Trebuchet MS";
  27. FontSize: -19;
  28. FontWeight: Light;
  29. FontStyle: Italic;
  30. Foreground: White;
  31. Background: RGB(BODYBLUE);
  32. }
  33. </Style>
  34. <Style resid=TopList>
  35. Button
  36. {
  37. ContentAlign: BottomCenter;
  38. Margin: Rect(8,8,8,8);
  39. }
  40. Button[MouseFocused]
  41. {
  42. FontStyle: Underline | Italic;
  43. Cursor: Hand;
  44. }
  45. </Style>
  46. <Style resid=leftlist>
  47. Element
  48. {
  49. FontFace: "Trebuchet MS";
  50. FontWeight: Bold;
  51. FontStyle: 0;
  52. FontSize: -14;
  53. }
  54. Element[ID=atom(divider)]
  55. {
  56. Margin: Rect(0,10,0,10);
  57. Background: Gradient(ARGB(255,255,255,255),ARGB(255,BODYBLUE),0);
  58. }
  59. </Style>
  60. <Style resid=list>
  61. Element [ID=atom(label)]
  62. {
  63. Padding: rect(12,0,0,0);
  64. ContentAlign: MiddleLeft;
  65. }
  66. Button
  67. {
  68. Margin: Rect(0,3,0,3);
  69. }
  70. Button[MouseFocused]
  71. {
  72. FontStyle: Underline;
  73. Cursor: Hand;
  74. }
  75. PIDLButton
  76. {
  77. Margin: Rect(0,8,0,8);
  78. }
  79. PIDLButton [MouseFocused]
  80. {
  81. FontStyle: Underline;
  82. Cursor: Hand;
  83. }
  84. </Style>
  85. <Style resid=ListHeader>
  86. Element
  87. {
  88. FontFace: "Trebuchet MS";
  89. FontStyle: 0;
  90. FontWeight: Light;
  91. FontSize: -20;
  92. Foreground: White;
  93. }
  94. </Style>
  95. <Style resid=body>
  96. Element
  97. {
  98. FontFace: "Trebuchet MS";
  99. FontSize: -19;
  100. Foreground: White;
  101. Background: rcbmp(IDB_USERTILEBACK,0);
  102. }
  103. Button
  104. {
  105. FontSize: -12;
  106. FontWeight: Bold;
  107. FontStyle: 0;
  108. }
  109. Button[MouseFocused]
  110. {
  111. FontStyle: Underline;
  112. Cursor: Hand;
  113. }
  114. Element[ID=atom(divider)]
  115. {
  116. Margin: Rect(0,10,0,10);
  117. Background: Gradient(ARGB(255,255,255,255),ARGB(255,BODYBLUE),0);
  118. }
  119. </Style>
  120. <Style resid=programs>
  121. PIDLButton
  122. {
  123. FontFace: "Trebuchet MS";
  124. FontSize: -12;
  125. FontStyle: 0;
  126. Margin: Rect(0,8,0,8);
  127. ContentAlign: MiddleCenter;
  128. }
  129. PIDLButton [MouseFocused]
  130. {
  131. FontStyle: Underline;
  132. Cursor: Hand;
  133. }
  134. Element [ID=atom(label)]
  135. {
  136. Padding: rect(10,0,0,0);
  137. }
  138. Selector
  139. {
  140. Padding: Rect(0,5,0,5);
  141. }
  142. </Style>
  143. <Style resid=documents>
  144. PIDLButton
  145. {
  146. FontFace: "Trebuchet MS";
  147. FontSize: -12;
  148. FontStyle: 0;
  149. Margin: Rect(0,8,0,8);
  150. ContentAlign: MiddleCenter;
  151. }
  152. PIDLButton [MouseFocused]
  153. {
  154. FontStyle: Underline;
  155. Cursor: Hand;
  156. }
  157. Element [ID=atom(label)]
  158. {
  159. Padding: rect(10,0,0,0);
  160. }
  161. Selector
  162. {
  163. Padding: Rect(0,5,0,5);
  164. }
  165. </Style>
  166. <Style resid=logoff>
  167. Element
  168. {
  169. FontFace: "Trebuchet MS";
  170. FontSize: -12;
  171. }
  172. Button
  173. {
  174. ContentAlign: BottomCenter;
  175. Margin: Rect(8,8,8,8);
  176. Background: ARGB(0,0,0,0);
  177. }
  178. Button[MouseFocused]
  179. {
  180. FontStyle: Underline;
  181. Cursor: Hand;
  182. }
  183. </Style>
  184. // UI template
  185. <Element resid=main Layout=BorderLayout() Foreground=White Background=RGB(BODYBLUE)>
  186. <Element LayoutPos=Top Sheet=styleref(banner) Layout=BorderLayout()>
  187. <Element Layout=GridLayout(1,3) LayoutPos=Right Background=rcbmp(IDB_USERTILEBACK, 0)>
  188. <Button ID=atom(picture1) ContentAlign=MiddleCenter Content=rcbmp(IDB_BACKGROUND1, 0) />
  189. <Button ID=atom(picture2) ContentAlign=MiddleCenter Content=rcbmp(IDB_BACKGROUND2, 0) />
  190. <Button ID=atom(picture3) ContentAlign=MiddleCenter Content=rcbmp(IDB_BACKGROUND3, 0) />
  191. </Element>
  192. <Element Layout=FillLayout() LayoutPos=Client>
  193. <Element Layout=FlowLayout(0,0,1) Background=rcbmp(IDB_USERTILEBACK, 0)>
  194. <Element Content=rcbmp(IDB_USERTILERIGHT, 0) />
  195. </Element>
  196. <Element Layout=BorderLayout() Background=argb(0,0,0,0)>
  197. <Element ID=atom(UserPicture) LayoutPos=Left ContentAlign=MiddleLeft />
  198. <Element ID=atom(WelcomeTile) LayoutPos=Client Padding=Rect(10,20,0,0) Layout=VerticalFlowLayout(0,0,3)>
  199. <Element Content=rcstr(IDS_WELCOME) />
  200. <Element Background=Gradient(ARGB(255,255,255,255),ARGB(255,BODYBLUE),0) Height=1 />
  201. <Element Margin=Rect(0, -2, 0, 0) ID=atom(name) />
  202. </Element>
  203. </Element>
  204. </Element>
  205. </Element>
  206. <Element LayoutPos=Left Padding=Rect(18,0,0,0) Sheet=styleref(left) Layout=BorderLayout()>
  207. <Element LayoutPos=Top Layout=FlowLayout(0) Sheet=styleref(TopList) Padding=Rect(0,0,4,2)>
  208. <Button ID=atom(internet) Layout=BorderLayout()>
  209. <Element Margin=Rect(0,0,-3,0) LayoutPos=Left Padding=Rect(0,0,0,2) Content=rcbmp(IDB_INTERNET, 0) />
  210. <Element Margin=Rect(-3,0,0,0) LayoutPos=Client Background=ARGB(0,0,0,0) Content=rcstr(IDS_INTERNET) />
  211. </Button>
  212. <Button ID=atom(email) Layout=BorderLayout()>
  213. <Element Margin=Rect(0,0,-3,0) LayoutPos=Left Padding=Rect(0,0,0,2) Content=rcbmp(IDB_EMAIL, 0) />
  214. <Element Margin=Rect(-3,0,0,0) LayoutPos=Client Background=ARGB(0,0,0,0) Content=rcstr(IDS_EMAIL) />
  215. </Button>
  216. <Button ID=atom(search) Layout=BorderLayout()>
  217. <Element Margin=Rect(0,0,-3,0) LayoutPos=Left Padding=Rect(0,0,0,2) Content=rcbmp(IDB_SEARCH, 0) />
  218. <Element Margin=Rect(-3,0,0,0) LayoutPos=Client Background=ARGB(0,0,0,0) Content=rcstr(IDS_SEARCH) />
  219. </Button>
  220. </Element>
  221. <Element ID=atom(CurveZone) LayoutPos=Right Padding=Rect(0,0,0,105) Layout=BorderLayout()>
  222. <Element LayoutPos=Top Content=rcbmp(IDB_SIDECURVE,0) />
  223. <Element LayoutPos=Bottom Content=rcbmp(IDB_BOTTOMSIDECURVE,0) />
  224. <Element LayoutPos=Client Background=rcbmp(IDB_USERTILEBACK,0) />
  225. </Element>
  226. <Element Sheet=styleref(leftlist) Padding=Rect(20,10,0,0) LayoutPos=Client Layout=VerticalFlowLayout(0,0,3)>
  227. <Element Sheet=styleref(ListHeader) Content=rcstr(IDS_FREQUENT) />
  228. <Element ID=atom(divider) Height=1 />
  229. <Selector ID=atom(DocList) Sheet=styleref(list) Layout=VerticalFlowLayout(0,0,0)>
  230. </Selector>
  231. <Element ID=atom(divider) Height=1 />
  232. <Selector ID=atom(SystemDocList) Sheet=styleref(list) Layout=VerticalFlowLayout(0,0,0)>
  233. // <Button Content=rcstr(IDS_CUSTOMIZE) />
  234. </Selector>
  235. </Element>
  236. </Element>
  237. <Element ID=atom(LogoffZone) Sheet=styleref(logoff) Padding=Rect(50, 0, 90, 40) LayoutPos=Bottom Layout=BorderLayout()>
  238. <Button Id=atom(turnoff) LayoutPos=Right Layout=BorderLayout()>
  239. <Element Margin=Rect(0,0,0,0) Padding=Rect(0,0,0,2) LayoutPos=Left Content=rcbmp(IDB_TURNOFF, 0) />
  240. <Element ID=atom(label) Margin=Rect(-18, 8, 0, 0) LayoutPos=Client Content=rcstr(IDS_TURNOFF) />
  241. </Button>
  242. <Button Id=atom(logoff) Margin=Rect(0, 0, 60, 0) LayoutPos=Right Layout=BorderLayout()>
  243. <Element Margin=Rect(0,0,0,0) LayoutPos=Left Content=rcbmp(IDB_LOGOFF, 0) />
  244. <Element ID=atom(label) Margin=Rect(-18, 8, 0, 0) LayoutPos=Client Content=rcstr(IDS_LOGOFF) />
  245. </Button>
  246. </Element>
  247. <Element LayoutPos=Top Layout=BorderLayout()>
  248. <Element LayoutPos=Left Content=rcbmp(IDB_TOPCURVE,0) />
  249. <Element LayoutPos=Client Background=rcbmp(IDB_USERTILEBACK,0) />
  250. </Element>
  251. <Element LayoutPos=Bottom Layout=BorderLayout()>
  252. <Element LayoutPos=Left Content=rcbmp(IDB_BOTTOMCURVE,0) />
  253. <Element LayoutPos=Client Background=rcbmp(IDB_USERTILEBACK,0) />
  254. </Element>
  255. <Element LayoutPos=Client Sheet=styleref(body) Layout=GridLayout(1,2)>
  256. <Element Padding=Rect(40,0,0,0) Layout=VerticalFlowLayout(0,0,3)>
  257. <Element Padding=Rect(0,0,0,0) Content=rcstr(IDS_PROGRAMS)/>
  258. <Element ID=atom(divider) Height=1 />
  259. <Selector ID=atom(Programs) Sheet=styleref(programs) Layout=VerticalFlowLayout(0,0,0)>
  260. </Selector>
  261. <Button ID=atom(MorePrograms) Content=rcstr(IDS_SHOWALL) />
  262. </Element>
  263. <Element Padding=Rect(25,0,0,0) Layout=VerticalFlowLayout(0,0,3)>
  264. <Element Padding=Rect(0,0,0,0) Content=rcstr(IDS_DOCUMENTS)/>
  265. <Element ID=atom(divider) Height=1 />
  266. <Selector ID=atom(Documents) Sheet=styleref(documents) Layout=VerticalFlowLayout(0,0,0)>
  267. </Selector>
  268. <Button ID=atom(MoreDocuments) Content=rcstr(IDS_SHOWALL) />
  269. </Element>
  270. </Element>
  271. </Element>