Color Palette
Posted: Wed Mar 26, 2014 8:16 pm
A color palette made into a user control.
If your app needs a color palette, then no need for extensive coding and designing. Get this user control instead. It has the complete functionality of a color palette.
As most image-related apps require, the color palette has 2 color selections, primary and secondary. The secondary color is optional and can be disabled.
If the colors in the color palette are not varied enough, the user can click the Color Dialog button and choose from a variety of colors.
The Color Dialog Button is optional as well. Setting its property to False will disable it and it won't show on the control any more.
I chose the default colors in the palette according to the Paint software in Windows 8. I thought Microsoft has decades of experience and they must have given all the colors quite a thought before choosing those. And that's why I didn't waste my time reinventing the wheel.
If I ever make a future version, it might have the option to add colors from the Color Dialog into extra boxes below the default colors. There could be an option to save those colors on exit and reload the next time the app is launched. Those extra boxes would be optional so they could be disabled if needed.
I made this control for myself to use in my future projects but I'm sharing it so everyone else can benefit from it.
If your app needs a color palette, then no need for extensive coding and designing. Get this user control instead. It has the complete functionality of a color palette.
As most image-related apps require, the color palette has 2 color selections, primary and secondary. The secondary color is optional and can be disabled.
If the colors in the color palette are not varied enough, the user can click the Color Dialog button and choose from a variety of colors.
The Color Dialog Button is optional as well. Setting its property to False will disable it and it won't show on the control any more.
I chose the default colors in the palette according to the Paint software in Windows 8. I thought Microsoft has decades of experience and they must have given all the colors quite a thought before choosing those. And that's why I didn't waste my time reinventing the wheel.
If I ever make a future version, it might have the option to add colors from the Color Dialog into extra boxes below the default colors. There could be an option to save those colors on exit and reload the next time the app is launched. Those extra boxes would be optional so they could be disabled if needed.
I made this control for myself to use in my future projects but I'm sharing it so everyone else can benefit from it.