<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="TodoList.Maui.Views.MainPage"
             BackgroundColor="#F5F5F7">

    <Grid RowDefinitions="Auto,*">
        <Button x:Name="HotKeySettingsButton"
                Text="⌨️ 设置快捷键"
                Clicked="OnHotKeySettingsClicked"
                Margin="10"
                Padding="15,8"
                BackgroundColor="#0078D4"
                TextColor="White"
                FontSize="14"
                CornerRadius="6"
                HorizontalOptions="Start">
            <Button.IsVisible>
                <OnPlatform x:TypeArguments="x:Boolean">
                    <On Platform="Windows" Value="True" />
                    <On Platform="Android" Value="False" />
                    <On Platform="iOS" Value="False" />
                    <On Platform="MacCatalyst" Value="False" />
                </OnPlatform>
            </Button.IsVisible>
        </Button>
        <WebView x:Name="MainWebView"
                 Grid.Row="1"
                 Source="http://localhost:5173" />
    </Grid>

</ContentPage>