mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 11:14:25 +00:00
Enhance TreeView item layout in MainWindow.axaml with improved spacing and icon presentation
This commit is contained in:
@@ -216,7 +216,8 @@
|
||||
<TreeView.DataTemplates>
|
||||
<TreeDataTemplate DataType="models:ImageModel"
|
||||
ItemsSource="{Binding PartitionSchemesOrFileSystems, Mode=OneWay}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Spacing="4">
|
||||
<StackPanel.ContextMenu>
|
||||
<ContextMenu
|
||||
DataContext="{Binding Path=DataContext, RelativeSource={RelativeSource AncestorType=Window}, Mode=OneWay}">
|
||||
@@ -243,49 +244,78 @@
|
||||
Header="{x:Static localization:UI.ButtonLabel_Decode_media_tags}" />
|
||||
</ContextMenu>
|
||||
</StackPanel.ContextMenu>
|
||||
<Border Width="32"
|
||||
Height="32"
|
||||
Background="LightGray"
|
||||
CornerRadius="16">
|
||||
<Image Width="24"
|
||||
Height="24"
|
||||
Source="{Binding Icon, Mode=OneWay}" />
|
||||
</Border>
|
||||
<TextBlock Text="{Binding FileName, Mode=OneWay}"
|
||||
VerticalAlignment="Center" />
|
||||
</StackPanel>
|
||||
</TreeDataTemplate>
|
||||
<TreeDataTemplate DataType="models:PartitionSchemeModel"
|
||||
ItemsSource="{Binding Partitions, Mode=OneWay}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Spacing="4">
|
||||
<Border Width="32"
|
||||
Height="32"
|
||||
Background="LightGray"
|
||||
CornerRadius="16">
|
||||
<Image Width="24"
|
||||
Height="24"
|
||||
Source="{Binding Icon, Mode=OneWay}" />
|
||||
</Border>
|
||||
<TextBlock Text="{Binding Name, Mode=OneWay}"
|
||||
VerticalAlignment="Center" />
|
||||
</StackPanel>
|
||||
</TreeDataTemplate>
|
||||
<TreeDataTemplate DataType="models:PartitionModel"
|
||||
ItemsSource="{Binding FileSystems, Mode=OneWay}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Spacing="4">
|
||||
<Border Width="32"
|
||||
Height="32"
|
||||
Background="LightGray"
|
||||
CornerRadius="16">
|
||||
<Image Width="24"
|
||||
Height="24"
|
||||
Source="{Binding Icon, Mode=OneWay}" />
|
||||
</Border>
|
||||
<TextBlock Text="{Binding Name, Mode=OneWay}"
|
||||
VerticalAlignment="Center" />
|
||||
</StackPanel>
|
||||
</TreeDataTemplate>
|
||||
<TreeDataTemplate DataType="models:FileSystemModel"
|
||||
ItemsSource="{Binding Roots, Mode=OneWay}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Spacing="4">
|
||||
<Border Width="32"
|
||||
Height="32"
|
||||
Background="LightGray"
|
||||
CornerRadius="16">
|
||||
<Image Width="24"
|
||||
Height="24"
|
||||
Source="{Binding Icon, Mode=OneWay}" />
|
||||
</Border>
|
||||
<TextBlock Text="{Binding VolumeName, Mode=OneWay}"
|
||||
VerticalAlignment="Center" />
|
||||
</StackPanel>
|
||||
</TreeDataTemplate>
|
||||
<TreeDataTemplate DataType="models:SubdirectoryModel"
|
||||
ItemsSource="{Binding Subdirectories, Mode=OneWay}">
|
||||
<StackPanel Orientation="Horizontal">
|
||||
<StackPanel Orientation="Horizontal"
|
||||
Spacing="4">
|
||||
<Border Width="32"
|
||||
Height="32"
|
||||
Background="LightGray"
|
||||
CornerRadius="16">
|
||||
<Image Width="24"
|
||||
Height="24"
|
||||
Source="{Binding Icon, Mode=OneWay}" />
|
||||
</Border>
|
||||
<TextBlock Text="{Binding Name, Mode=OneWay}"
|
||||
VerticalAlignment="Center" />
|
||||
</StackPanel>
|
||||
|
||||
Reference in New Issue
Block a user