mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[TUI] Fix image information alignment.
This commit is contained in:
@@ -21,146 +21,143 @@
|
|||||||
Brush="Blue" />
|
Brush="Blue" />
|
||||||
</Border.BorderBrush>
|
</Border.BorderBrush>
|
||||||
<Grid RowDefinitions="*,Auto">
|
<Grid RowDefinitions="*,Auto">
|
||||||
<Grid ColumnDefinitions="*,*"
|
<Grid ColumnDefinitions="*,*" Grid.Row="0">
|
||||||
Grid.Row="0">
|
<ListBox Grid.Column="0"
|
||||||
<ListBox Grid.Column="0"
|
ItemsSource="{Binding Files, Mode=OneWay}"
|
||||||
ItemsSource="{Binding Files, Mode=OneWay}"
|
BorderThickness="1"
|
||||||
BorderThickness="1"
|
Background="Transparent"
|
||||||
Background="Transparent"
|
SelectedItem="{Binding SelectedFile, Mode=TwoWay}"
|
||||||
SelectedItem="{Binding SelectedFile, Mode=TwoWay}"
|
KeyDown="ListBox_OnKeyDown">
|
||||||
KeyDown="ListBox_OnKeyDown">
|
<ListBox.ItemTemplate>
|
||||||
<ListBox.ItemTemplate>
|
<DataTemplate DataType="models:FileModel">
|
||||||
<DataTemplate DataType="models:FileModel">
|
<TextBox Text="{Binding Filename, Mode=OneWay}"
|
||||||
<TextBox Text="{Binding Filename, Mode=OneWay}"
|
Foreground="{Binding ForegroundBrush, Mode=OneWay}"
|
||||||
Foreground="{Binding ForegroundBrush, Mode=OneWay}"
|
Background="Transparent" />
|
||||||
Background="Transparent" />
|
</DataTemplate>
|
||||||
</DataTemplate>
|
</ListBox.ItemTemplate>
|
||||||
</ListBox.ItemTemplate>
|
<ListBox.BorderBrush>
|
||||||
<ListBox.BorderBrush>
|
<console:LineBrush LineStyle="DoubleLine"
|
||||||
<console:LineBrush LineStyle="DoubleLine"
|
Brush="Blue" />
|
||||||
Brush="Blue" />
|
</ListBox.BorderBrush>
|
||||||
</ListBox.BorderBrush>
|
</ListBox>
|
||||||
</ListBox>
|
<Border Grid.Column="1"
|
||||||
<Border Grid.Column="1"
|
BorderThickness="1">
|
||||||
BorderThickness="1">
|
<Border.BorderBrush>
|
||||||
<Border.BorderBrush>
|
<console:LineBrush LineStyle="DoubleLine"
|
||||||
<console:LineBrush LineStyle="DoubleLine"
|
Brush="Blue" />
|
||||||
Brush="Blue" />
|
</Border.BorderBrush>
|
||||||
</Border.BorderBrush>
|
<Grid RowDefinitions="Auto,Auto,Auto,*"
|
||||||
<Grid RowDefinitions="Auto,Auto,Auto,*"
|
VerticalAlignment="Top">
|
||||||
VerticalAlignment="Top">
|
<Border Grid.Row="0"
|
||||||
<Border Grid.Row="0"
|
BorderThickness="1">
|
||||||
BorderThickness="1">
|
<Border.BorderBrush>
|
||||||
<Border.BorderBrush>
|
<console:LineBrush LineStyle="DoubleLine"
|
||||||
<console:LineBrush LineStyle="DoubleLine"
|
Brush="Blue" />
|
||||||
Brush="Blue" />
|
</Border.BorderBrush>
|
||||||
</Border.BorderBrush>
|
<StackPanel VerticalAlignment="Top"
|
||||||
<StackPanel VerticalAlignment="Top"
|
HorizontalAlignment="Center">
|
||||||
HorizontalAlignment="Center">
|
<TextBlock Text="Aaru Data Preservation Suite"
|
||||||
<TextBlock Text="Aaru Data Preservation Suite"
|
Foreground="Red"
|
||||||
Foreground="Red"
|
FontWeight="Bold" />
|
||||||
FontWeight="Bold" />
|
<TextBlock Text="{Binding InformationalVersion, Mode=OneWay}"
|
||||||
<TextBlock Text="{Binding InformationalVersion, Mode=OneWay}"
|
Foreground="Green"
|
||||||
Foreground="Green"
|
FontWeight="Bold" />
|
||||||
FontWeight="Bold" />
|
<TextBlock Text="{Binding Copyright, Mode=OneWay}"
|
||||||
<TextBlock Text="{Binding Copyright, Mode=OneWay}"
|
Foreground="Blue"
|
||||||
Foreground="Blue"
|
FontWeight="Bold" />
|
||||||
FontWeight="Bold" />
|
</StackPanel>
|
||||||
</StackPanel>
|
</Border>
|
||||||
</Border>
|
<Border Grid.Row="1"
|
||||||
<Border Grid.Row="1"
|
BorderThickness="1">
|
||||||
BorderThickness="1">
|
<Border.BorderBrush>
|
||||||
<Border.BorderBrush>
|
<console:LineBrush LineStyle="DoubleLine"
|
||||||
<console:LineBrush LineStyle="DoubleLine"
|
Brush="Blue" />
|
||||||
Brush="Blue" />
|
</Border.BorderBrush>
|
||||||
</Border.BorderBrush>
|
<Grid ColumnDefinitions="Auto, *">
|
||||||
<Grid ColumnDefinitions="Auto, *">
|
<TextBlock Grid.Column="0"
|
||||||
|
Text="Path: "
|
||||||
|
Foreground="SlateBlue" />
|
||||||
|
<TextBlock Grid.Column="1"
|
||||||
|
Text="{Binding CurrentPath, Mode=OneWay}"
|
||||||
|
Foreground="Green" />
|
||||||
|
</Grid>
|
||||||
|
</Border>
|
||||||
|
<Border Grid.Row="2"
|
||||||
|
BorderThickness="1"
|
||||||
|
IsVisible="{Binding IsFileInfoAvailable, Mode=OneWay}">
|
||||||
|
<Border.BorderBrush>
|
||||||
|
<console:LineBrush LineStyle="DoubleLine"
|
||||||
|
Brush="Blue" />
|
||||||
|
</Border.BorderBrush>
|
||||||
|
<Grid RowDefinitions="Auto, *, *, *, *, *">
|
||||||
|
<TextBlock Text="File information"
|
||||||
|
Grid.Row="0"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
Foreground="SlateBlue" />
|
||||||
|
<Grid ColumnDefinitions="Auto, *"
|
||||||
|
Grid.Row="1"
|
||||||
|
IsVisible="{Binding SelectedFileIsNotDirectory, Mode=OneWay}">
|
||||||
<TextBlock Grid.Column="0"
|
<TextBlock Grid.Column="0"
|
||||||
Text="Path: "
|
Text="Length: " />
|
||||||
Foreground="SlateBlue" />
|
|
||||||
<TextBlock Grid.Column="1"
|
<TextBlock Grid.Column="1"
|
||||||
Text="{Binding CurrentPath, Mode=OneWay}"
|
Text="{Binding SelectedFileLength, Mode=OneWay}"
|
||||||
Foreground="Green" />
|
Foreground="Aqua" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
<Grid ColumnDefinitions="Auto, *"
|
||||||
<Border Grid.Row="2"
|
Grid.Row="2">
|
||||||
BorderThickness="1"
|
<TextBlock Grid.Column="0"
|
||||||
IsVisible="{Binding IsFileInfoAvailable, Mode=OneWay}">
|
Text="Creation time: " />
|
||||||
<Border.BorderBrush>
|
<TextBlock Grid.Column="1"
|
||||||
<console:LineBrush LineStyle="DoubleLine"
|
Text="{Binding SelectedFileCreationTime, Mode=OneWay}"
|
||||||
Brush="Blue" />
|
Foreground="Aqua" />
|
||||||
</Border.BorderBrush>
|
|
||||||
<Grid RowDefinitions="Auto, *, *, *, *, *">
|
|
||||||
<TextBlock Text="File information"
|
|
||||||
Grid.Row="0"
|
|
||||||
HorizontalAlignment="Center"
|
|
||||||
Foreground="SlateBlue" />
|
|
||||||
<Grid ColumnDefinitions="Auto, *"
|
|
||||||
Grid.Row="1"
|
|
||||||
IsVisible="{Binding SelectedFileIsNotDirectory, Mode=OneWay}">
|
|
||||||
<TextBlock Grid.Column="0"
|
|
||||||
Text="Length: " />
|
|
||||||
<TextBlock Grid.Column="1"
|
|
||||||
Text="{Binding SelectedFileLength, Mode=OneWay}"
|
|
||||||
Foreground="Aqua" />
|
|
||||||
</Grid>
|
|
||||||
<Grid ColumnDefinitions="Auto, *"
|
|
||||||
Grid.Row="2">
|
|
||||||
<TextBlock Grid.Column="0"
|
|
||||||
Text="Creation time: " />
|
|
||||||
<TextBlock Grid.Column="1"
|
|
||||||
Text="{Binding SelectedFileCreationTime, Mode=OneWay}"
|
|
||||||
Foreground="Aqua" />
|
|
||||||
</Grid>
|
|
||||||
<Grid ColumnDefinitions="Auto, *"
|
|
||||||
Grid.Row="3">
|
|
||||||
<TextBlock Grid.Column="0"
|
|
||||||
Text="Last write time: " />
|
|
||||||
<TextBlock Grid.Column="1"
|
|
||||||
Text="{Binding SelectedFileLastWriteTime, Mode=OneWay}"
|
|
||||||
Foreground="Aqua" />
|
|
||||||
</Grid>
|
|
||||||
<Grid ColumnDefinitions="Auto, *"
|
|
||||||
Grid.Row="4">
|
|
||||||
<TextBlock Grid.Column="0"
|
|
||||||
Text="Attributes: " />
|
|
||||||
<TextBlock Grid.Column="1"
|
|
||||||
Text="{Binding SelectedFileAttributes, Mode=OneWay}"
|
|
||||||
Foreground="Aqua" />
|
|
||||||
</Grid>
|
|
||||||
<Grid ColumnDefinitions="Auto, *"
|
|
||||||
Grid.Row="5">
|
|
||||||
<TextBlock Grid.Column="0"
|
|
||||||
Text="Mode: " />
|
|
||||||
<TextBlock Grid.Column="1"
|
|
||||||
Text="{Binding SelectedFileUnixMode, Mode=OneWay}"
|
|
||||||
Foreground="Aqua" />
|
|
||||||
</Grid>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
<Grid ColumnDefinitions="Auto, *"
|
||||||
<Border Grid.Row="3"
|
Grid.Row="3">
|
||||||
IsVisible="{Binding SelectedFileHasInformation, Mode=OneWay}"
|
<TextBlock Grid.Column="0"
|
||||||
BorderThickness="1">
|
Text="Last write time: " />
|
||||||
<Border.BorderBrush>
|
<TextBlock Grid.Column="1"
|
||||||
<console:LineBrush LineStyle="DoubleLine"
|
Text="{Binding SelectedFileLastWriteTime, Mode=OneWay}"
|
||||||
Brush="Blue" />
|
Foreground="Aqua" />
|
||||||
</Border.BorderBrush>
|
</Grid>
|
||||||
<ScrollViewer>
|
<Grid ColumnDefinitions="Auto, *"
|
||||||
<StackPanel VerticalAlignment="Top"
|
Grid.Row="4">
|
||||||
HorizontalAlignment="Center">
|
<TextBlock Grid.Column="0"
|
||||||
<TextBlock Text="Image information"
|
Text="Attributes: " />
|
||||||
Foreground="SlateBlue"
|
<TextBlock Grid.Column="1"
|
||||||
FontWeight="Bold" />
|
Text="{Binding SelectedFileAttributes, Mode=OneWay}"
|
||||||
<TextBlock Text="{Binding SelectedFileInformation, Mode=OneWay}" />
|
Foreground="Aqua" />
|
||||||
</StackPanel>
|
</Grid>
|
||||||
</ScrollViewer>
|
<Grid ColumnDefinitions="Auto, *"
|
||||||
</Border>
|
Grid.Row="5">
|
||||||
</Grid>
|
<TextBlock Grid.Column="0"
|
||||||
</Border>
|
Text="Mode: " />
|
||||||
</Grid>
|
<TextBlock Grid.Column="1"
|
||||||
<TextBlock Grid.Row="1"
|
Text="{Binding SelectedFileUnixMode, Mode=OneWay}"
|
||||||
Text="{Binding Status, Mode=OneWay}"
|
Foreground="Aqua" />
|
||||||
IsVisible="{Binding IsStatusVisible, Mode=OneWay}" />
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
</Border>
|
||||||
|
<Border Grid.Row="3"
|
||||||
|
IsVisible="{Binding SelectedFileHasInformation, Mode=OneWay}"
|
||||||
|
BorderThickness="1">
|
||||||
|
<Border.BorderBrush>
|
||||||
|
<console:LineBrush LineStyle="DoubleLine"
|
||||||
|
Brush="Blue" />
|
||||||
|
</Border.BorderBrush>
|
||||||
|
<ScrollViewer>
|
||||||
|
<StackPanel VerticalAlignment="Top"
|
||||||
|
HorizontalAlignment="Stretch">
|
||||||
|
<TextBlock Text="Image information"
|
||||||
|
Foreground="SlateBlue"
|
||||||
|
FontWeight="Bold" HorizontalAlignment="Center" />
|
||||||
|
<TextBlock Text="{Binding SelectedFileInformation, Mode=OneWay}" HorizontalAlignment="Left"/>
|
||||||
|
</StackPanel>
|
||||||
|
</ScrollViewer>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
|
<TextBlock Grid.Row="1" Text="{Binding Status, Mode=OneWay}" IsVisible="{Binding IsStatusVisible, Mode=OneWay}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Border>
|
</Border>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|||||||
Reference in New Issue
Block a user