Guest User

Untitled

a guest
Nov 22nd, 2011
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.43 KB | None | 0 0
  1. Imports System.Drawing.Drawing2D
  2.  
  3. '*IMPORTANT*: Theme Bases 1.5.1 and 1.5.3 needed *IMPORTANT*
  4.  
  5. 'Creator: killermanjaro65
  6. 'AIM: killermanjaro65
  7. 'Site: http://www.hackforums.net/member.php?action=profile&uid=672917
  8. 'Created: 11/15/11
  9. 'Version: 1.0.3
  10.  
  11. Class HackTheme
  12. Inherits ThemeContainer153
  13.  
  14. #Region "Hooks"
  15. Private _ShowIcon As Boolean
  16. Public Property ShowIcon() As Boolean
  17. Get
  18. Return _ShowIcon
  19. End Get
  20. Set(ByVal v As Boolean)
  21. _ShowIcon = v
  22. Invalidate()
  23. End Set
  24. End Property
  25. Private _Icon As Icon
  26. Public Property Icon() As Icon
  27. Get
  28. Return _Icon
  29. End Get
  30. Set(ByVal v As Icon)
  31. _Icon = v
  32. Invalidate()
  33. End Set
  34. End Property
  35. #End Region
  36.  
  37. Sub New()
  38. TransparencyKey = Color.Fuchsia
  39. SetColor("BackgroundColor", Color.FromArgb(51, 51, 51))
  40. SetColor("Gradient1", Color.FromArgb(79, 50, 77))
  41. SetColor("Gradient2", Color.FromArgb(99, 70, 97))
  42. End Sub
  43.  
  44. Protected Overrides Sub ColorHook()
  45. C1 = GetColor("BackgroundColor")
  46. C2 = GetColor("Gradient2")
  47. C3 = GetColor("Gradient1")
  48. End Sub
  49. Dim C1, C2, C3 As Color
  50. Dim C4 As New SolidBrush(Color.FromArgb(204, 204, 204))
  51.  
  52. Protected Overrides Sub PaintHook()
  53. G.Clear(C1)
  54.  
  55. DrawBorders(Pens.Black)
  56. DrawCorners(C1, ClientRectangle)
  57.  
  58. 'Top
  59.  
  60. Dim iconrec As New Rectangle(0, 0, Width - 1, 23)
  61.  
  62. DrawGradient(C3, C2, iconrec, 90.0F)
  63. Select Case _ShowIcon
  64. Case True
  65. If Not _Icon Is Nothing Then
  66. G.DrawIcon(_Icon, New Rectangle(5, 3, 20, 20))
  67. End If
  68. G.DrawString(Text, Font, C4, 26, 6)
  69. Case False
  70. G.DrawString(Text, Font, C4, 6, 6)
  71. End Select
  72.  
  73. G.DrawLine(Pens.Black, 0, 23, Width, 23)
  74.  
  75. End Sub
  76. End Class
  77.  
  78. Class HackButton
  79. Inherits ThemeControl153
  80.  
  81. Sub New()
  82. SetColor("BackgroundColor", Color.FromArgb(79, 50, 77))
  83. End Sub
  84.  
  85. Protected Overrides Sub ColorHook()
  86. C1 = GetColor("BackgroundColor")
  87. End Sub
  88. Dim C1 As Color
  89. Dim C2 As New SolidBrush(Color.FromArgb(204, 204, 204))
  90.  
  91. Protected Overrides Sub PaintHook()
  92. G.Clear(C1)
  93.  
  94. DrawBorders(Pens.Black)
  95. DrawCorners(C1, ClientRectangle)
  96.  
  97. DrawText(C2, HorizontalAlignment.Center, 0, 0)
  98. End Sub
  99. End Class
  100.  
  101. Class HackPanel
  102. Inherits ThemeContainer153
  103.  
  104. Sub New()
  105. TransparencyKey = Color.Fuchsia
  106. SetColor("BackgroundColor", Color.FromArgb(51, 51, 51))
  107. ControlMode = True
  108. Transparent = True
  109. End Sub
  110.  
  111. Protected Overrides Sub ColorHook()
  112. C1 = GetColor("BackgroundColor")
  113. End Sub
  114. Dim C1 As Color
  115.  
  116. Protected Overrides Sub PaintHook()
  117. G.Clear(C1)
  118.  
  119. DrawBorders(Pens.Black)
  120. DrawCorners(C1, ClientRectangle)
  121. End Sub
  122. End Class
  123.  
  124. Class HackTopButton
  125. Inherits ThemeControl153
  126.  
  127. Sub New()
  128. SetColor("BackgroundColor", Color.FromArgb(79, 50, 77))
  129. Size = New Size(19, 17)
  130. End Sub
  131.  
  132. Protected Overrides Sub ColorHook()
  133. C1 = GetColor("BackgroundColor")
  134. End Sub
  135. Dim C1 As Color
  136. Dim C2 As New SolidBrush(Color.FromArgb(204, 204, 204))
  137.  
  138. Protected Overrides Sub PaintHook()
  139. G.Clear(C1)
  140.  
  141. DrawBorders(Pens.Black)
  142. DrawCorners(C1, ClientRectangle)
  143.  
  144. DrawText(C2, HorizontalAlignment.Center, 0, 0)
  145. End Sub
  146. End Class
  147.  
  148. Class HackGroupBox
  149. Inherits ThemeContainer153
  150.  
  151. Sub New()
  152. SetColor("BackgroundColor", Color.FromArgb(51, 51, 51))
  153. SetColor("Gradient1", Color.FromArgb(79, 50, 77))
  154. SetColor("Gradient2", Color.FromArgb(99, 70, 97))
  155. TransparencyKey = Color.Fuchsia
  156. ControlMode = True
  157. Transparent = True
  158. Dock = DockStyle.None
  159. End Sub
  160.  
  161. Protected Overrides Sub ColorHook()
  162. C1 = GetColor("BackgroundColor")
  163. C2 = GetColor("Gradient2")
  164. C3 = GetColor("Gradient1")
  165. End Sub
  166. Dim C1, C2, C3 As Color
  167. Dim C4 As New SolidBrush(Color.FromArgb(204, 204, 204))
  168. Protected Overrides Sub PaintHook()
  169. G.Clear(C1)
  170.  
  171. G.DrawRectangle(Pens.Black, 0, 0, Width, 23)
  172. DrawGradient(C3, C2, 0, 0, Width, 23)
  173. DrawBorders(Pens.Black)
  174. DrawText(C4, HorizontalAlignment.Center, 0, 0)
  175. End Sub
  176. End Class
  177.  
  178. Class HackCheckBox
  179. Inherits ThemeControl151
  180. Private C1 As Color
  181. Private C2, C3 As Color
  182. Private P1 As Pen
  183. Private B1 As Brush
  184. Private B2 As Brush
  185. Private B3 As Brush
  186. Private _Checked As Boolean = False
  187. Public Property Checked() As Boolean
  188. Get
  189. Return _Checked
  190. End Get
  191. Set(ByVal checked As Boolean)
  192. _Checked = checked
  193. Invalidate()
  194. End Set
  195. End Property
  196. Sub New()
  197. Size = New Size(136, 16)
  198. End Sub
  199. Sub changeChecked() Handles Me.Click
  200. Select Case _Checked
  201. Case False
  202. _Checked = True
  203. Case True
  204. _Checked = False
  205. End Select
  206. End Sub
  207. Protected Overrides Sub ColorHook()
  208. C1 = Color.FromArgb(51, 51, 51)
  209. C2 = Color.FromArgb(99, 70, 97)
  210. C3 = Color.FromArgb(120, 0, 120)
  211. P1 = Pens.Black
  212. B1 = New SolidBrush(Color.FromArgb(15, Color.White))
  213. B2 = New SolidBrush(Color.FromArgb(204, 204, 204))
  214. B3 = New SolidBrush(Color.FromArgb(51, 51, 51))
  215. End Sub
  216.  
  217. Protected Overrides Sub PaintHook()
  218. G.Clear(C1)
  219.  
  220. G.FillRectangle(B3, 0, 0, 15, 15)
  221. G.DrawRectangle(P1, 0, 0, 15, 15)
  222.  
  223. If (_Checked = False) Then
  224. If (State = MouseState.Over) Then
  225. DrawGradient(C1, C1, 2, 2, 11, 11, 90S)
  226. Else
  227. DrawGradient(C1, C1, 2, 2, 11, 11, 90S)
  228. End If
  229. Else
  230. If (State = MouseState.Over) Then
  231. DrawGradient(C3, C3, 2, 2, 11, 11, 90S)
  232. Else
  233. DrawGradient(C3, C3, 2, 2, 11, 11, 90S)
  234. End If
  235.  
  236. End If
  237. G.FillRectangle(B1, 2, 2, 11, 11)
  238. G.DrawRectangle(P1, 2, 2, 11, 11)
  239. DrawText(B2, HorizontalAlignment.Left, 18, 0)
  240. End Sub
  241. End Class
  242.  
Advertisement
Add Comment
Please, Sign In to add comment