SoulZeh

c# version

Sep 6th, 2011
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.44 KB | None | 0 0
  1. using Microsoft.VisualBasic;
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.Data;
  6. using System.Diagnostics;
  7. //This theme has been created by hav0c1995 (www.hackforums.net)
  8. //Credits goes to me for coding it, Aeonhack for his themebase and xZ3ROxPROJ3CTx for the top-button
  9. //Give proper credits wherever you use it
  10.  
  11. class v2BlackTheme : ThemeContainer151
  12. {
  13.  
  14. public v2BlackTheme()
  15. {
  16. Font = new Font("Verdana", 8, FontStyle.Regular);
  17. SetColor("BackColor", 71, 71, 71);
  18. SetColor("BorderColor", 44, 44, 44);
  19. SetColor("PanelBorder", 26, 26, 26);
  20. SetColor("PanelBackColor", 50, 51, 51);
  21. SetColor("SecondBorderColor", 90, 90, 90);
  22. SetColor("TextColor", 255, 255, 255);
  23. }
  24.  
  25. protected override void ColorHook()
  26. {
  27. C1 = GetColor("BackColor");
  28. P1 = new Pen(GetColor("BorderColor"));
  29. P2 = new Pen(GetColor("PanelBorder"));
  30. P3 = new Pen(GetColor("SecondBorderColor"));
  31. SB1 = new SolidBrush(GetColor("PanelBackColor"));
  32. SB2 = new SolidBrush(GetColor("TextColor"));
  33. }
  34.  
  35. private Color C1;
  36. private Pen P1;
  37. private Pen P2;
  38. private Pen P3;
  39. private SolidBrush SB1;
  40.  
  41. private SolidBrush SB2;
  42. protected override void PaintHook()
  43. {
  44. G.Clear(C1);
  45. G.FillRectangle(SB1, 10, 30, Width - 21, Height - 41);
  46. G.DrawRectangle(P2, 10, 30, Width - 21, Height - 41);
  47. DrawText(SB2, HorizontalAlignment.Left, 8, 5);
  48. DrawBorders(P1);
  49. DrawBorders(P3, 1, 1, Width - 2, Height - 2);
  50. }
  51. }
  52.  
  53. class v2BlackButton : ThemeControl151
  54. {
  55.  
  56. public v2BlackButton()
  57. {
  58. Blend.Positions = new float[] {
  59. 0,
  60. 1
  61. };
  62. Blend2.Positions = new float[] {
  63. 0,
  64. 1
  65. };
  66. SetColor("Blend1", 85, 83, 83);
  67. SetColor("Blend2", 62, 64, 62);
  68. SetColor("Border1", 120, 120, 120);
  69. SetColor("Border2", 0, 0, 0);
  70. SetColor("ButtonText", 240, 240, 240);
  71. }
  72.  
  73. protected override void ColorHook()
  74. {
  75. P1 = new Pen(GetColor("Border1"));
  76. P2 = new Pen(GetColor("Border2"));
  77. SB1 = new SolidBrush(GetColor("ButtonText"));
  78. Blend.Colors = new Color[] {
  79. GetColor("Blend1"),
  80. GetColor("Blend2")
  81. };
  82. Blend2.Colors = new Color[] {
  83. GetColor("Blend2"),
  84. GetColor("Blend1")
  85. };
  86. }
  87.  
  88. private Blend;
  89. private ColorBlend Blend2 = new ColorBlend();
  90. private Pen P1;
  91. private Pen P2;
  92.  
  93. private SolidBrush SB1;
  94. protected override void PaintHook()
  95. {
  96. DrawGradient(Blend, 2, 2, Width - 4, Height - 4);
  97. if (State == MouseState.Down) {
  98. DrawGradient(Blend2, 2, 2, Width - 4, Height - 4);
  99. }
  100. DrawText(SB1, HorizontalAlignment.Center, 0, 0);
  101. DrawBorders(P2);
  102. DrawBorders(P1, 1, 1, Width - 2, Height - 2);
  103. }
  104. }
  105.  
  106. class v2BlackTopButton : ThemeControl151
  107. {
  108.  
  109. public v2BlackTopButton()
  110. {
  111. SetColor("BackColor", 71, 71, 71);
  112. SetColor("BackColor2", 50, 51, 51);
  113. SetColor("BorderColor", 150, 150, 150);
  114. Size = new Size(14, 7);
  115. }
  116.  
  117. protected override void ColorHook()
  118. {
  119. C1 = GetColor("BackColor");
  120. C2 = GetColor("BackColor2");
  121. P1 = new Pen(GetColor("BorderColor"));
  122. }
  123.  
  124. private Color C1;
  125. private Color C2;
  126.  
  127. private Pen P1;
  128. protected override void PaintHook()
  129. {
  130. DrawGradient(C1, C2, 0, 0, Width, Height);
  131. if (State == MouseState.Down) {
  132. DrawGradient(C2, C1, 0, 0, Width, Height);
  133. }
  134. DrawBorders(P1);
  135. DrawCorners(C1);
  136. }
  137. }
  138.  
  139. class v2BlackLabel : Label
  140. {
  141.  
  142. public v2BlackLabel()
  143. {
  144. Font = new Font("Verdana", 8, FontStyle.Regular);
  145. ForeColor = Color.FromArgb(220, 220, 220);
  146. BackColor = Color.Transparent;
  147. }
  148. }
Advertisement
Add Comment
Please, Sign In to add comment