<?xml version="1.0" encoding="utf-8" ?>
<Shell
    x:Class="FrymasterBadgeApp.AppShell"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:pages="clr-namespace:FrymasterBadgeApp"
    x:Name="thisShell"
    Shell.FlyoutBehavior="Disabled"
    
    Shell.BackgroundColor="{AppThemeBinding Light={StaticResource Primary}, Dark={StaticResource BgDark}}"
    
    Shell.ForegroundColor="White"
    Shell.TitleColor="White"
    
    Shell.TabBarBackgroundColor="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource CardDark}}"
    Shell.TabBarForegroundColor="{StaticResource Primary}"
    Shell.TabBarTitleColor="{StaticResource Primary}"
    Shell.TabBarUnselectedColor="{StaticResource Gray500}"
    Shell.UnselectedColor="{StaticResource Gray500}">

    <Shell.ToolbarItems>
        <ToolbarItem
            Clicked="OnSettingsClicked"
            Order="Secondary"
            Text="Settings" />
        <ToolbarItem
            Clicked="OnThemeClicked"
            Order="Primary"
            Text="Theme" />
        <ToolbarItem
            Clicked="OnManageCompaniesClicked"
            Order="Secondary"
            Text="Manage Companies" />
        <ToolbarItem
            Clicked="OnAboutClicked"
            Order="Secondary"
            Text="About" />
        <ToolbarItem
            Clicked="OnExitClicked"
            Order="Secondary"
            Text="Exit" />
    </Shell.ToolbarItems>

    <TabBar x:Name="MainTabBar" Route="MainTabBar">
        <Tab x:Name="SetupTabContainer" Title="Setup">
            <ShellContent
                x:Name="SetupTab"
                Title="Setup"
                ContentTemplate="{DataTemplate pages:CompanyPage}"
                Route="CompanyPage" />
        </Tab>
    </TabBar>
</Shell>