<?xml version="1.0" encoding="UTF-8" ?>
<Shell
    x:Class="SeriesTracker.AppShell"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:contorls="clr-namespace:SeriesTracker.Controls"
    xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
    xmlns:view="clr-namespace:SeriesTracker.Views"
    Loaded="Shell_Loaded"
    Shell.FlyoutBehavior="Disabled">

    <Shell.Behaviors>
        <toolkit:StatusBarBehavior StatusBarStyle="{AppThemeBinding Light=DarkContent, Dark=LightContent}" />
    </Shell.Behaviors>
    <contorls:CustomTabBar
        centerViewBackgroundColor="#fafafa"
        centerViewCommand="{Binding CenterViewCommand}"
        centerViewText="+"
        centerViewVisible="True">
        <Tab Title="Смотрю" Icon="watching.png">
            <ShellContent ContentTemplate="{DataTemplate view:ActiveSeriesPage}" Route="MainPage" />
        </Tab>
        <Tab Title="Просмотрено" Icon="watched.png">
            <ShellContent ContentTemplate="{DataTemplate view:ActiveSeriesPage}" Route="SecondPage" />
        </Tab>
        <Tab Title="Настройки" Icon="settings.png">
            <ShellContent ContentTemplate="{DataTemplate view:SettingsPage}" Route="SettingsPage" />
        </Tab>
        <Tab Title="Информация" Icon="aboutbold.png">
            <ShellContent ContentTemplate="{DataTemplate view:InfoPage}" Route="InfoPage" />
        </Tab>
    </contorls:CustomTabBar>

</Shell>
