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.

399 lines
7.3 KiB

  1. //
  2. // ARP resource file, "standard" look
  3. //
  4. #include "resource.h"
  5. #include <directuipp.h>
  6. /*****************************************************
  7. * Default style sheet rules
  8. *****************************************************/
  9. <style resid=frame>
  10. arpframe
  11. {
  12. accessible: true;
  13. accRole: 9;
  14. accName: rcstr(IDS_ARPTITLE);
  15. fontsize: sysmetric(DSM_ICONFONTSIZE);
  16. fontweight: sysmetric(DSM_ICONFONTWEIGHT);
  17. fontstyle: sysmetric(DSM_ICONFONTSTYLE);
  18. fontface: sysmetricstr(DSMS_ICONFONTFACE);
  19. background: window;
  20. foreground: windowtext;
  21. }
  22. </style>
  23. <style resid=closepane>
  24. element
  25. {
  26. background: buttonface;
  27. padding: rect(10,10,10,10);
  28. }
  29. button
  30. {
  31. background: dfc(DFC_BUTTON, DFCS_BUTTONPUSH);
  32. foreground: buttontext;
  33. padding: rect(20,6,20,6);
  34. }
  35. button [pressed]
  36. {
  37. background: dfc(DFC_BUTTON, DFCS_BUTTONPUSH | DFCS_PUSHED);
  38. padding: rect(21,7,19,5);
  39. }
  40. button [keyfocused]
  41. {
  42. contentalign: focusrect;
  43. }
  44. progress
  45. {
  46. borderthickness: rect(2,2,2,2);
  47. bordercolor: buttonface;
  48. borderstyle: sunken;
  49. padding: rect(1,1,1,1);
  50. margin: rect(0, 4, 0, 2);
  51. foreground: rcbmp(IDB_PROGRESS);
  52. }
  53. </style>
  54. <style resid=optionpane>
  55. ARPSelector
  56. {
  57. background: appworkspace;
  58. foreground: buttontext;
  59. padding: rect(3,3,3,3);
  60. layoutpos: left;
  61. }
  62. element
  63. {
  64. background: argb(0,0,0,0);
  65. }
  66. button
  67. {
  68. bordercolor: appworkspace;
  69. borderthickness: rect(2,2,2,2);
  70. foreground: captiontext;
  71. margin: rect(5,5,5,5);
  72. padding: rect(2,2,2,2);
  73. }
  74. button [keyfocused]
  75. {
  76. borderstyle: raised;
  77. bordercolor: threedlightshadow;
  78. }
  79. button [mousefocused]
  80. {
  81. borderstyle: raised;
  82. bordercolor: threedlightshadow;
  83. }
  84. button [pressed]
  85. {
  86. borderstyle: sunken;
  87. padding: rect(3,3,1,1);
  88. bordercolor: threedlightshadow;
  89. }
  90. button [selected]
  91. {
  92. borderstyle: sunken;
  93. padding: rect(3,3,1,1);
  94. bordercolor: threedlightshadow;
  95. }
  96. </style>
  97. <style resid=contentpane>
  98. element [id=atom(contentpane)]
  99. {
  100. padding: rect(10,10,10,10);
  101. }
  102. element [id=atom(installedlistcontainer)]
  103. {
  104. borderthickness: rect(1,1,1,1);
  105. bordercolor: buttonshadow;
  106. padding: rect(0,0,0,0);
  107. }
  108. element [id=atom(publishedlistcontainer)]
  109. {
  110. borderthickness: rect(1,1,1,1);
  111. bordercolor: buttonshadow;
  112. padding: rect(0,0,0,0);
  113. }
  114. element [id=atom(ocsetuplistcontainer)]
  115. {
  116. borderthickness: rect(1,1,1,1);
  117. bordercolor: buttonshadow;
  118. padding: rect(0,0,0,0);
  119. }
  120. element [id=atom(label)]
  121. {
  122. padding: rect(0,5,5,5);
  123. }
  124. element
  125. {
  126. padding: rect(2,2,2,2);
  127. }
  128. element [id=atom(sort)]
  129. {
  130. padding: rect(2,2,0,2);
  131. }
  132. button
  133. {
  134. background: dfc(DFC_BUTTON, DFCS_BUTTONPUSH);
  135. foreground: buttontext;
  136. padding: rect(8,6,8,6);
  137. margin: rect(5,5,5,5);
  138. }
  139. button [pressed]
  140. {
  141. background: dfc(DFC_BUTTON, DFCS_BUTTONPUSH | DFCS_PUSHED);
  142. padding: rect(9,7,7,5);
  143. }
  144. button [keyfocused]
  145. {
  146. contentalign: focusrect;
  147. }
  148. </style>
  149. <style resid=listscroller>
  150. scrollbar
  151. {
  152. layoutpos: ninebottom;
  153. }
  154. scrollbar [vertical]
  155. {
  156. layoutpos: nineright;
  157. }
  158. viewer
  159. {
  160. layoutpos: nineclient;
  161. }
  162. thumb
  163. {
  164. background: dfc(DFC_BUTTON, DFCS_BUTTONPUSH);
  165. }
  166. repeatbutton [id=atom(lineup)]
  167. {
  168. background: dfc(DFC_SCROLL, DFCS_SCROLLUP);
  169. width: sysmetric(SM_CXVSCROLL);
  170. height: sysmetric(SM_CYVSCROLL);
  171. }
  172. repeatbutton [id=atom(lineup)][pressed]
  173. {
  174. background: dfc(DFC_SCROLL, DFCS_SCROLLUP | DFCS_PUSHED);
  175. }
  176. repeatbutton [id=atom(linedown)]
  177. {
  178. background: dfc(DFC_SCROLL, DFCS_SCROLLDOWN);
  179. width: sysmetric(SM_CXVSCROLL);
  180. height: sysmetric(SM_CYVSCROLL);
  181. }
  182. repeatbutton [id=atom(linedown)][pressed]
  183. {
  184. background: dfc(DFC_SCROLL, DFCS_SCROLLDOWN | DFCS_PUSHED);
  185. }
  186. repeatbutton [class="Page"]
  187. {
  188. background: scrollbar;
  189. }
  190. repeatbutton [class="Page"][pressed]
  191. {
  192. background: buttonshadow;
  193. }
  194. </style>
  195. <style resid=itemlist>
  196. arpitem
  197. {
  198. padding: rect(1,1,1,3);
  199. }
  200. arpitem [selected]
  201. {
  202. background: buttonface;
  203. foreground: buttontext;
  204. bordercolor: buttontext;
  205. }
  206. arpitem [keyfocused][selected]
  207. {
  208. background: highlight;
  209. foreground: highlighttext;
  210. bordercolor: highlighttext;
  211. }
  212. element
  213. {
  214. padding: rect(1,1,1,1);
  215. }
  216. element [id=atom(title)][selected]
  217. {
  218. fontweight: extrabold;
  219. }
  220. button
  221. {
  222. padding: rect(1,1,1,1);
  223. contentalign: wrapright;
  224. }
  225. button [id=atom(supinfo)]
  226. {
  227. contentalign: wrapleft;
  228. }
  229. button [selected]
  230. {
  231. fontstyle: underline;
  232. cursor: hand;
  233. }
  234. button [id=atom(supinfo)][keyfocused]
  235. {
  236. contentalign: wrapleft|focusrect;
  237. }
  238. button [keyfocused]
  239. {
  240. fontstyle: none;
  241. contentalign: wrapright|focusrect;
  242. }
  243. </style>
  244. <style resid=itemaction>
  245. button
  246. {
  247. background: dfc(DFC_BUTTON, DFCS_BUTTONPUSH);
  248. foreground: buttontext;
  249. padding: rect(8,6,8,6);
  250. margin: rect(5,5,5,5);
  251. }
  252. button [pressed]
  253. {
  254. background: dfc(DFC_BUTTON, DFCS_BUTTONPUSH | DFCS_PUSHED);
  255. padding: rect(9,7,7,5);
  256. }
  257. button [keyfocused]
  258. {
  259. contentalign: focusrect;
  260. }
  261. </style>
  262. <style resid=helppopup>
  263. arphelp
  264. {
  265. accessible: true;
  266. accRole: 9;
  267. background: infobackground;
  268. foreground: infotext;
  269. padding: rect(6,6,6,6);
  270. fontsize: sysmetric(DSM_ICONFONTSIZE);
  271. fontweight: sysmetric(DSM_ICONFONTWEIGHT);
  272. fontstyle: sysmetric(DSM_ICONFONTSTYLE);
  273. fontface: sysmetricstr(DSMS_ICONFONTFACE);
  274. }
  275. element [id=atom(divider)]
  276. {
  277. background: infotext;
  278. }
  279. element [id=atom(rdivider)]
  280. {
  281. background: infotext;
  282. }
  283. element
  284. {
  285. background: argb(0,0,0,0);
  286. }
  287. element [id=atom(title)]
  288. {
  289. fontsize: sysmetric(DSM_CAPTIONFONTSIZE);
  290. fontweight: sysmetric(DSM_CAPTIONFONTWEIGHT);
  291. fontstyle: sysmetric(DSM_CAPTIONFONTSTYLE);
  292. fontface: sysmetricstr(DSMS_CAPTIONFONTFACE);
  293. }
  294. button [Enabled]
  295. {
  296. foreground: hotlight;
  297. fontstyle: underline;
  298. }
  299. button [MouseFocused]
  300. {
  301. cursor: hand;
  302. }
  303. button [class="winstyle"]
  304. {
  305. background: dfc(DFC_BUTTON, DFCS_BUTTONPUSH);
  306. foreground: buttontext;
  307. padding: rect(8,6,8,6);
  308. margin: rect(5,5,5,5);
  309. cursor: arrow;
  310. fontstyle: none;
  311. }
  312. button [class="winstyle"][pressed]
  313. {
  314. background: dfc(DFC_BUTTON, DFCS_BUTTONPUSH | DFCS_PUSHED);
  315. padding: rect(9,7,7,5);
  316. }
  317. button [keyfocused]
  318. {
  319. contentalign: focusrect;
  320. }
  321. ARPSupportItem
  322. {
  323. ContentAlign: WrapLeft;
  324. }
  325. </style>