|
7 | 7 | xmlns:Explorer="clr-namespace:vj0.Models.Files"
|
8 | 8 | xmlns:controls="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
|
9 | 9 | xmlns:framework="clr-namespace:vj0.Services.Framework"
|
| 10 | + xmlns:fluent="clr-namespace:FluentIcons.Avalonia.Fluent;assembly=FluentIcons.Avalonia.Fluent" |
10 | 11 |
|
11 | 12 | x:Class="vj0.Views.ExplorerView"
|
12 | 13 | x:DataType="viewModels1:ExplorerViewModel"
|
|
25 | 26 | <RowDefinition Height="*"/>
|
26 | 27 | </Grid.RowDefinitions>
|
27 | 28 |
|
28 |
| - <Grid Grid.Row="0" Height="60" IsVisible="False"> |
29 |
| - <Border |
30 |
| - BorderThickness="1 1 1 0" |
31 |
| - Background="#0d0d0d" |
32 |
| - ClipToBounds="True" |
33 |
| - Padding="15" |
34 |
| - Margin="5 0 5 -50" |
35 |
| - CornerRadius="8 10 0 0"> |
36 |
| - <Border.BorderBrush> |
37 |
| - <LinearGradientBrush StartPoint="0%,0%" EndPoint="100%,100%"> |
38 |
| - <GradientStop Color="#1e1e1f" Offset="0" /> |
39 |
| - </LinearGradientBrush> |
40 |
| - </Border.BorderBrush> |
41 |
| - |
42 |
| - <Grid> |
43 |
| - <StackPanel Opacity="0.75"> |
44 |
| - <TextBlock FontSize="12">Vfs Mount Point</TextBlock> |
45 |
| - <TextBlock FontSize="12">Vfs Version</TextBlock> |
46 |
| - |
47 |
| - <TextBlock FontSize="12">Offset</TextBlock> |
48 |
| - </StackPanel> |
49 |
| - |
50 |
| - <StackPanel Opacity="1" HorizontalAlignment="Right" Background="#0d0d0d"> |
51 |
| - <TextBlock FontSize="12" TextAlignment="Right" Text="{Binding SelectedItemMountPoint}"/> |
52 |
| - <TextBlock FontSize="12" TextAlignment="Right" Text="{Binding SelectedItemArchiveVersion}"/> |
53 |
| - </StackPanel> |
54 |
| - </Grid> |
55 |
| - </Border> |
56 |
| - </Grid> |
57 |
| - |
58 | 29 | <!-- Folders -->
|
59 | 30 | <Border
|
60 | 31 | Grid.Row="1"
|
|
79 | 50 | SelectionChanged="FileTree_OnSelectionChanged"
|
80 | 51 | Padding="15"
|
81 | 52 | ItemsSource="{Binding TreeViewCollection}">
|
82 |
| - |
83 | 53 | <TreeView.ItemContainerTheme>
|
84 | 54 | <ControlTheme x:DataType="Explorer:TreeItem"
|
85 | 55 | TargetType="TreeViewItem"
|
|
96 | 66 | Grid.Column="0"
|
97 | 67 | VerticalAlignment="Center">
|
98 | 68 |
|
99 |
| - <Canvas Width="14" |
100 |
| - Height="14" |
| 69 | + <Canvas Width="16" |
| 70 | + Height="16" |
101 | 71 | Margin="0 3 8 0"
|
102 | 72 | VerticalAlignment="Center"
|
103 | 73 | HorizontalAlignment="Center">
|
104 | 74 | <Path
|
105 | 75 | Data="M2.5,5.5 A1.5,1.5 0 0 1 4,4 H7.172 A1.5,1.5 0 0 1 8.232,4.44 L9.56,5.76 A1.5,1.5 0 0 0 10.62,6 H16 A1.5,1.5 0 0 1 17.5,7.5 V14.5 A1.5,1.5 0 0 1 16,16 H4 A1.5,1.5 0 0 1 2.5,14.5 V5.5 Z"
|
106 |
| - Stroke="#ffffff" |
107 |
| - StrokeThickness="1" |
108 | 76 | Fill="{Binding ItemBrush}"
|
109 |
| - Width="14" |
| 77 | + Width="16" |
110 | 78 | Stretch="Uniform"
|
111 |
| - Height="14"/> |
| 79 | + Height="16"/> |
112 | 80 | </Canvas>
|
113 | 81 |
|
114 | 82 | <TextBlock
|
|
180 | 148 |
|
181 | 149 | <Grid>
|
182 | 150 | <TextBlock IsVisible="{Binding !FilesInFolderView}" HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="0.45">No files in folder</TextBlock>
|
183 |
| - |
| 151 | + |
184 | 152 | <ScrollViewer Margin="0 0 5 0" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
|
185 | 153 | <ListBox Margin="15" ItemsSource="{Binding FlatViewFiles}"
|
186 | 154 | SelectionMode="Multiple"
|
|
199 | 167 | <DataTemplate DataType="Explorer:FileTile">
|
200 | 168 | <StackPanel Spacing="5" Margin="25 0 0 0"
|
201 | 169 | Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
|
202 |
| - <Canvas Width="14" Height="14" Margin="0 0 4 0" VerticalAlignment="Center" HorizontalAlignment="Center"> |
203 |
| - <Path |
204 |
| - Data="M4,2 H10 L14,6 V14 A2,2 0 0 1 12,16 H4 A2,2 0 0 1 2,14 V4 A2,2 0 0 1 4,2 Z M10,2 V6 H14" |
205 |
| - Stroke="White" |
206 |
| - StrokeThickness="1" |
207 |
| - Fill="#0e91e8" |
208 |
| - Width="14" |
209 |
| - Height="14" |
210 |
| - Stretch="Uniform"/> |
211 |
| - </Canvas> |
| 170 | + <fluent:FluentIcon Icon="Document" IconVariant="Filled" Foreground="#0e98e8"/> |
| 171 | + |
212 | 172 | <TextBlock Text="{Binding NameWithoutExtension}"
|
213 | 173 | FontSize="14"
|
214 | 174 | VerticalAlignment="Center"
|
|
237 | 197 | </Border.BorderBrush>
|
238 | 198 |
|
239 | 199 | <Grid>
|
240 |
| - <StackPanel Opacity="0.75"> |
241 |
| - <TextBlock FontSize="13">Vfs</TextBlock> |
242 |
| - <TextBlock FontSize="13">Mount Point</TextBlock> |
243 |
| - <TextBlock FontSize="13">Version</TextBlock> |
| 200 | + <StackPanel Opacity="0.8"> |
| 201 | + <TextBlock FontSize="13">Scope</TextBlock> |
244 | 202 | </StackPanel>
|
245 | 203 |
|
246 | 204 | <StackPanel Opacity="1" HorizontalAlignment="Right" Background="#0a0a0a">
|
247 | 205 | <TextBlock FontSize="14" TextAlignment="Right" Text="{Binding SelectedItemArchive}"/>
|
248 |
| - <TextBlock FontSize="14" TextAlignment="Right" Text="{Binding SelectedItemMountPoint}"/> |
249 |
| - <TextBlock FontSize="14" TextAlignment="Right" Text="{Binding SelectedItemArchiveVersion}"/> |
250 | 206 | </StackPanel>
|
251 | 207 | </Grid>
|
252 | 208 | </Border>
|
|
270 | 226 | </Border.BorderBrush>
|
271 | 227 |
|
272 | 228 | <Grid>
|
273 |
| - <StackPanel Opacity="0.75"> |
| 229 | + <StackPanel Opacity="0.8"> |
274 | 230 | <TextBlock FontSize="13">Offset</TextBlock>
|
275 | 231 | <TextBlock FontSize="13">Size</TextBlock>
|
276 | 232 | <TextBlock FontSize="13">Compression Method</TextBlock>
|
|
0 commit comments