feat: update resources.

This commit is contained in:
rabbitism 2023-01-30 22:16:55 +08:00
parent 4bb5303375
commit cb9542ad25
2 changed files with 19 additions and 10 deletions

View File

@ -37,8 +37,8 @@
Width="16" Width="16"
Height="16" Height="16"
Data="{Binding IconKey, Converter={StaticResource Icons}}" Data="{Binding IconKey, Converter={StaticResource Icons}}"
Foreground="{DynamicResource ManagedFileChooserQuickLinkIconForeground}" /> Foreground="{DynamicResource ManagedFileChooserIconForeground}" />
<TextBlock Foreground="{DynamicResource ManagedFileChooserQuickLinkTextForeground}" Text="{Binding DisplayName}" /> <TextBlock Foreground="{DynamicResource ManagedFileChooserTextForeground}" Text="{Binding DisplayName}" />
</StackPanel> </StackPanel>
</DataTemplate> </DataTemplate>
</ListBox.ItemTemplate> </ListBox.ItemTemplate>
@ -57,7 +57,7 @@
Width="16" Width="16"
Height="16" Height="16"
Data="{DynamicResource ManagedFileChooserUpButtonGlyph}" Data="{DynamicResource ManagedFileChooserUpButtonGlyph}"
Foreground="Black" /> Foreground="{DynamicResource ManagedFileChooserIconForeground}" />
</Button> </Button>
<TextBox <TextBox
x:Name="Location" x:Name="Location"
@ -150,11 +150,20 @@
Width="16" Width="16"
Height="16" Height="16"
Data="{Binding IconKey, Converter={StaticResource Icons}}" Data="{Binding IconKey, Converter={StaticResource Icons}}"
Foreground="{DynamicResource ManagedFileChooserQuickLinkIconForeground}" /> Foreground="{DynamicResource ManagedFileChooserIconForeground}" />
<TextBlock Grid.Column="2" Text="{Binding DisplayName}" /> <TextBlock
<TextBlock Grid.Column="4" Text="{Binding Modified}" /> Grid.Column="2"
<TextBlock Grid.Column="6" Text="{Binding Type}" /> Foreground="{DynamicResource ManagedFileChooserTextForeground}"
<TextBlock Grid.Column="8"> Text="{Binding DisplayName}" />
<TextBlock
Grid.Column="4"
Foreground="{DynamicResource ManagedFileChooserTextForeground}"
Text="{Binding Modified}" />
<TextBlock
Grid.Column="6"
Foreground="{DynamicResource ManagedFileChooserTextForeground}"
Text="{Binding Type}" />
<TextBlock Grid.Column="8" Foreground="{DynamicResource ManagedFileChooserTextForeground}">
<TextBlock.Text> <TextBlock.Text>
<Binding Path="Size"> <Binding Path="Size">
<Binding.Converter> <Binding.Converter>

View File

@ -1,7 +1,7 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- Add Resources Here --> <!-- Add Resources Here -->
<SolidColorBrush x:Key="ManagedFileChooserQuickLinkIconForeground" Opacity="0.65" Color="#1C1F23" /> <SolidColorBrush x:Key="ManagedFileChooserIconForeground" Opacity="0.65" Color="#1C1F23" />
<SolidColorBrush x:Key="ManagedFileChooserQuickLinkTextForeground" Color="#1C1F23" /> <SolidColorBrush x:Key="ManagedFileChooserTextForeground" Color="#1C1F23" />
<SolidColorBrush x:Key="ManagedFileChooserSeparatorBorderBrush" Opacity="0.08" Color="#1C1F23" /> <SolidColorBrush x:Key="ManagedFileChooserSeparatorBorderBrush" Opacity="0.08" Color="#1C1F23" />
<PathGeometry x:Key="ManagedFileChooserUpButtonGlyph">M20 18V20H13.5C9.91 20 7 17.09 7 13.5V7.83L3.91 10.92L2.5 9.5L8 4L13.5 9.5L12.09 10.91L9 7.83V13.5C9 16 11 18 13.5 18H20Z</PathGeometry> <PathGeometry x:Key="ManagedFileChooserUpButtonGlyph">M20 18V20H13.5C9.91 20 7 17.09 7 13.5V7.83L3.91 10.92L2.5 9.5L8 4L13.5 9.5L12.09 10.91L9 7.83V13.5C9 16 11 18 13.5 18H20Z</PathGeometry>
</ResourceDictionary> </ResourceDictionary>