Welcome to the Krypton Palettes Composer Homepage!

About this project

Krypton Palettes Composer is a small tool to compile custom Krypton palettes into a single assembly and provide an easy access.
It's developed in C#.

Topics:
composer.jpg

Krypton Toolkit is a free component suite developed by Phil Wright. http://www.componentfactory.com/

News

5th January, 2009 - Initial release available

The first release is successfully uploaded. Please feel free for any feedback.

Usage

All palettes are available by static properties at the PaletteManager class. You can get a list of all available palettes by the Items property which provides a DisplayName and the name of the palette. I've used the lazy loading pattern to support a fast startup. If you wish to load all palettes at once use the PreloadPalettes method. To get a palette by name use the GetPalette method.

Be aware of compose the right version of xml file. To get an overview which version the custom palette is using, I've added a version column to the overview list.

Examples

Example code iterate through available palettes:
foreach (PaletteItem item in PaletteManager.Items)
{
    ToolStripItem menuItem = skinsToolStripMenuItem.DropDownItems.Add(item.DisplayName, null, new EventHandler(setPalette));
    menuItem.Tag = item.Name;
}

private void setPalette(object sender, EventArgs e)
{
    ToolStripItem menuItem = sender as ToolStripItem;
    kryptonManager.GlobalPalette = PaletteManager.GetPalette(menuItem.Tag as string);
}

Palettes are accessible by static properties:
kryptonManager.GlobalPalette = PaletteManager.Chrome;

Last edited Jan 5 at 8:22 PM by twenzel, version 26

 

Want to leave feedback?
Please use Discussions or Reviews instead.

Updating...
© 2006-2009 Microsoft | About CodePlex | Privacy Statement | Terms of Use | Code of Conduct | Version 2009.6.1.15196