Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor of ModernUI_Button #4

Open
mrfearless opened this issue Jul 19, 2018 · 0 comments
Open

Refactor of ModernUI_Button #4

mrfearless opened this issue Jul 19, 2018 · 0 comments

Comments

@mrfearless
Copy link
Owner

mrfearless commented Jul 19, 2018

Todo:

  • Remove some properties relating to notify icon and features, think this can be handled in another manner external to the ModernUI_Button (perhaps? - feedback to see if its useful or just adding bloat to the control)
  • Use the pre calculation function as was intended to speed up drawing of the button (or remove altogether and continue using existing way) - feedback required to see if its worth going down this route.
  • Possibly add gradient coloring to the background - but would require at least 4/5 additional properties to handle the 'to' gradient color, existing properties for backcolor can be used for the 'from' part of the gradient. Some logic like if @ButtonBackColorGradTo != 0 then use @ButtonBackColor as 'from' gradient color and @ButtonBackColorGradTo as 'to' gradient color.
  • Possibly add in rounded rect for borders, without using GDI+. Issues that might prevent this is corners outside of roundrect showing back color, or clipping showing black - this is always an issue, hence why it hasnt been implemented - SetRegion isnt anti-aliased so it can be noticable. Also the more extreme the rounding the more obvious via GDI the blockiness of corners. Lower values 2,3,4,5 for roundrect appear the best looking, but still not great.
  • Center image and bottom text still not tested - suspect it needs a good review and changes to properly have it working.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant