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

- Fix fallout from renaming KryptonPalette to KryptonCustomPaletteBase #47

Merged
merged 1 commit into from
Dec 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Applications/Source/Palette Designer/FormChromeRibbon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public FormChromeRibbon()
#endregion

#region Public
public KryptonPalette OverridePalette
public KryptonCustomPaletteBase OverridePalette
{
set
{
Expand Down
11 changes: 4 additions & 7 deletions Applications/Source/Palette Designer/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -955,10 +955,7 @@ private void MyOwnRecentPaletteFileGotClicked_Handler(object sender, EventArgs e
{
_recentlyUsedDocumentsManager.RemoveRecentFile(fileName);
}
else
{
return;
}
return;
}

try
Expand Down
2 changes: 1 addition & 1 deletion Applications/Source/Palette Designer/Pages/BAse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ public Base()

}

public void ApplyPalette(KryptonPalette palette) => kryptonPanel1.Palette = palette;
public void ApplyPalette(KryptonCustomPaletteBase palette) => kryptonPanel1.Palette = palette;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion Applications/Source/Palette Designer/Pages/MenuPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public MenuPage()

}

public void ApplyPalette(KryptonPalette palette)
public void ApplyPalette(KryptonCustomPaletteBase palette)
{
kcmEverything.Palette = palette;
kryptonPanel1.Palette = palette;
Expand Down
2 changes: 1 addition & 1 deletion Applications/Source/Palette Designer/Pages/ToolTipsPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public ToolTipsPage()
InitializeComponent();
}

public void ApplyPalette(KryptonPalette palette)
public void ApplyPalette(KryptonCustomPaletteBase palette)
{
kryptonPanel1.Palette = palette;

Expand Down
2 changes: 1 addition & 1 deletion Applications/Source/Palette Designer/Pages/TrackBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down