From 3e3041c1c785719542436cfe6f15eb6b7df70297 Mon Sep 17 00:00:00 2001 From: mika kuns Date: Thu, 4 Jun 2026 12:29:15 +0200 Subject: [PATCH] feat(ui): add reusable inherited-source badge control Co-Authored-By: Claude Opus 4.7 --- .../Views/Controls/InheritedBadge.axaml | 13 +++++++++++++ .../Views/Controls/InheritedBadge.axaml.cs | 18 ++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 src/ClaudeDo.Ui/Views/Controls/InheritedBadge.axaml create mode 100644 src/ClaudeDo.Ui/Views/Controls/InheritedBadge.axaml.cs diff --git a/src/ClaudeDo.Ui/Views/Controls/InheritedBadge.axaml b/src/ClaudeDo.Ui/Views/Controls/InheritedBadge.axaml new file mode 100644 index 0000000..91c02ee --- /dev/null +++ b/src/ClaudeDo.Ui/Views/Controls/InheritedBadge.axaml @@ -0,0 +1,13 @@ + + + + + diff --git a/src/ClaudeDo.Ui/Views/Controls/InheritedBadge.axaml.cs b/src/ClaudeDo.Ui/Views/Controls/InheritedBadge.axaml.cs new file mode 100644 index 0000000..30be84e --- /dev/null +++ b/src/ClaudeDo.Ui/Views/Controls/InheritedBadge.axaml.cs @@ -0,0 +1,18 @@ +using Avalonia; +using Avalonia.Controls; + +namespace ClaudeDo.Ui.Views.Controls; + +public partial class InheritedBadge : UserControl +{ + public static readonly StyledProperty BadgeTextProperty = + AvaloniaProperty.Register(nameof(BadgeText)); + + public string? BadgeText + { + get => GetValue(BadgeTextProperty); + set => SetValue(BadgeTextProperty, value); + } + + public InheritedBadge() => InitializeComponent(); +}