|
| 1 | +<?xml version="1.0" encoding="UTF-8" ?> |
| 2 | +<Shell |
| 3 | + x:Class="TFMAudioApp.AppShell" |
| 4 | + xmlns="http://schemas.microsoft.com/dotnet/2021/maui" |
| 5 | + xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" |
| 6 | + xmlns:views="clr-namespace:TFMAudioApp.Views" |
| 7 | + xmlns:controls="clr-namespace:TFMAudioApp.Controls" |
| 8 | + Title="TFM Audio" |
| 9 | + FlyoutBehavior="Flyout" |
| 10 | + Shell.BackgroundColor="{StaticResource PageBackgroundColor}" |
| 11 | + Shell.FlyoutBackgroundColor="{StaticResource CardBackgroundColor}" |
| 12 | + Shell.TitleColor="White" |
| 13 | + Shell.ForegroundColor="White"> |
| 14 | + |
| 15 | + <!-- Mini Player Footer --> |
| 16 | + <Shell.FlyoutFooter> |
| 17 | + <controls:MiniPlayerControl x:Name="MiniPlayer"/> |
| 18 | + </Shell.FlyoutFooter> |
| 19 | + |
| 20 | + <Shell.FlyoutHeader> |
| 21 | + <VerticalStackLayout Padding="20" Spacing="10" BackgroundColor="{StaticResource PageBackgroundColor}"> |
| 22 | + <Label Text="🎵" FontSize="48" HorizontalOptions="Center"/> |
| 23 | + <Label Text="TFM Audio" |
| 24 | + FontSize="24" |
| 25 | + FontAttributes="Bold" |
| 26 | + HorizontalOptions="Center" |
| 27 | + TextColor="{StaticResource Primary}"/> |
| 28 | + <!-- Connection Status Indicator --> |
| 29 | + <HorizontalStackLayout HorizontalOptions="Center" Spacing="5" Margin="0,5,0,0"> |
| 30 | + <Label x:Name="ConnectionIndicator" |
| 31 | + Text="●" |
| 32 | + FontSize="12" |
| 33 | + TextColor="{StaticResource Primary}" |
| 34 | + VerticalOptions="Center"/> |
| 35 | + <Label x:Name="ConnectionText" |
| 36 | + Text="Connected" |
| 37 | + FontSize="12" |
| 38 | + TextColor="{StaticResource Gray400}" |
| 39 | + VerticalOptions="Center"/> |
| 40 | + </HorizontalStackLayout> |
| 41 | + <BoxView HeightRequest="1" Color="{StaticResource Gray600}" Margin="0,10,0,0"/> |
| 42 | + </VerticalStackLayout> |
| 43 | + </Shell.FlyoutHeader> |
| 44 | + |
| 45 | + <!-- Setup Page (not in flyout) --> |
| 46 | + <ShellContent |
| 47 | + Route="setup" |
| 48 | + ContentTemplate="{DataTemplate views:SetupPage}" |
| 49 | + FlyoutItemIsVisible="False"/> |
| 50 | + |
| 51 | + <!-- Main Navigation --> |
| 52 | + <FlyoutItem Title="Home" Icon="{OnPlatform Default='home.png'}"> |
| 53 | + <ShellContent |
| 54 | + Route="home" |
| 55 | + ContentTemplate="{DataTemplate views:HomePage}"/> |
| 56 | + </FlyoutItem> |
| 57 | + |
| 58 | + <FlyoutItem Title="Channels" Icon="{OnPlatform Default='channels.png'}"> |
| 59 | + <ShellContent |
| 60 | + Route="channels" |
| 61 | + ContentTemplate="{DataTemplate views:ChannelsPage}"/> |
| 62 | + </FlyoutItem> |
| 63 | + |
| 64 | + <FlyoutItem Title="Playlists" Icon="{OnPlatform Default='playlists.png'}"> |
| 65 | + <ShellContent |
| 66 | + Route="playlists" |
| 67 | + ContentTemplate="{DataTemplate views:PlaylistsPage}"/> |
| 68 | + </FlyoutItem> |
| 69 | + |
| 70 | + <FlyoutItem Title="Downloads" Icon="{OnPlatform Default='downloads.png'}"> |
| 71 | + <ShellContent |
| 72 | + Route="downloads" |
| 73 | + ContentTemplate="{DataTemplate views:DownloadsPage}"/> |
| 74 | + </FlyoutItem> |
| 75 | + |
| 76 | + <FlyoutItem Title="Settings" Icon="{OnPlatform Default='settings.png'}"> |
| 77 | + <ShellContent |
| 78 | + Route="settings" |
| 79 | + ContentTemplate="{DataTemplate views:SettingsPage}"/> |
| 80 | + </FlyoutItem> |
| 81 | + |
| 82 | +</Shell> |
0 commit comments