ui: bigger thumbnails (60->96 strip, 72->100 panel), increase font sizes for readability

This commit is contained in:
2026-04-16 02:37:01 +01:00
parent e936877542
commit 2903035d8c
2 changed files with 31 additions and 31 deletions

View File

@@ -26,7 +26,7 @@
HorizontalAlignment="Center" HorizontalAlignment="Center"
Foreground="{DynamicResource MahApps.Brushes.Gray1}"/> Foreground="{DynamicResource MahApps.Brushes.Gray1}"/>
<TextBlock Text="This usually takes 1020 seconds" <TextBlock Text="This usually takes 1020 seconds"
FontSize="11" HorizontalAlignment="Center" FontSize="13" HorizontalAlignment="Center"
Foreground="{DynamicResource MahApps.Brushes.Gray5}" Foreground="{DynamicResource MahApps.Brushes.Gray5}"
Margin="0,6,0,0"/> Margin="0,6,0,0"/>
</StackPanel> </StackPanel>
@@ -62,7 +62,7 @@
HorizontalAlignment="Center" HorizontalAlignment="Center"
Foreground="{DynamicResource MahApps.Brushes.Gray2}"/> Foreground="{DynamicResource MahApps.Brushes.Gray2}"/>
<TextBlock Text="or click to browse — up to 12 photos" <TextBlock Text="or click to browse — up to 12 photos"
FontSize="12" HorizontalAlignment="Center" FontSize="13" HorizontalAlignment="Center"
Foreground="{DynamicResource MahApps.Brushes.Gray5}" Foreground="{DynamicResource MahApps.Brushes.Gray5}"
Margin="0,6,0,0"/> Margin="0,6,0,0"/>
</StackPanel> </StackPanel>
@@ -98,7 +98,7 @@
</Button> </Button>
<TextBlock x:Name="PhotoCountLabel" <TextBlock x:Name="PhotoCountLabel"
HorizontalAlignment="Center" Margin="0,8,0,0" HorizontalAlignment="Center" Margin="0,8,0,0"
FontSize="11" Visibility="Collapsed" FontSize="13" Visibility="Collapsed"
Foreground="{DynamicResource MahApps.Brushes.Gray5}"/> Foreground="{DynamicResource MahApps.Brushes.Gray5}"/>
</StackPanel> </StackPanel>
@@ -126,7 +126,7 @@
Background="Transparent" BorderThickness="0" Background="Transparent" BorderThickness="0"
Foreground="{DynamicResource MahApps.Brushes.Gray5}" Foreground="{DynamicResource MahApps.Brushes.Gray5}"
Cursor="Hand" VerticalAlignment="Center"> Cursor="Hand" VerticalAlignment="Center">
<TextBlock FontSize="11"> <TextBlock FontSize="13">
<Run Text="&#8592; "/> <Run Text="&#8592; "/>
<Run Text="Start Over" TextDecorations="Underline"/> <Run Text="Start Over" TextDecorations="Underline"/>
</TextBlock> </TextBlock>
@@ -172,13 +172,13 @@
<!-- LEFT: Photos panel --> <!-- LEFT: Photos panel -->
<DockPanel Grid.Column="0"> <DockPanel Grid.Column="0">
<TextBlock DockPanel.Dock="Top" <TextBlock DockPanel.Dock="Top"
Text="PHOTOS" FontSize="10" FontWeight="SemiBold" Text="PHOTOS" FontSize="12" FontWeight="SemiBold"
Foreground="{DynamicResource MahApps.Brushes.Gray5}" Foreground="{DynamicResource MahApps.Brushes.Gray5}"
Margin="0,0,0,8"/> Margin="0,0,0,8"/>
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" Margin="0,8,0,0"> <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" Margin="0,8,0,0">
<Button x:Name="AddMorePhotosBtn" Click="AddMorePhotos_Click" <Button x:Name="AddMorePhotosBtn" Click="AddMorePhotos_Click"
Style="{StaticResource MahApps.Styles.Button.Square}" Style="{StaticResource MahApps.Styles.Button.Square}"
Padding="8,4" FontSize="11"> Padding="8,4" FontSize="13">
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
<iconPacks:PackIconMaterial Kind="Plus" Width="12" Height="12" <iconPacks:PackIconMaterial Kind="Plus" Width="12" Height="12"
Margin="0,0,4,0" VerticalAlignment="Center"/> Margin="0,0,4,0" VerticalAlignment="Center"/>
@@ -187,7 +187,7 @@
</Button> </Button>
<TextBlock x:Name="BPhotoCount" <TextBlock x:Name="BPhotoCount"
Margin="8,0,0,0" VerticalAlignment="Center" Margin="8,0,0,0" VerticalAlignment="Center"
FontSize="11" FontSize="13"
Foreground="{DynamicResource MahApps.Brushes.Gray5}"/> Foreground="{DynamicResource MahApps.Brushes.Gray5}"/>
</StackPanel> </StackPanel>
<ScrollViewer VerticalScrollBarVisibility="Auto"> <ScrollViewer VerticalScrollBarVisibility="Auto">
@@ -199,7 +199,7 @@
<ScrollViewer Grid.Column="2" VerticalScrollBarVisibility="Auto"> <ScrollViewer Grid.Column="2" VerticalScrollBarVisibility="Auto">
<StackPanel Margin="0,0,8,16" MaxWidth="600"> <StackPanel Margin="0,0,8,16" MaxWidth="600">
<TextBlock Text="LISTING DETAILS" <TextBlock Text="LISTING DETAILS"
FontSize="10" FontWeight="SemiBold" FontSize="12" FontWeight="SemiBold"
Foreground="{DynamicResource MahApps.Brushes.Gray5}" Foreground="{DynamicResource MahApps.Brushes.Gray5}"
Margin="0,0,0,12"/> Margin="0,0,0,12"/>
@@ -209,7 +209,7 @@
<ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<TextBlock Text="Title" FontSize="11" FontWeight="SemiBold" <TextBlock Text="Title" FontSize="13" FontWeight="SemiBold"
Foreground="{DynamicResource MahApps.Brushes.Gray3}" Foreground="{DynamicResource MahApps.Brushes.Gray3}"
VerticalAlignment="Center"/> VerticalAlignment="Center"/>
<Button Grid.Column="1" x:Name="AiTitleBtn" Click="AiTitle_Click" <Button Grid.Column="1" x:Name="AiTitleBtn" Click="AiTitle_Click"
@@ -221,7 +221,7 @@
Margin="0,0,4,0" VerticalAlignment="Center"/> Margin="0,0,4,0" VerticalAlignment="Center"/>
<mah:ProgressRing x:Name="TitleSpinner" Width="12" Height="12" <mah:ProgressRing x:Name="TitleSpinner" Width="12" Height="12"
Margin="0,0,4,0" Visibility="Collapsed"/> Margin="0,0,4,0" Visibility="Collapsed"/>
<TextBlock Text="AI" FontSize="10" VerticalAlignment="Center"/> <TextBlock Text="AI" FontSize="12" VerticalAlignment="Center"/>
</StackPanel> </StackPanel>
</Button> </Button>
</Grid> </Grid>
@@ -239,7 +239,7 @@
Background="{DynamicResource MahApps.Brushes.Accent}"/> Background="{DynamicResource MahApps.Brushes.Accent}"/>
</Border> </Border>
<TextBlock x:Name="BTitleCount" Grid.Column="1" <TextBlock x:Name="BTitleCount" Grid.Column="1"
Text="0 / 80" FontSize="10" Margin="6,0,0,0" Text="0 / 80" FontSize="12" Margin="6,0,0,0"
Foreground="{DynamicResource MahApps.Brushes.Gray5}"/> Foreground="{DynamicResource MahApps.Brushes.Gray5}"/>
</Grid> </Grid>
@@ -249,7 +249,7 @@
<ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<TextBlock Text="Description" FontSize="11" FontWeight="SemiBold" <TextBlock Text="Description" FontSize="13" FontWeight="SemiBold"
Foreground="{DynamicResource MahApps.Brushes.Gray3}" Foreground="{DynamicResource MahApps.Brushes.Gray3}"
VerticalAlignment="Center"/> VerticalAlignment="Center"/>
<Button Grid.Column="1" x:Name="AiDescBtn" Click="AiDesc_Click" <Button Grid.Column="1" x:Name="AiDescBtn" Click="AiDesc_Click"
@@ -261,7 +261,7 @@
Margin="0,0,4,0" VerticalAlignment="Center"/> Margin="0,0,4,0" VerticalAlignment="Center"/>
<mah:ProgressRing x:Name="DescSpinner" Width="12" Height="12" <mah:ProgressRing x:Name="DescSpinner" Width="12" Height="12"
Margin="0,0,4,0" Visibility="Collapsed"/> Margin="0,0,4,0" Visibility="Collapsed"/>
<TextBlock Text="AI" FontSize="10" VerticalAlignment="Center"/> <TextBlock Text="AI" FontSize="12" VerticalAlignment="Center"/>
</StackPanel> </StackPanel>
</Button> </Button>
</Grid> </Grid>
@@ -281,12 +281,12 @@
Background="{DynamicResource MahApps.Brushes.Accent}"/> Background="{DynamicResource MahApps.Brushes.Accent}"/>
</Border> </Border>
<TextBlock x:Name="BDescCount" Grid.Column="1" <TextBlock x:Name="BDescCount" Grid.Column="1"
Text="0 / 2000" FontSize="10" Margin="6,0,0,0" Text="0 / 2000" FontSize="12" Margin="6,0,0,0"
Foreground="{DynamicResource MahApps.Brushes.Gray5}"/> Foreground="{DynamicResource MahApps.Brushes.Gray5}"/>
</Grid> </Grid>
<!-- Category --> <!-- Category -->
<TextBlock Text="Category" FontSize="11" FontWeight="SemiBold" <TextBlock Text="Category" FontSize="13" FontWeight="SemiBold"
Foreground="{DynamicResource MahApps.Brushes.Gray3}" Foreground="{DynamicResource MahApps.Brushes.Gray3}"
Margin="0,0,0,4"/> Margin="0,0,0,4"/>
<Grid Margin="0,0,0,2"> <Grid Margin="0,0,0,2">
@@ -306,7 +306,7 @@
</Grid> </Grid>
<TextBlock x:Name="BCategoryIdLabel" <TextBlock x:Name="BCategoryIdLabel"
Text="(no category selected)" Text="(no category selected)"
FontSize="10" Margin="0,0,0,12" FontSize="12" Margin="0,0,0,12"
Foreground="{DynamicResource MahApps.Brushes.Gray5}"/> Foreground="{DynamicResource MahApps.Brushes.Gray5}"/>
<!-- Condition + Format --> <!-- Condition + Format -->
@@ -317,7 +317,7 @@
<ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<StackPanel Grid.Column="0"> <StackPanel Grid.Column="0">
<TextBlock Text="Condition" FontSize="11" FontWeight="SemiBold" <TextBlock Text="Condition" FontSize="13" FontWeight="SemiBold"
Foreground="{DynamicResource MahApps.Brushes.Gray3}" Foreground="{DynamicResource MahApps.Brushes.Gray3}"
Margin="0,0,0,4"/> Margin="0,0,0,4"/>
<ComboBox x:Name="BConditionBox" <ComboBox x:Name="BConditionBox"
@@ -330,7 +330,7 @@
</ComboBox> </ComboBox>
</StackPanel> </StackPanel>
<StackPanel Grid.Column="2"> <StackPanel Grid.Column="2">
<TextBlock Text="Format" FontSize="11" FontWeight="SemiBold" <TextBlock Text="Format" FontSize="13" FontWeight="SemiBold"
Foreground="{DynamicResource MahApps.Brushes.Gray3}" Foreground="{DynamicResource MahApps.Brushes.Gray3}"
Margin="0,0,0,4"/> Margin="0,0,0,4"/>
<ComboBox x:Name="BFormatBox"> <ComboBox x:Name="BFormatBox">
@@ -346,7 +346,7 @@
<ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/> <ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<TextBlock Text="Price" FontSize="11" FontWeight="SemiBold" <TextBlock Text="Price" FontSize="13" FontWeight="SemiBold"
Foreground="{DynamicResource MahApps.Brushes.Gray3}" Foreground="{DynamicResource MahApps.Brushes.Gray3}"
VerticalAlignment="Center"/> VerticalAlignment="Center"/>
<Button Grid.Column="1" x:Name="AiPriceBtn" Click="AiPrice_Click" <Button Grid.Column="1" x:Name="AiPriceBtn" Click="AiPrice_Click"
@@ -358,7 +358,7 @@
Margin="0,0,4,0" VerticalAlignment="Center"/> Margin="0,0,4,0" VerticalAlignment="Center"/>
<mah:ProgressRing x:Name="PriceSpinner" Width="12" Height="12" <mah:ProgressRing x:Name="PriceSpinner" Width="12" Height="12"
Margin="0,0,4,0" Visibility="Collapsed"/> Margin="0,0,4,0" Visibility="Collapsed"/>
<TextBlock Text="Research" FontSize="10" VerticalAlignment="Center"/> <TextBlock Text="Research" FontSize="12" VerticalAlignment="Center"/>
</StackPanel> </StackPanel>
</Button> </Button>
</Grid> </Grid>
@@ -368,7 +368,7 @@
Interval="0.50" Interval="0.50"
Margin="0,0,0,4"/> Margin="0,0,0,4"/>
<TextBlock x:Name="BPriceHint" <TextBlock x:Name="BPriceHint"
FontSize="10" Margin="0,0,0,12" FontSize="12" Margin="0,0,0,12"
Visibility="Collapsed" Visibility="Collapsed"
Foreground="{DynamicResource MahApps.Brushes.Gray5}"/> Foreground="{DynamicResource MahApps.Brushes.Gray5}"/>
@@ -380,7 +380,7 @@
<ColumnDefinition Width="120"/> <ColumnDefinition Width="120"/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<StackPanel Grid.Column="0"> <StackPanel Grid.Column="0">
<TextBlock Text="Postage" FontSize="11" FontWeight="SemiBold" <TextBlock Text="Postage" FontSize="13" FontWeight="SemiBold"
Foreground="{DynamicResource MahApps.Brushes.Gray3}" Foreground="{DynamicResource MahApps.Brushes.Gray3}"
Margin="0,0,0,4"/> Margin="0,0,0,4"/>
<ComboBox x:Name="BPostageBox"> <ComboBox x:Name="BPostageBox">
@@ -393,7 +393,7 @@
</ComboBox> </ComboBox>
</StackPanel> </StackPanel>
<StackPanel Grid.Column="2"> <StackPanel Grid.Column="2">
<TextBlock Text="From postcode" FontSize="11" FontWeight="SemiBold" <TextBlock Text="From postcode" FontSize="13" FontWeight="SemiBold"
Foreground="{DynamicResource MahApps.Brushes.Gray3}" Foreground="{DynamicResource MahApps.Brushes.Gray3}"
Margin="0,0,0,4"/> Margin="0,0,0,4"/>
<TextBox x:Name="BPostcodeBox"/> <TextBox x:Name="BPostcodeBox"/>

View File

@@ -142,19 +142,19 @@ public partial class NewListingView : UserControl
var bmp = new BitmapImage(); var bmp = new BitmapImage();
bmp.BeginInit(); bmp.BeginInit();
bmp.UriSource = new Uri(path, UriKind.Absolute); bmp.UriSource = new Uri(path, UriKind.Absolute);
bmp.DecodePixelWidth = 80; bmp.DecodePixelWidth = 120;
bmp.CacheOption = BitmapCacheOption.OnLoad; bmp.CacheOption = BitmapCacheOption.OnLoad;
bmp.EndInit(); bmp.EndInit();
bmp.Freeze(); bmp.Freeze();
var img = new Image var img = new Image
{ {
Source = bmp, Width = 60, Height = 60, Source = bmp, Width = 96, Height = 96,
Stretch = System.Windows.Media.Stretch.UniformToFill, Stretch = System.Windows.Media.Stretch.UniformToFill,
Margin = new Thickness(3) Margin = new Thickness(4)
}; };
img.Clip = new System.Windows.Media.RectangleGeometry( img.Clip = new System.Windows.Media.RectangleGeometry(
new Rect(0, 0, 60, 60), 4, 4); new Rect(0, 0, 96, 96), 6, 6);
ThumbStrip.Children.Add(img); ThumbStrip.Children.Add(img);
} }
catch { /* skip bad files */ } catch { /* skip bad files */ }
@@ -455,18 +455,18 @@ public partial class NewListingView : UserControl
var bmp = new BitmapImage(); var bmp = new BitmapImage();
bmp.BeginInit(); bmp.BeginInit();
bmp.UriSource = new Uri(path, UriKind.Absolute); bmp.UriSource = new Uri(path, UriKind.Absolute);
bmp.DecodePixelWidth = 128; bmp.DecodePixelWidth = 160;
bmp.CacheOption = BitmapCacheOption.OnLoad; bmp.CacheOption = BitmapCacheOption.OnLoad;
bmp.EndInit(); bmp.EndInit();
bmp.Freeze(); bmp.Freeze();
var img = new Image var img = new Image
{ {
Width = 72, Height = 72, Width = 100, Height = 100,
Stretch = System.Windows.Media.Stretch.UniformToFill, Stretch = System.Windows.Media.Stretch.UniformToFill,
Source = bmp, ToolTip = System.IO.Path.GetFileName(path) Source = bmp, ToolTip = System.IO.Path.GetFileName(path)
}; };
img.Clip = new System.Windows.Media.RectangleGeometry(new Rect(0, 0, 72, 72), 4, 4); img.Clip = new System.Windows.Media.RectangleGeometry(new Rect(0, 0, 100, 100), 6, 6);
var removeBtn = new Button var removeBtn = new Button
{ {
@@ -511,7 +511,7 @@ public partial class NewListingView : UserControl
var container = new Grid var container = new Grid
{ {
Width = 72, Height = 72, Margin = new Thickness(4), Width = 100, Height = 100, Margin = new Thickness(4),
Cursor = Cursors.SizeAll, AllowDrop = true, Tag = path Cursor = Cursors.SizeAll, AllowDrop = true, Tag = path
}; };
container.Children.Add(img); container.Children.Add(img);