Add SVG icons for dump and scan buttons in DeviceView.axaml for improved UI

This commit is contained in:
2025-12-16 10:37:43 +00:00
parent ba2be66c73
commit 4c2098410e
5 changed files with 190 additions and 2 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 9.4 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 15 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 9.4 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -716,11 +716,23 @@
HorizontalAlignment="Right">
<Button Command="{Binding DumpCommand, Mode=OneWay}"
IsEnabled="{Binding MediaIsInserted, Mode=OneWay}">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Dump_media_to_image}" />
<StackPanel Orientation="Horizontal"
Spacing="4">
<Svg MaxHeight="24"
Path="{Binding $parent[Window].ActualThemeVariant, Converter={StaticResource ThemeToSvgPathConverter}, ConverterParameter='/Assets/Icons/dump-disc.svg', Mode=OneWay}" />
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Dump_media_to_image}"
VerticalAlignment="Center" />
</StackPanel>
</Button>
<Button Command="{Binding ScanCommand, Mode=OneWay}"
IsEnabled="{Binding MediaIsInserted, Mode=OneWay}">
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Scan_media_surface}" />
<StackPanel Orientation="Horizontal"
Spacing="4">
<Svg MaxHeight="24"
Path="{Binding $parent[Window].ActualThemeVariant, Converter={StaticResource ThemeToSvgPathConverter}, ConverterParameter='/Assets/Icons/scan-disc.svg', Mode=OneWay}" />
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Scan_media_surface}"
VerticalAlignment="Center" />
</StackPanel>
</Button>
</StackPanel>
<controls:SpectreTextBlock Grid.Row="3"