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.

275 lines
5.2 KiB

  1. //
  2. // cpstyle.uix
  3. //
  4. //
  5. // Banner stylesheet
  6. //
  7. <style resid=BannerSS>
  8. element [id=atom(banner)]
  9. {
  10. background: argb(0,0,0,0);
  11. }
  12. element [id=atom(iconsite)]
  13. {
  14. padding: rect(10rp, 7rp, 0, 0);
  15. }
  16. element [id=atom(icon)]
  17. {
  18. background: argb(0,0,0,0);
  19. }
  20. element [id=atom(header)]
  21. {
  22. background: BannerBkgnd;
  23. padding: rect(50rp, 1rp, 3rp, 1rp);
  24. }
  25. element [id=atom(title)]
  26. {
  27. foreground: BannerFontColor;
  28. fontface: BannerFont;
  29. fontsize: BannerFontSize;
  30. fontweight: BannerFontWeight;
  31. contentalign: middleleft;
  32. margin: rect(0, 4rp, 0, 4rp);
  33. }
  34. </style>
  35. //
  36. // Style for the 'directive' text used in both the category
  37. // choice and category views.
  38. //
  39. <style resid=DirectiveSS>
  40. element
  41. {
  42. background: argb(0,0,0,0);
  43. }
  44. element
  45. {
  46. foreground: DirectiveFontColor;
  47. fontface: DirectiveFont;
  48. fontsize: DirectiveFontSize;
  49. fontweight: DirectiveFontWeight;
  50. contentalign: wrapleft;
  51. margin: rect(0, 30rp, 0, 0);
  52. }
  53. </style>
  54. //
  55. // Style for the list of category choices.
  56. //
  57. <style resid=CategoryListSS>
  58. element
  59. {
  60. background: argb(0,0,0,0);
  61. }
  62. element [id=atom(view)]
  63. {
  64. background: CategoryListBkgnd;
  65. borderthickness: rect(0,0,0,1);
  66. bordercolor: white;
  67. }
  68. element [id=atom(separator)]
  69. {
  70. background: SeparatorColor;
  71. }
  72. element [id=atom(container)]
  73. {
  74. padding: rect(20rp,20rp,20rp,20rp);
  75. }
  76. element [id=atom(categorylist)]
  77. {
  78. margin: rect(0,12rp,0,0);
  79. }
  80. </style>
  81. //
  82. // Style for a single item in the category list.
  83. // This style is applied programmatically to each item
  84. // at item creation in cpview.cpp.
  85. //
  86. <style resid=CategoryListItemSS>
  87. linkelement
  88. {
  89. fontsize: CategoryLinkFontSize;
  90. fontface: CategoryLinkFont;
  91. foreground: CategoryLinkFontColor;
  92. fontweight: CategoryLinkFontWeight;
  93. background: argb(0,0,0,0);
  94. margin: rect(12rp,12rp,12rp,12rp);
  95. padding: rect(1,1,1,1); // For focus rect
  96. }
  97. linkelement [keyfocused]
  98. {
  99. contentalign: focusrect;
  100. foreground: CategoryLinkFontColorHot;
  101. }
  102. linkelement [mousefocused]
  103. {
  104. cursor: hand;
  105. foreground: CategoryLinkFontColorHot;
  106. fontstyle: CategoryLinkFontStyleHot;
  107. }
  108. element
  109. {
  110. background: argb(0,0,0,0);
  111. }
  112. element [id=atom(icon)]
  113. {
  114. contentalign: middleleft;
  115. }
  116. element [id=atom(title)]
  117. {
  118. contentalign: wrapleft;
  119. padding: rect(5rp,0,0,0);
  120. }
  121. </style>
  122. //
  123. // Style for the view of a given category.
  124. //
  125. <style resid=CategoryViewSS>
  126. element
  127. {
  128. background: argb(0,0,0,0);
  129. }
  130. element [id=atom(view)]
  131. {
  132. borderthickness: rect(0,0,0,1);
  133. bordercolor: white;
  134. background: CategoryViewBkgnd;
  135. }
  136. element [id=atom(separator)]
  137. {
  138. background: SeparatorColor;
  139. }
  140. element [id=atom(container)]
  141. {
  142. padding: rect(20rp,20rp,20rp,20rp);
  143. }
  144. element [id=atom(categorytasklist)]
  145. {
  146. margin: rect(0,12rp,0,0);
  147. }
  148. element [id=atom(appletlist)]
  149. {
  150. margin: rect(0,12rp,0,0);
  151. }
  152. </style>
  153. //
  154. // Style for a single item in a category's list of tasks.
  155. // This style is applied programmatically to each item
  156. // at item creation in cpview.cpp.
  157. //
  158. <style resid=CategoryTaskListItemSS>
  159. linkelement
  160. {
  161. fontsize: TaskLinkFontSize;
  162. fontface: TaskLinkFont;
  163. foreground: TaskLinkFontColor;
  164. fontweight: TaskLinkFontWeight;
  165. background: argb(0,0,0,0);
  166. margin: rect(12rp,12rp,12rp,12rp);
  167. padding: rect(1,1,1,1); // For focus rect
  168. cursor: hand;
  169. }
  170. linkelement [keyfocused]
  171. {
  172. contentalign: focusrect;
  173. foreground: TaskLinkFontColorHot;
  174. }
  175. linkelement [mousefocused]
  176. {
  177. cursor: hand;
  178. foreground: TaskLinkFontColorHot;
  179. fontstyle: TaskLinkFontStyleHot;
  180. }
  181. element
  182. {
  183. background: argb(0,0,0,0);
  184. }
  185. element [id=atom(icon)]
  186. {
  187. contentalign: middleleft;
  188. }
  189. element [id=atom(title)]
  190. {
  191. contentalign: wrapleft;
  192. padding: rect(5rp,0,0,0);
  193. }
  194. </style>
  195. //
  196. // This style is applied to the 'barricade' text displayed when
  197. // there are no tasks or CPL applets available for a particular
  198. // Control Panel category.
  199. //
  200. <style resid=BarricadeSS>
  201. element [id=atom(barricadetitle)]
  202. {
  203. fontface: BarricadeTitleFont;
  204. fontsize: BarricadeTitleFontSize;
  205. fontweight: BarricadeTitleFontWeight;
  206. foreground: BarricadeTitleFontColor;
  207. background: argb(0,0,0,0);
  208. padding: rect (10rp,20rp,10rp,0rp);
  209. contentalign: wrapleft;
  210. }
  211. element [id=atom(barricademsg)]
  212. {
  213. fontface: BarricadeMsgFont;
  214. fontsize: BarricadeMsgFontSize;
  215. fontweight: BarricadeMsgFontWeight;
  216. foreground: BarricadeMsgFontColor;
  217. background: argb(0,0,0,0);
  218. padding: rect (10rp,15rp,10rp,0rp);
  219. contentalign: wrapleft;
  220. }
  221. </style>