<Window
    BorderThickness="1"
    CanMaximize="False"
    CanResize="False"
    ExtendClientAreaChromeHints="SystemChrome"
    ExtendClientAreaTitleBarHeightHint="-1"
    SizeToContent="WidthAndHeight"
    Title="SettingsWindow"
    WindowStartupLocation="Manual"
    d:DesignHeight="450"
    d:DesignWidth="800"
    mc:Ignorable="d"
    x:Class="PicView.Avalonia.MacOS.Views.SettingsWindow"
    x:DataType="viewModels:MainViewModel"
    xmlns="https://github.com/avaloniaui"
    xmlns:buttons="clr-namespace:PicView.Avalonia.Views.UC.Buttons;assembly=PicView.Avalonia"
    xmlns:customControls="clr-namespace:PicView.Avalonia.CustomControls;assembly=PicView.Avalonia"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:main="clr-namespace:PicView.Avalonia.Views.Main;assembly=PicView.Avalonia"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:viewModels="clr-namespace:PicView.Avalonia.ViewModels;assembly=PicView.Avalonia"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Design.DataContext>
        <viewModels:MainViewModel />
    </Design.DataContext>
    <Border
        BorderBrush="{DynamicResource MainBorderColor}"
        BorderThickness="1"
        CornerRadius="8"
        PointerPressed="MoveWindow">
        <StackPanel>
            <Panel>
                <customControls:IconButton
                    Background="Transparent"
                    Classes="noBorderHover"
                    Command="{CompiledBinding SettingsViewModel.GoBackCommand}"
                    Data="{StaticResource ArrowLeftGeometry}"
                    Foreground="{StaticResource SecondaryTextColor}"
                    Height="28"
                    HorizontalAlignment="Left"
                    IconHeight="12"
                    IconWidth="12"
                    Margin="75,0,0,0"
                    Width="35"
                    ZIndex="1"
                    x:Name="GoBackButton" />

                <customControls:IconButton
                    Background="Transparent"
                    Classes="noBorderHover"
                    Command="{CompiledBinding SettingsViewModel.GoForwardCommand}"
                    Data="{StaticResource ArrowRightGeometry}"
                    Foreground="{StaticResource SecondaryTextColor}"
                    HorizontalAlignment="Left"
                    IconHeight="12"
                    IconWidth="12"
                    Margin="110,0,0,0"
                    Width="35"
                    ZIndex="1"
                    x:Name="GoForwardButton" />

                <TextBlock
                    Background="{DynamicResource WindowBackgroundColor}"
                    Classes="txt"
                    Foreground="{StaticResource SecondaryTextColor}"
                    Height="28"
                    LineHeight="28"
                    Text="{CompiledBinding Translation.Settings.Value,
                                           Mode=OneWay}"
                    TextAlignment="Center"
                    x:Name="TitleText" />

                <buttons:SettingsMenuButton
                    HorizontalAlignment="Right"
                    ZIndex="1"
                    x:Name="SettingsButton" />
            </Panel>

            <main:SettingsView Background="{DynamicResource WindowBackgroundColor}" x:Name="SettingsView" />
        </StackPanel>
    </Border>
</Window>