feat(ui): use ClaudeTask icon for window and taskbar

Expose the .ico as an Avalonia resource, set it on MainWindow, and
swap the custom SystemDecorations=None for BorderOnly so the icon
appears on the taskbar and window can be resized normally.
This commit is contained in:
mika kuns
2026-04-23 13:07:38 +02:00
parent 4a6d96b90e
commit 9952ff98f2
3 changed files with 9 additions and 6 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 317 B

After

Width:  |  Height:  |  Size: 44 KiB

View File

@@ -22,6 +22,7 @@
<AvaloniaResource Include="Assets/Fonts/*.ttf" /> <AvaloniaResource Include="Assets/Fonts/*.ttf" />
<AvaloniaResource Include="Assets/Fonts/OFL-InterTight.txt" /> <AvaloniaResource Include="Assets/Fonts/OFL-InterTight.txt" />
<AvaloniaResource Include="Assets/Fonts/OFL-JetBrainsMono.txt" /> <AvaloniaResource Include="Assets/Fonts/OFL-JetBrainsMono.txt" />
<AvaloniaResource Include="..\ClaudeDo.App\Assets\ClaudeTask.ico" Link="Assets\ClaudeTask.ico" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -7,7 +7,9 @@
Title="ClaudeDo" Title="ClaudeDo"
Width="1280" Height="820" MinWidth="780" MinHeight="600" Width="1280" Height="820" MinWidth="780" MinHeight="600"
Background="{DynamicResource VoidBrush}" Background="{DynamicResource VoidBrush}"
SystemDecorations="None" Icon="avares://ClaudeDo.Ui/Assets/ClaudeTask.ico"
CanResize="True"
SystemDecorations="BorderOnly"
ExtendClientAreaToDecorationsHint="True" ExtendClientAreaToDecorationsHint="True"
ExtendClientAreaTitleBarHeightHint="-1"> ExtendClientAreaTitleBarHeightHint="-1">
<Window.KeyBindings> <Window.KeyBindings>
@@ -26,11 +28,11 @@
<!-- Left: brand block --> <!-- Left: brand block -->
<StackPanel Grid.Column="0" Orientation="Horizontal" Spacing="8" <StackPanel Grid.Column="0" Orientation="Horizontal" Spacing="8"
VerticalAlignment="Center" Margin="14,0,0,0"> VerticalAlignment="Center" Margin="14,0,0,0">
<!-- Green checkbox glyph --> <!-- App icon (matches taskbar) -->
<PathIcon Classes="title-brand-icon" <Image Source="avares://ClaudeDo.Ui/Assets/ClaudeTask.ico"
Data="{StaticResource Icon.BrandCheck}" Width="16" Height="16"
Width="14" Height="14" VerticalAlignment="Center"
Foreground="{DynamicResource MossBrush}" /> RenderOptions.BitmapInterpolationMode="HighQuality"/>
<!-- CLAUDEDO label --> <!-- CLAUDEDO label -->
<TextBlock Classes="title-brand-name" <TextBlock Classes="title-brand-name"
Text="CLAUDEDO" Text="CLAUDEDO"