Leaked source code of windows server 2003
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.

601 lines
12 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 [id=atom(closepane)]
  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. contentalign: middlecenter;
  34. padding: rect(20,6,20,6);
  35. }
  36. button [pressed]
  37. {
  38. background: dfc(DFC_BUTTON, DFCS_BUTTONPUSH | DFCS_PUSHED);
  39. padding: rect(21,7,19,5);
  40. }
  41. button [keyfocused]
  42. {
  43. contentalign: middlecenter | focusrect;
  44. }
  45. button [enabled=false]
  46. {
  47. background: dfc(DFC_BUTTON, DFCS_BUTTONPUSH | DFCS_INACTIVE);
  48. foreground: graytext;
  49. fontstyle: shadow;
  50. }
  51. progress
  52. {
  53. borderthickness: rect(2,2,2,2);
  54. bordercolor: buttonface;
  55. borderstyle: sunken;
  56. padding: rect(1,1,1,1);
  57. margin: rect(0, 4, 0, 2);
  58. foreground: rcbmp(IDB_PROGRESS);
  59. }
  60. </style>
  61. <style resid=optionpane>
  62. ARPSelector
  63. {
  64. background: appworkspace;
  65. foreground: buttontext;
  66. padding: rect(3,3,3,3);
  67. }
  68. element
  69. {
  70. background: argb(0,0,0,0);
  71. }
  72. button
  73. {
  74. bordercolor: appworkspace;
  75. borderthickness: rect(2,2,2,2);
  76. foreground: captiontext;
  77. margin: rect(5,5,5,5);
  78. padding: rect(2,2,2,4);
  79. }
  80. button [keyfocused]
  81. {
  82. borderstyle: raised;
  83. bordercolor: threedlightshadow;
  84. }
  85. button [mousefocused]
  86. {
  87. borderstyle: raised;
  88. bordercolor: threedlightshadow;
  89. }
  90. button [pressed]
  91. {
  92. borderstyle: sunken;
  93. padding: rect(3,3,1,3);
  94. bordercolor: threedlightshadow;
  95. }
  96. button [selected]
  97. {
  98. borderstyle: sunken;
  99. padding: rect(3,3,1,3);
  100. bordercolor: threedlightshadow;
  101. }
  102. </style>
  103. <style resid=contentpane>
  104. element [id=atom(contentpane)]
  105. {
  106. padding: rect(10,10,10,10);
  107. }
  108. element [id=atom(installedlistcontainer)]
  109. {
  110. borderthickness: rect(1,1,1,1);
  111. bordercolor: buttonshadow;
  112. padding: rect(0,0,0,0);
  113. }
  114. element [id=atom(publishedlistcontainer)]
  115. {
  116. borderthickness: rect(1,1,1,1);
  117. bordercolor: buttonshadow;
  118. padding: rect(0,0,0,0);
  119. }
  120. element [id=atom(ocsetuplistcontainer)]
  121. {
  122. borderthickness: rect(1,1,1,1);
  123. bordercolor: buttonshadow;
  124. padding: rect(0,0,0,0);
  125. }
  126. element [id=atom(label)]
  127. {
  128. padding: rect(0,5,5,5);
  129. }
  130. element
  131. {
  132. padding: rect(2,2,2,2);
  133. }
  134. element [id=atom(sort)]
  135. {
  136. padding: rect(2,2,0,2);
  137. }
  138. button
  139. {
  140. background: dfc(DFC_BUTTON, DFCS_BUTTONPUSH);
  141. foreground: buttontext;
  142. padding: rect(8,6,8,6);
  143. margin: rect(5,5,5,5);
  144. }
  145. button [pressed]
  146. {
  147. background: dfc(DFC_BUTTON, DFCS_BUTTONPUSH | DFCS_PUSHED);
  148. padding: rect(9,7,7,5);
  149. }
  150. button [keyfocused]
  151. {
  152. contentalign: focusrect;
  153. }
  154. </style>
  155. <style resid=listscroller>
  156. scrollbar
  157. {
  158. layoutpos: ninebottom;
  159. }
  160. scrollbar [vertical]
  161. {
  162. layoutpos: nineright;
  163. }
  164. viewer
  165. {
  166. layoutpos: nineclient;
  167. }
  168. thumb
  169. {
  170. background: dfc(DFC_BUTTON, DFCS_BUTTONPUSH);
  171. }
  172. repeatbutton [id=atom(lineup)]
  173. {
  174. background: dfc(DFC_SCROLL, DFCS_SCROLLUP);
  175. width: sysmetric(SM_CXVSCROLL);
  176. height: sysmetric(SM_CYVSCROLL);
  177. }
  178. repeatbutton [id=atom(lineup)][pressed]
  179. {
  180. background: dfc(DFC_SCROLL, DFCS_SCROLLUP | DFCS_PUSHED);
  181. }
  182. repeatbutton [id=atom(linedown)]
  183. {
  184. background: dfc(DFC_SCROLL, DFCS_SCROLLDOWN);
  185. width: sysmetric(SM_CXVSCROLL);
  186. height: sysmetric(SM_CYVSCROLL);
  187. }
  188. repeatbutton [id=atom(linedown)][pressed]
  189. {
  190. background: dfc(DFC_SCROLL, DFCS_SCROLLDOWN | DFCS_PUSHED);
  191. }
  192. repeatbutton [class="Page"]
  193. {
  194. background: scrollbar;
  195. }
  196. repeatbutton [class="Page"][pressed]
  197. {
  198. background: buttonshadow;
  199. }
  200. scrollviewer[id=atom(clientscroller)]
  201. {
  202. borderstyle: solid;
  203. borderthickness: rect(1,1,1,1);
  204. bordercolor: buttonshadow;
  205. margin: rect(0,10rp,0,0);
  206. }
  207. </style>
  208. <style resid=itemlist>
  209. arpitem
  210. {
  211. padding: rect(1,1,1,3);
  212. }
  213. arpitem [selected]
  214. {
  215. background: buttonface;
  216. foreground: buttontext;
  217. bordercolor: buttontext;
  218. }
  219. arpitem [keyfocused][selected]
  220. {
  221. background: highlight;
  222. foreground: highlighttext;
  223. bordercolor: highlighttext;
  224. }
  225. element
  226. {
  227. padding: rect(1,1,1,1);
  228. }
  229. element [id=atom(title)][selected]
  230. {
  231. fontweight: extrabold;
  232. }
  233. button
  234. {
  235. padding: rect(1,1,1,1);
  236. contentalign: wrapright;
  237. }
  238. button [id=atom(supinfo)]
  239. {
  240. contentalign: wrapleft;
  241. }
  242. button [selected]
  243. {
  244. fontstyle: underline;
  245. cursor: hand;
  246. }
  247. button [id=atom(supinfo)][keyfocused]
  248. {
  249. contentalign: wrapleft|focusrect;
  250. }
  251. button [keyfocused]
  252. {
  253. fontstyle: none;
  254. contentalign: wrapright|focusrect;
  255. }
  256. </style>
  257. <style resid=itemaction>
  258. button
  259. {
  260. background: dfc(DFC_BUTTON, DFCS_BUTTONPUSH);
  261. foreground: buttontext;
  262. padding: rect(8,6,8,6);
  263. margin: rect(5,5,5,5);
  264. }
  265. button [pressed]
  266. {
  267. background: dfc(DFC_BUTTON, DFCS_BUTTONPUSH | DFCS_PUSHED);
  268. padding: rect(9,7,7,5);
  269. }
  270. button [keyfocused]
  271. {
  272. contentalign: focusrect;
  273. }
  274. </style>
  275. <style resid=helppopup>
  276. arphelp
  277. {
  278. accessible: true;
  279. accRole: 9;
  280. background: infobackground;
  281. foreground: infotext;
  282. padding: rect(6,6,6,6);
  283. fontsize: sysmetric(DSM_ICONFONTSIZE);
  284. fontweight: sysmetric(DSM_ICONFONTWEIGHT);
  285. fontstyle: sysmetric(DSM_ICONFONTSTYLE);
  286. fontface: sysmetricstr(DSMS_ICONFONTFACE);
  287. }
  288. element [id=atom(divider)]
  289. {
  290. background: infotext;
  291. }
  292. element [id=atom(rdivider)]
  293. {
  294. background: infotext;
  295. }
  296. element
  297. {
  298. background: argb(0,0,0,0);
  299. }
  300. element [id=atom(title)]
  301. {
  302. fontsize: sysmetric(DSM_CAPTIONFONTSIZE);
  303. fontweight: sysmetric(DSM_CAPTIONFONTWEIGHT);
  304. fontstyle: sysmetric(DSM_CAPTIONFONTSTYLE);
  305. fontface: sysmetricstr(DSMS_CAPTIONFONTFACE);
  306. }
  307. button [Enabled]
  308. {
  309. foreground: hotlight;
  310. fontstyle: underline;
  311. }
  312. button [MouseFocused]
  313. {
  314. cursor: hand;
  315. }
  316. button [class="winstyle"]
  317. {
  318. background: dfc(DFC_BUTTON, DFCS_BUTTONPUSH);
  319. foreground: buttontext;
  320. padding: rect(8,6,8,6);
  321. margin: rect(5,5,5,5);
  322. cursor: arrow;
  323. fontstyle: none;
  324. }
  325. button [class="winstyle"][pressed]
  326. {
  327. background: dfc(DFC_BUTTON, DFCS_BUTTONPUSH | DFCS_PUSHED);
  328. padding: rect(9,7,7,5);
  329. }
  330. button [keyfocused]
  331. {
  332. contentalign: focusrect;
  333. }
  334. ARPSupportItem
  335. {
  336. ContentAlign: WrapLeft;
  337. }
  338. </style>
  339. <style resid=pickapppane>
  340. // top padding makes the baseline of the element line up with the combobox
  341. element [class="clientcaption"]
  342. {
  343. padding: rect(0,4rp,8rp,0);
  344. }
  345. element [class="clientcaption"][id=atom(rowheader)]
  346. {
  347. fontweight: bold;
  348. }
  349. // top padding makes the baseline of the element line up with the combobox
  350. // left padding does the same for horizontal positioning
  351. element [class="clientstatic"]
  352. {
  353. padding: rect(3rp,4rp,0,0);
  354. }
  355. // Separates clients in the OEM/MS/NonMS section
  356. element [class="interrowspacer"]
  357. {
  358. height: 6rp;
  359. }
  360. // Provides spacing around the introductory blurb text for each section
  361. element [class="blurbtext"]
  362. {
  363. padding:rect(0,8rp,8rp,8rp);
  364. }
  365. // Provides spacing at the bottom of the section
  366. // (Do not give any top padding or that will put the white gradient
  367. // in the wrong place.)
  368. element [id=atom(clipped)]
  369. {
  370. padding:rect(0,0,0,4rp);
  371. }
  372. element [id=atom(radiobutton)]
  373. {
  374. width: sysmetric(SM_CXMENUCHECK);
  375. height: sysmetric(SM_CYMENUCHECK);
  376. margin: rect(0,6rp,8rp,6rp);
  377. layoutpos: left;
  378. background: dfc(DFC_BUTTON, DFCS_BUTTONRADIO);
  379. }
  380. element [id=atom(radiobutton)][selected]
  381. {
  382. background: dfc(DFC_BUTTON, DFCS_BUTTONRADIO | DFCS_CHECKED);
  383. }
  384. element [id=atom(radiotext)]
  385. {
  386. layoutpos: left;
  387. contentalign: middleleft;
  388. }
  389. // The purpose of the "radioindent" class is to get the text inside
  390. // each expando to line up exactly with the text next to the radio button
  391. // in the header.
  392. element [class="radioindent"]
  393. {
  394. layoutpos: left;
  395. padding: rect(8rp,0,0,0);
  396. }
  397. element [id=atom(checkbutton)]
  398. {
  399. width: sysmetric(SM_CXMENUCHECK);
  400. height: sysmetric(SM_CYMENUCHECK);
  401. margin: rect(0,6rp,8rp,6rp);
  402. layoutpos: left;
  403. background: dfc(DFC_BUTTON, DFCS_BUTTONCHECK);
  404. }
  405. element [id=atom(checkbutton)][selected]
  406. {
  407. background: dfc(DFC_BUTTON, DFCS_BUTTONCHECK | DFCS_CHECKED);
  408. }
  409. element [id=atom(checkbutton)][enabled=false]
  410. {
  411. background: dfc(DFC_BUTTON, DFCS_BUTTONCHECK | DFCS_INACTIVE);
  412. }
  413. element [id=atom(checkbutton)][selected][enabled=false]
  414. {
  415. background: dfc(DFC_BUTTON, DFCS_BUTTONCHECK | DFCS_CHECKED | DFCS_INACTIVE);
  416. }
  417. element [id=atom(checktext)]
  418. {
  419. layoutpos: client;
  420. contentalign: wrapleft;
  421. }
  422. element [id=atom(checktext)][enabled=false]
  423. {
  424. foreground: graytext;
  425. }
  426. autobutton [id=atom(arrow)]
  427. {
  428. layoutpos: right;
  429. content: rcbmp(IDB_DOWN,3,-1,0,0,0,0,handlemap(SHELLSTYLEHINSTANCE));
  430. }
  431. autobutton [id=atom(arrow)][selected]
  432. {
  433. content: rcbmp(IDB_UP,3,-1,0,0,0,0,handlemap(SHELLSTYLEHINSTANCE));
  434. }
  435. // need to add this padding to avoid colliding with the focus rect
  436. autobutton [class="padded"]
  437. {
  438. padding: rect(8rp,2rp,8rp,2rp);
  439. }
  440. button [keyfocused]
  441. {
  442. contentalign: focusrect;
  443. }
  444. autobutton [keyfocused]
  445. {
  446. contentalign: focusrect;
  447. }
  448. expando
  449. {
  450. animation: rectanglev | s | fast;
  451. }
  452. expando [selected]
  453. {
  454. background: buttonface;
  455. foreground: buttontext;
  456. }
  457. clipper
  458. {
  459. alpha: 0;
  460. animation: alpha | s | fast;
  461. }
  462. clipper [expanded]
  463. {
  464. alpha: 255;
  465. }
  466. // This controls the spacing of the rows in the custom client section
  467. element [class="customclientitem"]
  468. {
  469. padding: rect(20rp,6rp,8rp,6rp);
  470. }
  471. gradientline
  472. {
  473. animation: rectanglev | s | fast;
  474. height: 1rp;
  475. }
  476. gradientline [class="intercategory"]
  477. {
  478. foreground: highlight;
  479. }
  480. gradientline [class="interheader"]
  481. {
  482. foreground: buttonface;
  483. margin: rect(0,1rp,0,1rp);
  484. }
  485. gradientline [class="innerheader"]
  486. {
  487. foreground: buttonface;
  488. }
  489. gradientline [class="innerheader"][selected]
  490. {
  491. foreground: window;
  492. }
  493. </style>