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.

457 lines
9.5 KiB

  1. //
  2. // ARP resource file, "themed" 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: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_NORMAL);
  32. foreground: buttontext;
  33. padding: rect(20,6,20,6);
  34. }
  35. button [mousefocused]
  36. {
  37. background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_HOT);
  38. }
  39. button [pressed]
  40. {
  41. background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_PRESSED);
  42. padding: rect(21,7,19,5);
  43. }
  44. button [keyfocused]
  45. {
  46. contentalign: focusrect;
  47. }
  48. progress
  49. {
  50. borderthickness: rect(2,2,2,2);
  51. bordercolor: buttonface;
  52. borderstyle: sunken;
  53. padding: rect(1,1,1,1);
  54. margin: rect(0, 4, 0, 2);
  55. foreground: rcbmp(IDB_PROGRESS);
  56. }
  57. </style>
  58. <style resid=optionpane>
  59. ARPSelector
  60. {
  61. background: dtb(handlemap(TOOLBARHTHEME), 0, 0);
  62. foreground: buttontext;
  63. padding: rect(3,3,3,3);
  64. layoutpos: left;
  65. }
  66. element
  67. {
  68. background: argb(0,0,0,0);
  69. }
  70. button
  71. {
  72. background: dtb(handlemap(TOOLBARHTHEME), TP_BUTTON, TS_NORMAL);
  73. margin: rect(5,5,5,5);
  74. padding: rect(6,6,6,6);
  75. }
  76. button [keyfocused]
  77. {
  78. background: dtb(handlemap(TOOLBARHTHEME), TP_BUTTON, TS_HOT);
  79. }
  80. button [mousefocused]
  81. {
  82. background: dtb(handlemap(TOOLBARHTHEME), TP_BUTTON, TS_HOT);
  83. }
  84. button [pressed]
  85. {
  86. background: dtb(handlemap(TOOLBARHTHEME), TP_BUTTON, TS_PRESSED);
  87. padding: rect(7,7,5,5);
  88. }
  89. button [selected]
  90. {
  91. background: dtb(handlemap(TOOLBARHTHEME), TP_BUTTON, TS_CHECKED);
  92. padding: rect(7,7,5,5);
  93. }
  94. </style>
  95. <style resid=contentpane>
  96. element [id=atom(contentpane)]
  97. {
  98. padding: rect(10,10,10,10);
  99. }
  100. element [id=atom(installedlistcontainer)]
  101. {
  102. borderthickness: rect(1,1,1,1);
  103. bordercolor: buttonshadow;
  104. padding: rect(0,0,0,0);
  105. }
  106. element [id=atom(publishedlistcontainer)]
  107. {
  108. borderthickness: rect(1,1,1,1);
  109. bordercolor: buttonshadow;
  110. padding: rect(0,0,0,0);
  111. }
  112. element [id=atom(ocsetuplistcontainer)]
  113. {
  114. borderthickness: rect(1,1,1,1);
  115. bordercolor: buttonshadow;
  116. padding: rect(0,0,0,0);
  117. }
  118. element [id=atom(label)]
  119. {
  120. padding: rect(0,5,5,5);
  121. }
  122. element
  123. {
  124. padding: rect(2,2,2,2);
  125. }
  126. element [id=atom(sort)]
  127. {
  128. padding: rect(2,2,0,2);
  129. }
  130. button
  131. {
  132. background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_NORMAL);
  133. foreground: buttontext;
  134. padding: rect(8,6,8,6);
  135. margin: rect(5,5,5,5);
  136. }
  137. button [mousefocused]
  138. {
  139. background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_HOT);
  140. }
  141. button [pressed]
  142. {
  143. background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_PRESSED);
  144. padding: rect(9,7,7,5);
  145. }
  146. button [keyfocused]
  147. {
  148. contentalign: focusrect;
  149. }
  150. </style>
  151. <style resid=listscroller>
  152. scrollbar
  153. {
  154. layoutpos: ninebottom;
  155. }
  156. scrollbar [vertical]
  157. {
  158. layoutpos: nineright;
  159. }
  160. viewer
  161. {
  162. layoutpos: nineclient;
  163. }
  164. thumb
  165. {
  166. background: dtb(handlemap(SCROLLBARHTHEME), SBP_THUMBBTNVERT, SCRBS_NORMAL);
  167. content: dtb(handlemap(SCROLLBARHTHEME), SBP_GRIPPERVERT, SCRBS_NORMAL);
  168. contentalign: middlecenter;
  169. }
  170. thumb [mousefocused]
  171. {
  172. background: dtb(handlemap(SCROLLBARHTHEME), SBP_THUMBBTNVERT, SCRBS_HOT);
  173. content: dtb(handlemap(SCROLLBARHTHEME), SBP_GRIPPERVERT, SCRBS_HOT);
  174. }
  175. thumb [captured]
  176. {
  177. background: dtb(handlemap(SCROLLBARHTHEME), SBP_THUMBBTNVERT, SCRBS_PRESSED);
  178. content: dtb(handlemap(SCROLLBARHTHEME), SBP_GRIPPERVERT, SCRBS_PRESSED);
  179. }
  180. repeatbutton [id=atom(lineup)]
  181. {
  182. background: dtb(handlemap(SCROLLBARHTHEME), SBP_ARROWBTN, ABS_UPNORMAL);
  183. width: sysmetric(SM_CXVSCROLL);
  184. height: sysmetric(SM_CYVSCROLL);
  185. }
  186. repeatbutton [id=atom(lineup)][mousefocused]
  187. {
  188. background: dtb(handlemap(SCROLLBARHTHEME), SBP_ARROWBTN, ABS_UPHOT);
  189. }
  190. repeatbutton [id=atom(lineup)][pressed]
  191. {
  192. background: dtb(handlemap(SCROLLBARHTHEME), SBP_ARROWBTN, ABS_UPPRESSED);
  193. }
  194. repeatbutton [id=atom(linedown)]
  195. {
  196. background: dtb(handlemap(SCROLLBARHTHEME), SBP_ARROWBTN, ABS_DOWNNORMAL);
  197. width: sysmetric(SM_CXVSCROLL);
  198. height: sysmetric(SM_CYVSCROLL);
  199. }
  200. repeatbutton [id=atom(linedown)][mousefocused]
  201. {
  202. background: dtb(handlemap(SCROLLBARHTHEME), SBP_ARROWBTN, ABS_DOWNHOT);
  203. }
  204. repeatbutton [id=atom(linedown)][pressed]
  205. {
  206. background: dtb(handlemap(SCROLLBARHTHEME), SBP_ARROWBTN, ABS_DOWNPRESSED);
  207. }
  208. repeatbutton [id=atom(pageup)]
  209. {
  210. background: dtb(handlemap(SCROLLBARHTHEME), SBP_UPPERTRACKVERT, SCRBS_NORMAL);
  211. }
  212. repeatbutton [id=atom(pageup)][mousefocused]
  213. {
  214. background: dtb(handlemap(SCROLLBARHTHEME), SBP_UPPERTRACKVERT, SCRBS_HOT);
  215. }
  216. repeatbutton [id=atom(pageup)][pressed]
  217. {
  218. background: dtb(handlemap(SCROLLBARHTHEME), SBP_UPPERTRACKVERT, SCRBS_PRESSED);
  219. }
  220. repeatbutton [id=atom(pagedown)]
  221. {
  222. background: dtb(handlemap(SCROLLBARHTHEME), SBP_LOWERTRACKVERT, SCRBS_NORMAL);
  223. }
  224. repeatbutton [id=atom(pagedown)][mousefocused]
  225. {
  226. background: dtb(handlemap(SCROLLBARHTHEME), SBP_LOWERTRACKVERT, SCRBS_HOT);
  227. }
  228. repeatbutton [id=atom(pagedown)][pressed]
  229. {
  230. background: dtb(handlemap(SCROLLBARHTHEME), SBP_LOWERTRACKVERT, SCRBS_PRESSED);
  231. }
  232. </style>
  233. <style resid=itemlist>
  234. arpitem
  235. {
  236. padding: rect(1,1,1,3);
  237. }
  238. arpitem [selected]
  239. {
  240. background: buttonface;
  241. foreground: buttontext;
  242. bordercolor: buttontext;
  243. }
  244. arpitem [keyfocused][selected]
  245. {
  246. background: highlight;
  247. foreground: highlighttext;
  248. bordercolor: highlighttext;
  249. }
  250. element
  251. {
  252. padding: rect(1,1,1,1);
  253. }
  254. element [id=atom(title)][selected]
  255. {
  256. fontweight: extrabold;
  257. }
  258. button
  259. {
  260. padding: rect(1,1,1,1);
  261. contentalign: wrapright;
  262. }
  263. button [id=atom(supinfo)]
  264. {
  265. contentalign: wrapleft;
  266. }
  267. button [selected]
  268. {
  269. fontstyle: underline;
  270. cursor: hand;
  271. }
  272. button [id=atom(supinfo)][keyfocused]
  273. {
  274. contentalign: wrapleft|focusrect;
  275. }
  276. button [keyfocused]
  277. {
  278. fontstyle: none;
  279. contentalign: wrapright|focusrect;
  280. }
  281. </style>
  282. <style resid=itemaction>
  283. button
  284. {
  285. background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_NORMAL);
  286. foreground: buttontext;
  287. padding: rect(8,6,8,6);
  288. margin: rect(5,5,5,5);
  289. }
  290. button [mousefocused]
  291. {
  292. background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_HOT);
  293. }
  294. button [pressed]
  295. {
  296. background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_PRESSED);
  297. padding: rect(9,7,7,5);
  298. }
  299. button [keyfocused]
  300. {
  301. contentalign: focusrect;
  302. }
  303. </style>
  304. <style resid=helppopup>
  305. arphelp
  306. {
  307. accessible: true;
  308. accRole: 9;
  309. background: infobackground;
  310. foreground: infotext;
  311. padding: rect(6,6,6,6);
  312. fontsize: sysmetric(DSM_ICONFONTSIZE);
  313. fontweight: sysmetric(DSM_ICONFONTWEIGHT);
  314. fontstyle: sysmetric(DSM_ICONFONTSTYLE);
  315. fontface: sysmetricstr(DSMS_ICONFONTFACE);
  316. }
  317. element [id=atom(divider)]
  318. {
  319. background: infotext;
  320. }
  321. element [id=atom(rdivider)]
  322. {
  323. background: infotext;
  324. }
  325. element
  326. {
  327. background: argb(0,0,0,0);
  328. }
  329. element [id=atom(title)]
  330. {
  331. fontsize: sysmetric(DSM_CAPTIONFONTSIZE);
  332. fontweight: sysmetric(DSM_CAPTIONFONTWEIGHT);
  333. fontstyle: sysmetric(DSM_CAPTIONFONTSTYLE);
  334. fontface: sysmetricstr(DSMS_CAPTIONFONTFACE);
  335. }
  336. button [Enabled]
  337. {
  338. foreground: hotlight;
  339. fontstyle: underline;
  340. }
  341. button [MouseFocused]
  342. {
  343. cursor: hand;
  344. }
  345. button [class="winstyle"]
  346. {
  347. background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_NORMAL);
  348. foreground: buttontext;
  349. padding: rect(8,6,8,6);
  350. margin: rect(5,5,5,5);
  351. cursor: arrow;
  352. fontstyle: none;
  353. }
  354. button [class="winstyle"][mousefocused]
  355. {
  356. background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_HOT);
  357. }
  358. button [class="winstyle"][pressed]
  359. {
  360. background: dtb(handlemap(BUTTONHTHEME), BP_PUSHBUTTON, PBS_PRESSED);
  361. padding: rect(9,7,7,5);
  362. }
  363. button [keyfocused]
  364. {
  365. contentalign: focusrect;
  366. }
  367. ARPSupportItem
  368. {
  369. ContentAlign: WrapLeft;
  370. }
  371. </style>