<?xml version="1.0" encoding="UTF-8" ?>
<Shell
    x:Class="GameAtlas.AppShell"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:views="clr-namespace:GameAtlas.Views"
    Shell.FlyoutBehavior="Disabled"
    Shell.NavBarIsVisible="False">

    <Shell.Resources>
        <ResourceDictionary>
            <Style x:Key="BaseStyle" TargetType="Element">
                <Setter Property="Shell.ForegroundColor" Value="{StaticResource Gray1000}" />
                <Setter Property="Shell.UnselectedColor" Value="{StaticResource Gray300}" />
                <Setter Property="Shell.TabBarBackgroundColor" Value="{StaticResource Gray1000}" />
                <Setter Property="Shell.TabBarForegroundColor" Value="{StaticResource White}"/>
                <Setter Property="Shell.TabBarUnselectedColor" Value="{StaticResource Gray300}"/>
            </Style>
            <Style TargetType="TabBar" BasedOn="{StaticResource BaseStyle}" />
            <Style TargetType="FlyoutItem" BasedOn="{StaticResource BaseStyle}" />
        </ResourceDictionary>
    </Shell.Resources>

    <TabBar>
        <ShellContent
            Title="Accueil"
            Icon="home"
            ContentTemplate="{DataTemplate views:PageAcceuil}"
            Route="PageAccueil" />
        <ShellContent
            Title="Parcourir"
            Icon="console"
            ContentTemplate="{DataTemplate views:PageParcourir}"
            Route="PageParcourir" />
        <ShellContent
            Title="Profil"
            Icon="account"
            ContentTemplate="{DataTemplate views:PageProfil}"
            Route="PageProfil" />
    </TabBar>


</Shell>
