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.

103 lines
2.4 KiB

  1. //
  2. // Styles for a themed scrollbar
  3. //
  4. #define SCROLLBARHTHEME 1
  5. scrollbar
  6. {
  7. layoutpos: ninebottom;
  8. }
  9. scrollbar [vertical]
  10. {
  11. layoutpos: nineright;
  12. }
  13. viewer
  14. {
  15. layoutpos: nineclient;
  16. }
  17. thumb
  18. {
  19. background: dtb(handlemap(SCROLLBARHTHEME), SBP_THUMBBTNVERT, SCRBS_NORMAL);
  20. content: dtb(handlemap(SCROLLBARHTHEME), SBP_GRIPPERVERT, SCRBS_NORMAL);
  21. contentalign: middlecenter;
  22. }
  23. thumb [mousefocused]
  24. {
  25. background: dtb(handlemap(SCROLLBARHTHEME), SBP_THUMBBTNVERT, SCRBS_HOT);
  26. content: dtb(handlemap(SCROLLBARHTHEME), SBP_GRIPPERVERT, SCRBS_HOT);
  27. }
  28. thumb [captured]
  29. {
  30. background: dtb(handlemap(SCROLLBARHTHEME), SBP_THUMBBTNVERT, SCRBS_PRESSED);
  31. content: dtb(handlemap(SCROLLBARHTHEME), SBP_GRIPPERVERT, SCRBS_PRESSED);
  32. }
  33. repeatbutton [id=atom(lineup)]
  34. {
  35. background: dtb(handlemap(SCROLLBARHTHEME), SBP_ARROWBTN, ABS_UPNORMAL);
  36. width: sysmetric(SM_CXVSCROLL);
  37. height: sysmetric(SM_CYVSCROLL);
  38. }
  39. repeatbutton [id=atom(lineup)][mousefocused]
  40. {
  41. background: dtb(handlemap(SCROLLBARHTHEME), SBP_ARROWBTN, ABS_UPHOT);
  42. }
  43. repeatbutton [id=atom(lineup)][pressed]
  44. {
  45. background: dtb(handlemap(SCROLLBARHTHEME), SBP_ARROWBTN, ABS_UPPRESSED);
  46. }
  47. repeatbutton [id=atom(linedown)]
  48. {
  49. background: dtb(handlemap(SCROLLBARHTHEME), SBP_ARROWBTN, ABS_DOWNNORMAL);
  50. width: sysmetric(SM_CXVSCROLL);
  51. height: sysmetric(SM_CYVSCROLL);
  52. }
  53. repeatbutton [id=atom(linedown)][mousefocused]
  54. {
  55. background: dtb(handlemap(SCROLLBARHTHEME), SBP_ARROWBTN, ABS_DOWNHOT);
  56. }
  57. repeatbutton [id=atom(linedown)][pressed]
  58. {
  59. background: dtb(handlemap(SCROLLBARHTHEME), SBP_ARROWBTN, ABS_DOWNPRESSED);
  60. }
  61. repeatbutton [id=atom(pageup)]
  62. {
  63. background: dtb(handlemap(SCROLLBARHTHEME), SBP_UPPERTRACKVERT, SCRBS_NORMAL);
  64. }
  65. repeatbutton [id=atom(pageup)][mousefocused]
  66. {
  67. background: dtb(handlemap(SCROLLBARHTHEME), SBP_UPPERTRACKVERT, SCRBS_HOT);
  68. }
  69. repeatbutton [id=atom(pageup)][pressed]
  70. {
  71. background: dtb(handlemap(SCROLLBARHTHEME), SBP_UPPERTRACKVERT, SCRBS_PRESSED);
  72. }
  73. repeatbutton [id=atom(pagedown)]
  74. {
  75. background: dtb(handlemap(SCROLLBARHTHEME), SBP_LOWERTRACKVERT, SCRBS_NORMAL);
  76. }
  77. repeatbutton [id=atom(pagedown)][mousefocused]
  78. {
  79. background: dtb(handlemap(SCROLLBARHTHEME), SBP_LOWERTRACKVERT, SCRBS_HOT);
  80. }
  81. repeatbutton [id=atom(pagedown)][pressed]
  82. {
  83. background: dtb(handlemap(SCROLLBARHTHEME), SBP_LOWERTRACKVERT, SCRBS_PRESSED);
  84. }