2024-09-15 10:30:07 +00:00
|
|
|
using AIStudio.Settings;
|
|
|
|
|
|
2024-08-21 06:30:01 +00:00
|
|
|
namespace AIStudio.Layout;
|
|
|
|
|
|
2024-09-15 10:30:07 +00:00
|
|
|
public record NavBarItem(string Name, string Icon, string IconLightColor, string IconDarkColor, string Path, bool MatchAll)
|
|
|
|
|
{
|
2026-07-03 13:02:20 +00:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the CSS style that applies the current theme-aware icon color.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="settingsManager">The settings manager used to read the current theme.</param>
|
|
|
|
|
/// <returns>The CSS style for the nav item icon color.</returns>
|
2024-09-15 10:30:07 +00:00
|
|
|
public string SetColorStyle(SettingsManager settingsManager) => $"--custom-icon-color: {(settingsManager.IsDarkMode ? this.IconDarkColor : this.IconLightColor)};";
|
|
|
|
|
}
|