csharpdeeb25a2 | 1 | namespace CascadeIDE.Models; |
| 2 | |
| 3 | /// <summary>Значения <see cref="IntercomSettings.FeedMetrics"/> (TOML <c>[intercom] feed_metrics</c>).</summary> |
| 4 | public static class IntercomFeedMetricsModes |
| 5 | { |
| 6 | public const string Comfortable = "comfortable"; |
| 7 | public const string Compact = "compact"; |
| 8 | |
| 9 | public static readonly IReadOnlyList<string> All = [Comfortable, Compact]; |
| 10 | |
| 11 | public static bool IsComfortable(string? value) => |
| 12 | !string.Equals(value?.Trim(), Compact, StringComparison.OrdinalIgnoreCase); |
| 13 | } |
| 14 | |
View only · write via MCP/CIDE