feat: Enhance UI with new styles, improved layout, and icon integration across various views

This commit is contained in:
MaddoScientisto 2026-03-12 23:40:41 +01:00
commit 901dc02ca8
6 changed files with 215 additions and 91 deletions

View file

@ -98,29 +98,29 @@
</TabItem>
</TabControl>
<StackPanel Grid.Column="1">
<Grid Grid.Column="1" RowDefinitions="Auto,*">
<StackPanel HorizontalAlignment="Right" Margin="0,0,0,8">
<Button Name="ThemeToggleButton" Width="28" Height="28" Click="ToggleTheme_Click" ToolTip.Tip="Cambia tema"
HorizontalAlignment="Right" Padding="2">
<iconPacks:PackIconMaterial Kind="ThemeLightDark" Width="12" Height="12" Foreground="{DynamicResource ForegroundBrush}" />
<iconPacks:PackIconMaterial Kind="ThemeLightDark" Width="14" Height="14" Foreground="{DynamicResource ForegroundBrush}" />
</Button>
</StackPanel>
<Border BorderBrush="#DDD" BorderThickness="1" Padding="6" MaxWidth="280">
<StackPanel>
<StackPanel>
<Button Width="120" Margin="0,0,0,8" Command="{Binding LoadSettingsCommand}">
<Border Grid.Row="1" BorderThickness="1" Padding="10" MaxWidth="280" MinWidth="0">
<Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto,Auto,Auto,*" RowSpacing="8" MinWidth="0">
<StackPanel Grid.Row="0">
<Button HorizontalAlignment="Stretch" Margin="0,0,0,4" Command="{Binding LoadSettingsCommand}">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<iconPacks:PackIconMaterial Kind="FolderUploadOutline" Width="14" Height="14" Margin="0,0,4,0" Foreground="{DynamicResource ForegroundBrush}" />
<TextBlock Text="Carica" />
</StackPanel>
</Button>
<Button Width="120" Margin="0,0,0,8" Command="{Binding SaveSettingsCommand}">
<Button HorizontalAlignment="Stretch" Margin="0,0,0,4" Command="{Binding SaveSettingsCommand}">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<iconPacks:PackIconMaterial Kind="ContentSaveOutline" Width="14" Height="14" Margin="0,0,4,0" Foreground="{DynamicResource ForegroundBrush}" />
<TextBlock Text="Salva" />
</StackPanel>
</Button>
<Button Width="120" Height="36" Margin="0,6,0,8"
<Button HorizontalAlignment="Stretch" Height="34" Margin="0,4,0,4"
Command="{Binding ProcessImagesCommand}"
IsEnabled="{Binding UiEnabled}">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
@ -128,7 +128,7 @@
<TextBlock Text="Avvia" />
</StackPanel>
</Button>
<Button Width="120" Height="36"
<Button HorizontalAlignment="Stretch" Height="34"
Command="{Binding AsyncCancelOperationCommand}">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<iconPacks:PackIconMaterial Kind="StopCircleOutline" Width="14" Height="14" Margin="0,0,4,0" Foreground="Red" />
@ -137,27 +137,29 @@
</Button>
</StackPanel>
<Separator Margin="0,8,0,8" />
<Separator Grid.Row="1" Margin="0,4,0,0" />
<TextBlock Text="Stato" FontWeight="Bold" />
<TextBlock Text="{Binding ProcessingStatus}" TextWrapping="Wrap" />
<TextBlock Grid.Row="2" Text="Stato" FontWeight="Bold" />
<TextBlock Grid.Row="3" Text="{Binding ProcessingStatus}" TextWrapping="Wrap" />
<TextBlock Text="Progresso" FontWeight="Bold" Margin="0,8,0,0" />
<ProgressBar Minimum="0" Maximum="{Binding ProgressBarMaximum}"
Value="{Binding ProgressBarValue}" Height="20" />
<TextBlock Margin="0,6,0,0">
<TextBlock Grid.Row="4" Text="Progresso" FontWeight="Bold" Margin="0,4,0,0" />
<ProgressBar Grid.Row="5" Minimum="0" Maximum="{Binding ProgressBarMaximum}"
Value="{Binding ProgressBarValue}" Height="18" HorizontalAlignment="Stretch" MinWidth="0" />
<TextBlock Grid.Row="6" Margin="0,2,0,0">
<Run Text="{Binding ProcessedImagesCount}" />
<Run Text=" / " />
<Run Text="{Binding TotalImagesCount}" />
</TextBlock>
<TextBlock Text="Velocita" FontWeight="Bold" Margin="0,8,0,0" />
<TextBlock Text="{Binding SpeedCounter}" TextWrapping="Wrap" />
<TextBlock Grid.Row="7" Text="Velocita" FontWeight="Bold" Margin="0,4,0,0" />
<StackPanel Grid.Row="8" VerticalAlignment="Top">
<TextBlock Text="{Binding SpeedCounter}" TextWrapping="Wrap" />
<TextBlock Text="{Binding AppVersion}" Margin="0,8,0,0" Opacity="0.6" />
</StackPanel>
<TextBlock Text="{Binding AppVersion}" Margin="0,8,0,0" Opacity="0.6" />
</StackPanel>
</Grid>
</Border>
</StackPanel>
</Grid>
</Grid>
</Grid>
</Window>