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.

332 lines
9.5 KiB

  1. //
  2. // Logon resource file
  3. //
  4. #include "..\resource.h"
  5. /*****************************************************
  6. * Element resources
  7. *****************************************************/
  8. <style resid=framess>
  9. element [id=atom(contentcontainer)]
  10. {
  11. //background: gradient(argb(255,90,125,222),argb(255,165,186,239),1);
  12. //background: rgb(90,125,222);
  13. background: rgb(99,134,222);
  14. content: rcbmp(IDB_BACKGROUND,0,0,297pt,102pt,1,0);
  15. }
  16. element [id=atom(spotlight)]
  17. {
  18. //content: rcbmp(IDB_SPOTLIGHT,0,0,698,292,1,0);
  19. content: rcbmp(IDB_SPOTLIGHT,0,0,0,0,1,0);
  20. contentalign: bottomleft;
  21. }
  22. button
  23. {
  24. background: rcbmp(IDB_SELECTION,6,#FF00FF,0,0,1,0);
  25. borderthickness: rect(8,8,0,8);
  26. }
  27. </style>
  28. <style resid=toppanelss>
  29. element [id=atom(toppanel)]
  30. {
  31. background: rgb(0,48,156);
  32. }
  33. element [id=atom(divider)]
  34. {
  35. background: gradient(argb(255,0,48,156), argb(255,198,219,247), argb(255,0,48,156), 5);
  36. }
  37. </style>
  38. <style resid=bottompanelss>
  39. element [id=atom(bottompanel)]
  40. {
  41. background: gradient(argb(255,57,52,173), argb(255,0,48,156), 0);
  42. fontface: rcstr(IDS_OPTIONSFONT);
  43. }
  44. element [id=atom(divider)]
  45. {
  46. background: gradient(argb(255,0,48,156), argb(255,249,158,41), argb(255,0,48,156), 5);
  47. }
  48. element [id=atom(options)]
  49. {
  50. padding: rect(20pt, 15pt, 20pt, 15pt);
  51. }
  52. button
  53. {
  54. fontsize: 14pt;
  55. foreground: white;
  56. cursor: hand;
  57. }
  58. button [mousefocused]
  59. {
  60. fontstyle: underline;
  61. }
  62. button [keyfocused]
  63. {
  64. fontstyle: underline;
  65. }
  66. element [id=atom(instruct)]
  67. {
  68. contentalign: wrapleft;
  69. padding: rect(10pt,0,0,0);
  70. fontsize: 9pt;
  71. foreground: white;
  72. }
  73. </style>
  74. <style resid=leftpanelss>
  75. element
  76. {
  77. animation: rectangle | s | mediumfast;
  78. fontface: rcstr(IDS_WELCOMEFONT);
  79. }
  80. element [id=atom(leftpanel)]
  81. {
  82. foreground: rgb(239,247,255);
  83. }
  84. element [id=atom(welcome)]
  85. {
  86. fontstyle: italic | shadow;
  87. fontsize: 32pt;
  88. fontweight: bold;
  89. padding: rect(26pt,21pt,0,0);
  90. }
  91. element[id=atom(help)]
  92. {
  93. fontsize: 14pt;
  94. padding: rect(61pt,51pt,0,0);
  95. contentalign: wrapright;
  96. }
  97. element[id=atom(flag)]
  98. {
  99. padding: rect(146pt,5pt,0,0);
  100. }
  101. </style>
  102. <style resid=rightpanelss>
  103. element [id=atom(divider)]
  104. {
  105. background: gradient(argb(0,136,165,233),argb(255,152,183,255),argb(0,136,165,233),6);
  106. }
  107. scrollbar [vertical]
  108. {
  109. layoutpos: nineright;
  110. background: rgb(115,146,231);
  111. }
  112. viewer
  113. {
  114. layoutpos: nineclient;
  115. }
  116. thumb
  117. {
  118. background: rcbmp(IDB_SBTHUMBV,6,#FF00FF,0,0,1,0);
  119. borderthickness: rect(3,3,3,3);
  120. }
  121. repeatbutton [id=atom(lineup)]
  122. {
  123. content: rcbmp(IDB_SBLINEUPV,3,-1,13pt,13pt,0,0);
  124. }
  125. repeatbutton [id=atom(linedown)]
  126. {
  127. content: rcbmp(IDB_SBLINEDOWNV,3,-1,13pt,13pt,0,0);
  128. }
  129. </style>
  130. <style resid=accountlistss>
  131. element
  132. {
  133. fontface: rcstr(IDS_ACCOUNTLISTFONT);
  134. }
  135. logonaccountlist
  136. {
  137. padding: rect(20pt,20pt,20pt,20pt);
  138. }
  139. logonaccount
  140. {
  141. cursor: hand;
  142. }
  143. logonaccount [logonstate=1] // Granted
  144. {
  145. animation: rectangle | s | mediumfast;
  146. cursor: arrow;
  147. }
  148. element [id=atom(userpane)]
  149. {
  150. padding: rect(6pt,6pt,14pt,6pt);
  151. borderthickness: rect(5,5,0,5);
  152. //bordercolor: rgb(99,134,222);
  153. bordercolor: argb(0,0,0,0);
  154. }
  155. element [id=atom(userpane)][selected]
  156. {
  157. background: rcbmp(IDB_SELECTION,4,#FF00FF,0,0,1,0);
  158. }
  159. element [id=atom(picture)]
  160. {
  161. borderthickness: rect(2,2,4,4);
  162. borderstyle: rounded;
  163. bordercolor: argb(255,203,214,234);
  164. margin: rect(0,0,5pt,0);
  165. }
  166. element [id=atom(picture)][selected]
  167. {
  168. borderthickness: rect(2,2,4,4);
  169. bordercolor: argb(255,255,194,58);
  170. }
  171. element [id=atom(picture)][mousewithin]
  172. {
  173. borderthickness: rect(3,3,5,5);
  174. bordercolor: argb(255,255,194,58);
  175. }
  176. element [id=atom(username)]
  177. {
  178. foreground: rgb(239,247,255);
  179. }
  180. button [class="status"]
  181. {
  182. foreground: rgb(0,48,156);
  183. fontsize: 8pt;
  184. fontweight: bold;
  185. }
  186. button [class="status"][mousefocused]
  187. {
  188. fontstyle: underline;
  189. }
  190. button [class="status"][keyfocused]
  191. {
  192. fontstyle: underline;
  193. }
  194. button [class="status"][selected]
  195. {
  196. foreground: rgb(239,247,255);
  197. fontsize: 8pt;
  198. fontweight: bold;
  199. }
  200. </style>
  201. <style resid=passwordpaness>
  202. element [id=atom(passwordpanelayer)]
  203. {
  204. padding: rect(52pt,0,0,0);
  205. }
  206. element [id=atom(instruct)]
  207. {
  208. fontsize: 8pt;
  209. foreground: white;
  210. padding: rect(2pt,0,0,2pt);
  211. }
  212. edit [id=atom(password)]
  213. {
  214. borderthickness: rect(2,2,5,5);
  215. borderstyle: rounded;
  216. bordercolor: argb(255,255,255,255);
  217. background: argb(255,255,255,255);
  218. passwordcharacter: 9679;
  219. fontface: "arial";
  220. fontsize: 16pt;
  221. }
  222. button [id=atom(go)]
  223. {
  224. margin: rect(4pt,0,0,0);
  225. content: rcbmp(IDB_GO,3,-1,20pt,20pt,0,0);
  226. }
  227. button [id=atom(go)][keyfocused]
  228. {
  229. content: rcbmp(IDB_GOKF,3,-1,20pt,20pt,0,0);
  230. }
  231. button [id=atom(info)]
  232. {
  233. margin: rect(10pt,0,0,0);
  234. content: rcbmp(IDB_INFO,3,-1,21pt,21pt,0,0);
  235. }
  236. button [id=atom(info)][keyfocused]
  237. {
  238. content: rcbmp(IDB_INFOKF,3,-1,21pt,21pt,0,0);
  239. }
  240. </style>
  241. //
  242. // Logon frame
  243. //
  244. <logonframe resid=main id=atom(frame) sheet=styleref(framess) layout=borderlayout()>
  245. <element id=atom(toppanel) sheet=styleref(toppanelss) layout=borderlayout() layoutpos=top height=48pt>
  246. <element id=atom(divider) layoutpos=bottom height=2pt/>
  247. </element>
  248. <element id=atom(bottompanel) sheet=styleref(bottompanelss) layout=borderlayout() layoutpos=bottom>
  249. <element id=atom(divider) layoutpos=top height=2pt/>
  250. <element id=atom(options) layout=borderlayout() layoutpos=client>
  251. <element layout=borderlayout() layoutpos=left>
  252. <button id=atom(power) layout=borderlayout() layoutpos=top>
  253. <element layoutpos=left content=rcbmp(IDB_POWER,3,-1,20pt,20pt,0,0)/>
  254. <element id=atom(label) layoutpos=client margin=rect(2pt,0,0,0)/>
  255. </button>
  256. <button id=atom(undock) layout=borderlayout() layoutpos=top margin=rect(0,2pt,0,0)>
  257. <element layoutpos=left content=rcbmp(IDB_UNDOCK,3,-1,20pt,20pt,0,0)/>
  258. <element id=atom(label) layoutpos=client margin=rect(2pt,0pt,0,0)/>
  259. </button>
  260. </element>
  261. <element id=atom(instruct) layoutpos=right content=rcstr(IDS_MANAGEACCOUNTS) width=250pt/>
  262. </element>
  263. </element>
  264. <element id=atom(contentcontainer) layout=filllayout() layoutpos=client>
  265. <element id=atom(spotlight) layout=flowlayout(1,3,2,3)>
  266. <element id=atom(leftpanel) sheet=styleref(leftpanelss) layout=filllayout() layoutpos=left width=285pt>
  267. <element layout=verticalflowlayout(0,0,0,2)>
  268. <element layout=filllayout()>
  269. <element id=atom(welcome) content=rcstr(IDS_WELCOME)/>
  270. <element id=atom(help) content=rcstr(IDS_WINDOWSNAME)/>
  271. <element id=atom(flag) content=rcbmp(IDB_FLAG,3,-1,34pt,29pt,0,0)/>
  272. </element>
  273. </element>
  274. </element>
  275. <element id=atom(rightpanel) sheet=styleref(rightpanelss) layout=borderlayout() layoutpos=left width=285pt>
  276. <element id=atom(divider) layoutpos=left width=1pt/>
  277. <scrollviewer id=atom(scroller) layoutpos=client xscrollable=false>
  278. <logonaccountlist id=atom(accountlist) sheet=styleref(accountlistss) layout=verticalflowlayout(0,3,3,2)/>
  279. </scrollviewer>
  280. </element>
  281. </element>
  282. </element>
  283. </logonframe>
  284. //
  285. // Logon Account
  286. //
  287. <logonaccount resid=accountitem id=atom(accountitem) layout=filllayout()>
  288. <element id=atom(userpanelayer) layout=borderlayout() height=62pt>
  289. <element id=atom(userpane) layout=borderlayout() layoutpos=top>
  290. <element id=atom(picture) layoutpos=left/>
  291. <element id=atom(username) layoutpos=top/>
  292. <button id=atom(status0) class="status" layoutpos=none/>
  293. <button id=atom(status1) class="status" layoutpos=none/>
  294. </element>
  295. </element>
  296. </logonaccount>
  297. //
  298. // Password pane
  299. //
  300. <element resid=passwordpanel id=atom(passwordpanelayer) sheet=styleref(passwordpaness) layout=borderlayout() height=62pt>
  301. <element layout=borderlayout() layoutpos=bottom>
  302. <edit id=atom(password) layoutpos=left width=125pt/>
  303. <button id=atom(go) layoutpos=left/>
  304. <button id=atom(info) layoutpos=left/>
  305. </element>
  306. <element id=atom(instruct) layoutpos=bottom content=rcstr(IDS_TYPEPASSWORD)/>
  307. </element>