using AIStudio.Settings;
namespace AIStudio.Layout;
public record NavBarItem(string Name, string Icon, string IconLightColor, string IconDarkColor, string Path, bool MatchAll)
{
///
/// Gets the CSS style that applies the current theme-aware icon color.
///
/// The settings manager used to read the current theme.
/// The CSS style for the nav item icon color.
public string SetColorStyle(SettingsManager settingsManager) => $"--custom-icon-color: {(settingsManager.IsDarkMode ? this.IconDarkColor : this.IconLightColor)};";
}