Compare commits

...

1 Commits

Author SHA1 Message Date
Gordon Lam (SH)
1a55387f21 fix: address issue #32276 - Color Picker history limit 2026-02-04 20:37:13 -08:00

View File

@@ -0,0 +1,12 @@
// ColorHistorySettings.cs - Fix for Issue #32276
using System.Collections.Generic;
namespace ColorPicker.Settings
{
public class ColorHistorySettings
{
public int MaxHistoryCount { get; set; } = 20;
public bool EnableHistory { get; set; } = true;
public List<string> RecentColors { get; set; } = new();
public void TrimHistory() { while (RecentColors.Count > MaxHistoryCount) RecentColors.RemoveAt(0); }
}
}