diff --git a/Applications/Source/Palette Designer/FormChromeRibbon.cs b/Applications/Source/Palette Designer/FormChromeRibbon.cs index 60b0899..109171d 100644 --- a/Applications/Source/Palette Designer/FormChromeRibbon.cs +++ b/Applications/Source/Palette Designer/FormChromeRibbon.cs @@ -24,7 +24,7 @@ public FormChromeRibbon() #endregion #region Public - public KryptonPalette OverridePalette + public KryptonCustomPaletteBase OverridePalette { set { diff --git a/Applications/Source/Palette Designer/MainForm.cs b/Applications/Source/Palette Designer/MainForm.cs index 656b4b8..b74a542 100644 --- a/Applications/Source/Palette Designer/MainForm.cs +++ b/Applications/Source/Palette Designer/MainForm.cs @@ -26,7 +26,7 @@ public partial class MainForm : KryptonForm private bool _dirty; private bool _loaded; private string _filename; - private KryptonPalette _palette; + private KryptonCustomPaletteBase _palette; private FormChromeTMS _chromeTMS; private FormChromeTMS _chromeTMS2; private FormChromeRibbon _chromeRibbon; @@ -306,7 +306,7 @@ private void Open() } // Create a fresh palette instance for loading into - var palette = new KryptonPalette(); + var palette = new KryptonCustomPaletteBase(); // Get the name of the file we imported from Cursor = Cursors.WaitCursor; @@ -444,7 +444,7 @@ private void CreateNewPalette() } // Create a fresh palette instance - _palette = new KryptonPalette(); + _palette = new KryptonCustomPaletteBase(); _chromeTMS.Palette = _palette; _chromeTMS2.Palette = _palette; _chromeRibbon.OverridePalette = _palette; @@ -955,10 +955,7 @@ private void MyOwnRecentPaletteFileGotClicked_Handler(object sender, EventArgs e { _recentlyUsedDocumentsManager.RemoveRecentFile(fileName); } - else - { - return; - } + return; } try diff --git a/Applications/Source/Palette Designer/Pages/BAse.cs b/Applications/Source/Palette Designer/Pages/BAse.cs index 91b0c3e..14dcffc 100644 --- a/Applications/Source/Palette Designer/Pages/BAse.cs +++ b/Applications/Source/Palette Designer/Pages/BAse.cs @@ -21,6 +21,6 @@ public Base() } - public void ApplyPalette(KryptonPalette palette) => kryptonPanel1.Palette = palette; + public void ApplyPalette(KryptonCustomPaletteBase palette) => kryptonPanel1.Palette = palette; } } diff --git a/Applications/Source/Palette Designer/Pages/InputControls.cs b/Applications/Source/Palette Designer/Pages/InputControls.cs index 04af26c..f42713b 100644 --- a/Applications/Source/Palette Designer/Pages/InputControls.cs +++ b/Applications/Source/Palette Designer/Pages/InputControls.cs @@ -75,7 +75,7 @@ public InputControls() KryptonNavigatorDesignInputControls_SelectedPageChanged(this, EventArgs.Empty); } - public void ApplyPalette(KryptonPalette palette) + public void ApplyPalette(KryptonCustomPaletteBase palette) { textBoxes.ForEach(control => control.Palette = palette); comboBoxes.ForEach(control => control.Palette = palette); diff --git a/Applications/Source/Palette Designer/Pages/MenuPage.cs b/Applications/Source/Palette Designer/Pages/MenuPage.cs index 5fae744..2e7b981 100644 --- a/Applications/Source/Palette Designer/Pages/MenuPage.cs +++ b/Applications/Source/Palette Designer/Pages/MenuPage.cs @@ -34,7 +34,7 @@ public MenuPage() } - public void ApplyPalette(KryptonPalette palette) + public void ApplyPalette(KryptonCustomPaletteBase palette) { kcmEverything.Palette = palette; kryptonPanel1.Palette = palette; diff --git a/Applications/Source/Palette Designer/Pages/ToolTipsPage.cs b/Applications/Source/Palette Designer/Pages/ToolTipsPage.cs index ce6b594..765feaa 100644 --- a/Applications/Source/Palette Designer/Pages/ToolTipsPage.cs +++ b/Applications/Source/Palette Designer/Pages/ToolTipsPage.cs @@ -20,7 +20,7 @@ public ToolTipsPage() InitializeComponent(); } - public void ApplyPalette(KryptonPalette palette) + public void ApplyPalette(KryptonCustomPaletteBase palette) { kryptonPanel1.Palette = palette; diff --git a/Applications/Source/Palette Designer/Pages/TrackBar.cs b/Applications/Source/Palette Designer/Pages/TrackBar.cs index 8a4327c..28f8176 100644 --- a/Applications/Source/Palette Designer/Pages/TrackBar.cs +++ b/Applications/Source/Palette Designer/Pages/TrackBar.cs @@ -63,7 +63,7 @@ public TrackBar() kryptonTrackBar10.SetFixedState(PaletteState.Disabled); } - public void ApplyPalette(KryptonPalette palette) + public void ApplyPalette(KryptonCustomPaletteBase palette) { tBars.ForEach(bar => bar.Palette = palette);