Apply dark theme (Dark.Indigo) across all views
Switch MahApps.Metro base theme from Light.Indigo to Dark.Indigo in App.xaml. Fix hardcoded light-specific colours in all five views: - MainWindow: overlay backgrounds from hardcoded light-blue gradients to ThemeBackground; overlay text updated to ThemeForeground / Gray5 - SingleItemView: listing URL colour from hardcoded #1565C0 (invisible on dark) to Accent brush - PhotoAnalysisView / BulkImportView / SavedListingsView: dynamic resource brushes already used; no structural changes needed Semantic colours (green/red/amber indicators, AI gradient buttons, white text on coloured backgrounds) left unchanged as they read correctly on dark surfaces. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary.MergedDictionaries>
|
||||||
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
|
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
|
||||||
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
|
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
|
||||||
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Themes/Light.Indigo.xaml" />
|
<ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Themes/Dark.Indigo.xaml" />
|
||||||
</ResourceDictionary.MergedDictionaries>
|
</ResourceDictionary.MergedDictionaries>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</Application.Resources>
|
</Application.Resources>
|
||||||
|
|||||||
@@ -151,13 +151,8 @@
|
|||||||
<Grid>
|
<Grid>
|
||||||
<local:SingleItemView x:Name="SingleView"/>
|
<local:SingleItemView x:Name="SingleView"/>
|
||||||
<!-- Overlay shown when not connected -->
|
<!-- Overlay shown when not connected -->
|
||||||
<Border x:Name="NewListingOverlay" Visibility="Visible">
|
<Border x:Name="NewListingOverlay" Visibility="Visible"
|
||||||
<Border.Background>
|
Background="{DynamicResource MahApps.Brushes.ThemeBackground}">
|
||||||
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
|
|
||||||
<GradientStop Color="#F0F4FF" Offset="0"/>
|
|
||||||
<GradientStop Color="#EEF2FF" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
</Border.Background>
|
|
||||||
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"
|
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"
|
||||||
MaxWidth="340">
|
MaxWidth="340">
|
||||||
<!-- eBay logo circle -->
|
<!-- eBay logo circle -->
|
||||||
@@ -177,11 +172,11 @@
|
|||||||
<TextBlock Text="Connect to eBay"
|
<TextBlock Text="Connect to eBay"
|
||||||
FontSize="20" FontWeight="Bold"
|
FontSize="20" FontWeight="Bold"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
Foreground="{DynamicResource MahApps.Brushes.Gray1}"
|
Foreground="{DynamicResource MahApps.Brushes.ThemeForeground}"
|
||||||
Margin="0,0,0,8"/>
|
Margin="0,0,0,8"/>
|
||||||
<TextBlock Text="Sign in with your eBay account to start posting listings and managing your inventory."
|
<TextBlock Text="Sign in with your eBay account to start posting listings and managing your inventory."
|
||||||
FontSize="13" TextWrapping="Wrap" TextAlignment="Center"
|
FontSize="13" TextWrapping="Wrap" TextAlignment="Center"
|
||||||
Foreground="{DynamicResource MahApps.Brushes.Gray4}"
|
Foreground="{DynamicResource MahApps.Brushes.Gray5}"
|
||||||
Margin="0,0,0,24"/>
|
Margin="0,0,0,24"/>
|
||||||
<Button Click="ConnectBtn_Click"
|
<Button Click="ConnectBtn_Click"
|
||||||
Style="{StaticResource LockConnectButton}"
|
Style="{StaticResource LockConnectButton}"
|
||||||
@@ -220,13 +215,8 @@
|
|||||||
</TabItem.Header>
|
</TabItem.Header>
|
||||||
<Grid>
|
<Grid>
|
||||||
<local:BulkImportView x:Name="BulkView"/>
|
<local:BulkImportView x:Name="BulkView"/>
|
||||||
<Border x:Name="BulkOverlay" Visibility="Visible">
|
<Border x:Name="BulkOverlay" Visibility="Visible"
|
||||||
<Border.Background>
|
Background="{DynamicResource MahApps.Brushes.ThemeBackground}">
|
||||||
<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
|
|
||||||
<GradientStop Color="#F0F4FF" Offset="0"/>
|
|
||||||
<GradientStop Color="#EEF2FF" Offset="1"/>
|
|
||||||
</LinearGradientBrush>
|
|
||||||
</Border.Background>
|
|
||||||
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"
|
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center"
|
||||||
MaxWidth="340">
|
MaxWidth="340">
|
||||||
<!-- eBay logo circle -->
|
<!-- eBay logo circle -->
|
||||||
@@ -246,11 +236,11 @@
|
|||||||
<TextBlock Text="Connect to eBay"
|
<TextBlock Text="Connect to eBay"
|
||||||
FontSize="20" FontWeight="Bold"
|
FontSize="20" FontWeight="Bold"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
Foreground="{DynamicResource MahApps.Brushes.Gray1}"
|
Foreground="{DynamicResource MahApps.Brushes.ThemeForeground}"
|
||||||
Margin="0,0,0,8"/>
|
Margin="0,0,0,8"/>
|
||||||
<TextBlock Text="Sign in with your eBay account to bulk import and post multiple listings at once."
|
<TextBlock Text="Sign in with your eBay account to bulk import and post multiple listings at once."
|
||||||
FontSize="13" TextWrapping="Wrap" TextAlignment="Center"
|
FontSize="13" TextWrapping="Wrap" TextAlignment="Center"
|
||||||
Foreground="{DynamicResource MahApps.Brushes.Gray4}"
|
Foreground="{DynamicResource MahApps.Brushes.Gray5}"
|
||||||
Margin="0,0,0,24"/>
|
Margin="0,0,0,24"/>
|
||||||
<Button Click="ConnectBtn_Click"
|
<Button Click="ConnectBtn_Click"
|
||||||
Style="{StaticResource LockConnectButton}"
|
Style="{StaticResource LockConnectButton}"
|
||||||
|
|||||||
@@ -439,7 +439,7 @@
|
|||||||
Foreground="#4CAF50"/>
|
Foreground="#4CAF50"/>
|
||||||
<TextBlock Text="Posted! " FontWeight="Bold" VerticalAlignment="Center"
|
<TextBlock Text="Posted! " FontWeight="Bold" VerticalAlignment="Center"
|
||||||
Foreground="#4CAF50"/>
|
Foreground="#4CAF50"/>
|
||||||
<TextBlock x:Name="ListingUrlText" Foreground="#1565C0"
|
<TextBlock x:Name="ListingUrlText" Foreground="{DynamicResource MahApps.Brushes.Accent}"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Cursor="Hand" TextDecorations="Underline"
|
Cursor="Hand" TextDecorations="Underline"
|
||||||
MouseLeftButtonUp="ListingUrl_Click"/>
|
MouseLeftButtonUp="ListingUrl_Click"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user