modernaesthetics

Theme Base Changes

Jun 7th, 2018
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.92 KB | None | 0 0
  1. 1.5.4 Changes
  2. -Added ValueHex to Bloom structure. Now when changing colors you can get/set an HTML color, alpha must be changed manually though.
  3. -Added animation support, please handle logic in the overridable OnAnimation method.
  4. -Added the protected IsAnimated property to enabled/disable animation.
  5. -FormStartPosition should now be correctly applied when set to CenterScreen.
  6. -Added CreateRound method for creating rounded rectangles, returns a GraphicsPath.
  7. -Fixed a bug where the parent changing it's handle could cause resizing and movement to stop working. ShowInTaskbar for instance.
  8.  
  9.  
  10. 1.5.3 Changes
  11. -Changed the way the Colors property was storing each individual bloom, now it relies soley on the Customization code.
  12. -Added GetPen and GetBrush methods which function the same as GetColor.
  13. -Added DrawCorners overloads that supports an offset, similar to the DrawBorders method.
  14. -Added DrawPixel method which takes a color, x, and y parameters.
  15. -Cleaned up method overloads - DrawCorners, DrawBorders, DrawText, DrawImage, DrawGradient, Center.
  16. -Removed StringFormat from Measure method, it caused some things to align strangely.
  17. -Slightly optimized overloads so that (in most cases) they should no longer chain through more then 2 methods.
  18. -Cleaned up and added some regions for better readability.
  19. -DrawImage and DrawText will no longer center in the middle of the control while in ControlMode. Set the Header property to determine Y position.
  20. -Renamed MoveHeight to Header, since it also determines the alignment of DrawText and DrawImage when in ControlMode.
  21. -ThemeContainer, while in control mode now supports the Transparent property.
  22. -Added Offset method which will resize/reposition rectangles, sizes, and points based on an offset value.
  23. -Changed the Transparent bitmap buffer to use premultiplied ARGB for better performance.
  24. -Added DrawRadial method for drawing radial gradients and standard gradients in an ellipse.
  25. -Note: DrawRadial(blend, ..) while using G.SmoothingMode.AntiAlias will offset the shape by 1 pixel inwards.
  26.  
  27.  
  28. 1.5.2 Changes
  29. -Changed how the BackColor property was handled, strangely.
  30. -Moved some code over from OnHandleCreated to OnParentChanged to address some unforseen bugs.
  31. -OnCreation will now be called after OnParentChanged so you may always safely reference the parent.
  32. -Fixed a bug where a maximized theme would show resizing arrows.
  33. -Added SmartBounds property which will ensure the theme is always visible in MDI forms or the Windows desktop.
  34. -Added protected property IsParentMdi to determine if the parent is an MDI host.
  35. -ThemeContainer while not in ControlMode, now forces DockStyle.Fill while in design mode.
  36. -Setting the FormBorderStyle property to anything but None will now automatically set Movable and Sizable to false. These values are not locked.
  37. -Fixed a bug where in some cases mouse up would not change the current theme State (MouseState).
  38. -Changing the BackColor or TransparencyKey properties will now call the ColorHook.
  39. -Fixed a bug where setting the Minimum/Maximum size would not correctly prevent sizing.
  40. -Minimum and Maximum sizes will now proxy the parent controls properties.
  41. -Changed ThemeControl OnHandleCreated's scope to NotOverridable as intended. Use OnCreation instead.
  42. -DrawImage and DrawText will now center in the entire control space as opposed to the header space while in control mode.
  43. -Fixed a bug where the state of a control would get 'stuck' in MouseState.Over. (Thanks ki113d)
  44. -Moved BackColor into the Misc category along with all of the other properties, such as Colors.
  45. -Renamed SetColor 'color' parameter to 'value' to make conversion process to C# easier.
  46.  
  47.  
  48. 1.5.1 Changes
  49. -Corrected a spelling error with the Customization property. (Thanks xZ3ROxPROJ3CTx)
  50. -Added the overridable method 'OnCreation' which is called after OnHandleCreated.
  51. -Changed the default font to Verdana 8pt.
  52. -Setting the theme BackColor will now change it's parent's BackColor. This will make flickering less noticable.
  53. -Fixed a bug where moving over a child control with a resize cursor wouldn't invalidate the cursor to default.
  54. -Changed the scope of the MoveHeight and ImageSize properties to protected, they can no longer be accessed by the user.
  55. -Exposed the read-only IsParentForm property, which returns a boolean indicating whether or not the parent container is a form.
  56. -Converted the LockHeight and LockWidth methods to protected properties.
  57. -Added ControlMode property to the ThemeContainer class. This way you can make things such as group boxes and tab controls.
  58. -Appended 151 to the end of the ThemeContainer and ThemeControl class names, to represent the version. This will be the case in all future updates.
  59. -Changed various hidden properties to return their empty values instead of null. This helps when converting from VB.NET to C#.
  60. -Fixed bug where ImageSize property would return itself instead of it's private member.
  61.  
  62.  
  63. 1.5.0 Changes
  64. -Optimized mouse handling when resizing or moving the form.
  65. -Fixed bug where DrawIcon would render in incorrect dimensions causing distortion.
  66. -DrawIcon has been renamed to DrawImage.
  67. -Added Transparent property, allowing transparent background colors.
  68. -Added smart buffer where code will run much faster if the Transparent property is set to false.
  69. -Added Colors property and ColorHook to wire said colors to color, pen, brush, etc objects.
  70. -Added Custimization property that will generate a code representing the current colors for easy sharing.
  71. -Added LockWidth and LockHeight methods preventing the user from changing dimensions.
  72. -DrawBorders now only draws a single line but supports an offset parameter if you wish to draw additional lines.
  73. -Added many new method overloads to DrawText, DrawImage, DrawGradient, DrawBorders, and DrawCorners.
  74. -New MouseState '.Block' for disabled controls.
  75. -Added Center method which will center sizes and rectangles within eachother (tons of overloads).
  76. -Added Measure method to measure the current text or any specified text with the current font. Return a size object.
  77. -Some unused properties are now hidden to help with clutter in the properties pane. (ForeColor, BackgroundImage, -BackgroundImageLayout)
  78. -Changing the Font or MoveHeight properties will now cause invalidation, refreshing your control.
  79. -Added ImageSize property which will return Size.Empty if the Image is null or the image dimensions if otherwise.
  80. -Added MouseState to ThemeContainer.
  81. -Added Movable property to ThemeContainer.
  82. -ThemeContainer no longer forces FromBoderStyle.None, so the default windows title bar and borders can be used.
  83. -Predefined offsets are no longer applied to DrawText and DrawImage.
  84. -ThemeContainer will no longer swallow the OnMouseDown and OnSizeChanged calls.
  85. -Removed a conditional check on the SizeChanged method which should provide a minimal performance increase.
  86. -Changes have been made to fully support Visual Studio 2008.
  87. -Changed variable MouseState to State, and the enumerable 'State' to 'MouseState'. (confusing huh?)
Advertisement
Add Comment
Please, Sign In to add comment