@@ -40,16 +40,11 @@ public AgentAppViewModel Create(Uuid id, string name, Uri appUri, Uri? iconUrl)
4040
4141public partial class AgentAppViewModel : ObservableObject , IModelMergeable < AgentAppViewModel >
4242{
43- // HACK: We need to set the icon size for SVGs otherwise they might get cut
44- // off. These must be kept in sync with the XAML code.
45- public const int IconWidth = 20 ;
46- public const int IconHeight = 20 ;
47-
4843 private readonly ILogger < AgentAppViewModel > _logger ;
4944
5045 public required Uuid Id { get ; init ; }
5146
52- public required string Name { get ; set ; }
47+ [ ObservableProperty ] public required partial string Name { get ; set ; }
5348
5449 [ ObservableProperty ]
5550 [ NotifyPropertyChangedFor ( nameof ( Details ) ) ]
@@ -82,11 +77,7 @@ public ImageSource ImageSource
8277 {
8378 // TODO: Some SVGs like `/icon/cursor.svg` contain PNG data and
8479 // don't render at all.
85- var svg = new SvgImageSource ( IconUrl )
86- {
87- RasterizePixelWidth = IconWidth ,
88- RasterizePixelHeight = IconHeight ,
89- } ;
80+ var svg = new SvgImageSource ( IconUrl ) ;
9081 svg . Opened += ( _ , _ ) => _logger . LogDebug ( "app icon opened (svg): {uri}" , IconUrl ) ;
9182 svg . OpenFailed += ( _ , args ) =>
9283 _logger . LogDebug ( "app icon failed to open (svg): {uri}: {Status}" , IconUrl , args . Status ) ;
0 commit comments