Bind the planning-parent badge to IsPlanActive/IsPlanFinalized so a finalized plan shows the blue "planned" style instead of staying amber. Remove the unused Instance statics on BoolToItalicConverter and BoolToDraftOpacityConverter (registered via the App.axaml resource dictionary). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
14 lines
466 B
C#
14 lines
466 B
C#
using System;
|
|
using System.Globalization;
|
|
using Avalonia.Data.Converters;
|
|
|
|
namespace ClaudeDo.Ui.Converters;
|
|
|
|
public sealed class BoolToDraftOpacityConverter : IValueConverter
|
|
{
|
|
public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
|
|
=> value is true ? 0.7 : 1.0;
|
|
public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
|
|
=> throw new NotSupportedException();
|
|
}
|