[Feature Request]: KryptonColorButton Modify Recent Colors
Currently there is no way to modify the recent colors of a KryptonColorButton. Recommend adding the ability to modify recent colors at runtime and also potentially in the designer.
Hi @sdreb3421
Had a look, I think you need to use SetCustomColors(Color[][] colors)
I have modified the example to show how to do this:
private int[] customColors;
private void ButtonShowFontDialog_Click(object sender, EventArgs e)
{
var kfd = new KryptonColorDialog {
AllowFullOpen = chkAllowFullOpen.Checked,
ShowHelp = chkShowHelp.Checked,
AnyColor = chkAnyColor.Checked,
FullOpen = chkFullOPen.Checked,
SolidColorOnly = chkSolidColorOnly.Checked,
CustomColors = customColors
};
if (kfd.ShowDialog(this) == DialogResult.OK)
{
KryptonMessageBox.Show(this, kfd.Color.ToString(), @"Color chosen is");
customColors = kfd.CustomColors;
}
}
oops, My mistake thought it was do with the Common control.
From inside the KryptonColorButton code, there is nothing that is passing the colors onto the KCD (As I showed above)
private void OnClickMoreColors(object sender, EventArgs e)
{
// Give user a chance to cancel showing the Krypton more colors dialog
CancelEventArgs cea = new();
OnMoreColors(cea);
// If not instructed to cancel then...
if (!cea.Cancel)
{
// Use a Krypton color dialog for the selection of custom colors
KryptonColorDialog cd = new()
{
Color = SelectedColor,
FullOpen = _allowFullOpen
};
// Only if user selected a value do we want to use it
if (cd.ShowDialog() == DialogResult.OK)
{
SelectedColor = cd.Color;
}
}
}
Could the KCD have an optional feature to add colours to the KryptonColorButton recent list?
SetCustomColors
Does this set the following:

Could the KCD have an optional feature to add colours to the
KryptonColorButtonrecent list?
I think the KCD should take the colours from the recent colours list.
Current behavior:
- It's not possible to add colors programmatically to the recent colors list (recommend implementing).
- Recent colors are not shown in the KCD custom color list (recommend implementing).
- The selected color in the KCD is added to the recent colors list (good).
- Colors selected in the Theme/Standard list are not added to recent colors (recommend implementing).
Similar to #776
@sdreb3421 I know this is "old" but I'm a little confused (See below):
Current behavior: * It's not possible to add colors programmatically to the recent colors list (recommend implementing).
Ok, this is what this FR is about
* Recent colors are not shown in the KCD custom color list (recommend implementing).
Do you mean __KCD__ialog, or just miss-typed and you mean __KCB__utton?
* Colors selected in the Theme/Standard list are not added to recent colors (recommend implementing).
Do you mean __KCB__utton?
This is done:

@sdreb3421
Please re-test using build >= .338
Hi @sdreb3421
Is this working now?
Yes thank you