Übetsetzung aller Benutzerseiten hinzugefügt

This commit is contained in:
2026-02-17 11:51:52 +01:00
parent e50f578547
commit 94479d259c
11 changed files with 980 additions and 76 deletions

View File

@@ -2,6 +2,7 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
xmlns:properties="clr-namespace:SkyTeam"
Title="SettingsPage"
Background="{DynamicResource PageBackground}">
@@ -19,8 +20,8 @@
<StackPanel Orientation="Horizontal">
<Ellipse Width="36" Height="36" Fill="White" Margin="0,0,10,0"/>
<StackPanel>
<TextBlock Text="Sky Team Airlines" FontSize="20" FontWeight="Bold" Foreground="White"/>
<TextBlock Text="Sichere und komfortable Flüge weltweit" FontSize="12" Foreground="White"/>
<TextBlock Text="{x:Static properties:Resources.HeaderTitle}" FontSize="20" FontWeight="Bold" Foreground="White"/>
<TextBlock Text="{x:Static properties:Resources.HeaderSubtitle}" FontSize="12" Foreground="White"/>
</StackPanel>
</StackPanel>
</Border>
@@ -30,44 +31,44 @@
<Button Height="50" Margin="5" Click="HomeButton_Click" Background="Transparent" BorderThickness="0">
<StackPanel Orientation="Horizontal">
<iconPacks:PackIconMaterial Kind="Home" Width="20" Margin="0,0,10,0" Foreground="{DynamicResource PrimaryText}"/>
<TextBlock Text="Home" Foreground="{DynamicResource PrimaryText}"/>
<TextBlock Text="{x:Static properties:Resources.SidebarHome}" Foreground="{DynamicResource PrimaryText}"/>
</StackPanel>
</Button>
<Button Height="50" Margin="5" Click="BookingsButton_Click" Background="Transparent" BorderThickness="0">
<StackPanel Orientation="Horizontal">
<iconPacks:PackIconMaterial Kind="Airplane" Width="20" Margin="0,0,10,0" Foreground="{DynamicResource PrimaryText}"/>
<TextBlock Text="Meine Buchungen" Foreground="{DynamicResource PrimaryText}"/>
<TextBlock Text="{x:Static properties:Resources.SidebarBookings}" Foreground="{DynamicResource PrimaryText}"/>
</StackPanel>
</Button>
<Button Height="50" Margin="5" Background="{DynamicResource CardBackground}" BorderThickness="0">
<StackPanel Orientation="Horizontal">
<iconPacks:PackIconMaterial Kind="Cog" Width="20" Margin="0,0,10,0" Foreground="{DynamicResource PrimaryText}"/>
<TextBlock Text="Einstellungen" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}"/>
<TextBlock Text="{x:Static properties:Resources.SidebarSettings}" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}"/>
</StackPanel>
</Button>
<Button Height="50" Margin="5" Background="#FFEBEB" BorderBrush="#FFB71C1C" Foreground="#D32F2F" FontWeight="Bold" Click="LogoutButton_Click">
<StackPanel Orientation="Horizontal">
<iconPacks:PackIconMaterial Kind="Logout" Width="20" Margin="0,0,10,0"/>
<TextBlock Text="Abmelden"/>
<TextBlock Text="{x:Static properties:Resources.SidebarLogout}"/>
</StackPanel>
</Button>
</StackPanel>
<Grid Grid.Row="1" Grid.Column="1" Margin="30">
<StackPanel>
<TextBlock Text="Einstellungen" FontSize="28" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}"/>
<TextBlock Text="Passen Sie Ihr Erlebnis an" FontSize="16" Foreground="{DynamicResource SecondaryText}" Margin="0,0,0,25"/>
<TextBlock Text="{x:Static properties:Resources.SidebarSettings}" FontSize="28" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}"/>
<TextBlock Text="{x:Static properties:Resources.CustomizeExperience}" FontSize="16" Foreground="{DynamicResource SecondaryText}" Margin="0,0,0,25"/>
<Border Background="{DynamicResource CardBackground}" CornerRadius="12" Padding="25" Margin="0,0,0,25">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<iconPacks:PackIconMaterial Kind="ThemeLightDark" Width="32" Height="32" Foreground="{DynamicResource PrimaryText}" Margin="0,0,15,0"/>
<StackPanel VerticalAlignment="Center" Width="300">
<TextBlock Text="Dark Mode" FontSize="18" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}"/>
<TextBlock Text="Dunkles Design aktivieren" FontSize="14" Foreground="{DynamicResource SecondaryText}"/>
<TextBlock Text="{x:Static properties:Resources.DarkMode}" FontSize="18" FontWeight="Bold" Foreground="{DynamicResource PrimaryText}"/>
<TextBlock Text="{x:Static properties:Resources.EnableDarkMode}" FontSize="14" Foreground="{DynamicResource SecondaryText}"/>
</StackPanel>
<ToggleButton x:Name="DarkModeToggle" Width="60" Height="30" Checked="DarkModeToggle_Checked" Unchecked="DarkModeToggle_Unchecked">
@@ -111,12 +112,12 @@
Margin="0,0,15,0"/>
<StackPanel Width="300">
<TextBlock Text="Sprache"
<TextBlock Text="{x:Static properties:Resources.Language}"
FontSize="18"
FontWeight="Bold"
Foreground="{DynamicResource PrimaryText}"/>
<TextBlock Text="Wählen Sie Ihre bevorzugte Sprache"
<TextBlock Text="{x:Static properties:Resources.ChooseLanguage}"
FontSize="14"
Foreground="{DynamicResource SecondaryText}"/>
</StackPanel>
@@ -137,15 +138,15 @@
<StackPanel>
<StackPanel Orientation="Horizontal" Margin="0,0,0,15">
<iconPacks:PackIconMaterial Kind="Alert" Width="24" Height="24" Foreground="#D32F2F" Margin="0,0,10,0"/>
<TextBlock Text="Gefahrenzone" FontSize="20" FontWeight="Bold" Foreground="#D32F2F"/>
<TextBlock Text="{x:Static properties:Resources.DangerZone}" FontSize="20" FontWeight="Bold" Foreground="#D32F2F"/>
</StackPanel>
<TextBlock Text="Das Löschen Ihres Kontos ist endgültig und kann nicht rückgängig gemacht werden." FontSize="14" Foreground="#B71C1C" Margin="0,0,0,15"/>
<TextBlock Text="{x:Static properties:Resources.DeleteAccountWarning}" FontSize="14" Foreground="#B71C1C" Margin="0,0,0,15"/>
<Button x:Name="DeleteAccountButton" Width="220" Height="45" Background="#D32F2F" Foreground="White" FontWeight="Bold" HorizontalAlignment="Left" Click="DeleteAccountButton_Click">
<StackPanel Orientation="Horizontal">
<iconPacks:PackIconMaterial Kind="AccountRemove" Width="20" Margin="0,0,10,0"/>
<TextBlock Text="Konto löschen"/>
<TextBlock Text="{x:Static properties:Resources.DeleteAccount}"/>
</StackPanel>
</Button>
</StackPanel>