<?xml version="1.0" encoding="utf-8" ?>
<Application
    x:Class="RodelAgent.UI.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:converters="using:Richasy.WinUI.Share.Converters"
    xmlns:local="using:RodelAgent.UI"
    xmlns:localConverters="using:RodelAgent.UI.Converters">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
                <ResourceDictionary Source="ms-appx:///Controls/Base/CardPanel/CardPanel.xaml" />
                <ResourceDictionary Source="ms-appx:///Controls/Base/ImageEx/ImageEx.xaml" />
                <ResourceDictionary Source="ms-appx:///Controls/Base/Markdown/MarkdownTextBlock.xaml" />
                <ResourceDictionary Source="ms-appx:///Controls/Items/ChatModelCard/ChatModelCard.xaml" />
                <ResourceDictionary Source="ms-appx:///Controls/Items/ChatServiceItemControl/ChatServiceItemControl.xaml" />
                <ResourceDictionary Source="ms-appx:///Controls/Items/ChatSessionItemControl/ChatSessionItemControl.xaml" />
                <ResourceDictionary Source="ms-appx:///Controls/Items/ChatPluginItemControl/ChatPluginItemControl.xaml" />
                <ResourceDictionary Source="ms-appx:///Controls/Items/ChatSessionPresetItemControl/ChatSessionPresetItemControl.xaml" />
                <ResourceDictionary Source="ms-appx:///Controls/Items/ChatGroupPresetItemControl/ChatGroupPresetItemControl.xaml" />
                <ResourceDictionary Source="ms-appx:///Controls/Items/ChatGroupItemControl/ChatGroupItemControl.xaml" />
                <ResourceDictionary Source="ms-appx:///Controls/Items/TranslateServiceItemControl/TranslateServiceItemControl" />
                <ResourceDictionary Source="ms-appx:///Controls/Items/DrawModelCard/DrawModelCard.xaml" />
                <ResourceDictionary Source="ms-appx:///Controls/Items/DrawServiceItemControl/DrawServiceItemControl.xaml" />
                <ResourceDictionary Source="ms-appx:///Controls/Items/AudioModelCard/AudioModelCard.xaml" />
                <ResourceDictionary Source="ms-appx:///Controls/Items/AudioServiceItemControl/AudioServiceItemControl.xaml" />
                <ResourceDictionary Source="ms-appx:///Styles/Overwrites.xaml" />
                <ResourceDictionary Source="ms-appx:///Styles/TrayResources.xaml" />
                <ResourceDictionary Source="ms-appx:///Richasy.WinUI.Share/Base/CustomNavigationViewResources.xaml" />
            </ResourceDictionary.MergedDictionaries>

            <ResourceDictionary.ThemeDictionaries>
                <ResourceDictionary x:Key="Light">
                    <BitmapImage x:Key="QQGroup" UriSource="ms-appx:///Assets/qq_group_light.jpg" />
                    <SolidColorBrush x:Key="HighContrastDividerBrush" Color="Transparent" />
                    <SolidColorBrush x:Key="SelectorCardCheckedBackgroundBrsuh" Color="{StaticResource SolidBackgroundFillColorBase}" />
                    <SolidColorBrush x:Key="SelectorCardCheckedPointerOverBackgroundBrsuh" Color="{StaticResource SolidBackgroundFillColorBase}" />
                    <SolidColorBrush x:Key="SelectorCardCheckedPressedBackgroundBrsuh" Color="{StaticResource SolidBackgroundFillColorQuarternary}" />
                </ResourceDictionary>
                <ResourceDictionary x:Key="Dark">
                    <BitmapImage x:Key="QQGroup" UriSource="ms-appx:///Assets/qq_group_dark.jpg" />
                    <SolidColorBrush x:Key="HighContrastDividerBrush" Color="Transparent" />
                    <SolidColorBrush x:Key="SelectorCardCheckedBackgroundBrsuh" Color="{StaticResource SolidBackgroundFillColorBase}" />
                    <SolidColorBrush x:Key="SelectorCardCheckedPointerOverBackgroundBrsuh" Color="{StaticResource SolidBackgroundFillColorBase}" />
                    <SolidColorBrush x:Key="SelectorCardCheckedPressedBackgroundBrsuh" Color="{StaticResource SolidBackgroundFillColorQuarternary}" />
                </ResourceDictionary>
                <ResourceDictionary x:Key="HighContrast">
                    <BitmapImage x:Key="QQGroup" UriSource="ms-appx:///Assets/qq_group_dark.jpg" />
                    <SolidColorBrush x:Key="HighContrastDividerBrush" Color="{ThemeResource SystemColorWindowTextColor}" />
                    <StaticResource x:Key="SelectorCardCheckedBackgroundBrsuh" ResourceKey="SystemControlHighlightAccentBrush" />
                    <StaticResource x:Key="SelectorCardCheckedPointerOverBackgroundBrsuh" ResourceKey="SystemControlForegroundAccentBrush" />
                    <StaticResource x:Key="SelectorCardCheckedPressedBackgroundBrsuh" ResourceKey="SystemControlBackgroundBaseMediumLowBrush" />
                </ResourceDictionary>
            </ResourceDictionary.ThemeDictionaries>

            <x:Double x:Key="WindowNarrowMinWidth">850</x:Double>

            <converters:BoolToIconVariantConverter x:Key="BoolToIconVariantConverter" />
            <converters:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />
            <converters:BoolToVisibilityConverter x:Key="BoolToVisibilityReverseConverter" IsReverse="True" />
            <converters:ObjectToBoolConverter x:Key="ObjectToBoolConverter" />
            <converters:ObjectToBoolConverter x:Key="ObjectToBoolReverseConverter" IsReverse="True" />
            <converters:ObjectToVisibilityConverter x:Key="ObjectToVisibilityConverter" />
            <converters:ObjectToVisibilityConverter x:Key="ObjectToVisibilityReverseConverter" IsReverse="True" />
            <localConverters:SecondsToTimeConverter x:Key="SecondsToTimeConverter" />
            <localConverters:TokenCountConverter x:Key="TokenCountConverter" />
            <localConverters:GridLengthConverter x:Key="GridLengthConverter" />

            <SolidColorBrush x:Key="AnthropicColor" Color="#F1F0E8" />
            <SolidColorBrush x:Key="AzureOpenAIColor" Color="#FFFFFF" />
            <LinearGradientBrush x:Key="DashScopeColor" StartPoint="0,0" EndPoint="1,1">
                <GradientStop Offset="0" Color="#00055F" />
                <GradientStop Offset="1" Color="#6F69F7" />
            </LinearGradientBrush>
            <SolidColorBrush x:Key="DeepSeekColor" Color="#4D6BFE" />
            <LinearGradientBrush x:Key="GeminiColor" StartPoint="0,1" EndPoint="1,0">
                <GradientStop Offset="0" Color="#1C69FF" />
                <GradientStop Offset="1" Color="#F0DCD6" />
            </LinearGradientBrush>
            <SolidColorBrush x:Key="GroqColor" Color="#F55036" />
            <SolidColorBrush x:Key="HunYuanColor" Color="#0053e0" />
            <SolidColorBrush x:Key="LingYiColor" Color="#003425" />
            <LinearGradientBrush x:Key="MistralAIColor" StartPoint="0,0" EndPoint="0,1">
                <GradientStop Offset="0" Color="#F7D046" />
                <GradientStop Offset="0.25" Color="#F2A73B" />
                <GradientStop Offset="0.5" Color="#EE792F" />
                <GradientStop Offset="0.75" Color="#EE792F" />
                <GradientStop Offset="1" Color="#EA3326" />
            </LinearGradientBrush>
            <SolidColorBrush x:Key="MoonshotColor" Color="#16191E" />
            <SolidColorBrush x:Key="OllamaColor" Color="White" />
            <SolidColorBrush x:Key="OpenAIColor" Color="Black" />
            <SolidColorBrush x:Key="OpenRouterColor" Color="#6566F1" />
            <SolidColorBrush x:Key="PerplexityColor" Color="#22B8CD" />
            <LinearGradientBrush x:Key="QianFanColor" StartPoint="0,0" EndPoint="1,0">
                <GradientStop Offset="0" Color="#0A51C3" />
                <GradientStop Offset="1" Color="#23A4FB" />
            </LinearGradientBrush>
            <SolidColorBrush x:Key="SparkDeskColor" Color="#0070f0" />
            <SolidColorBrush x:Key="TogetherAIColor" Color="#0f6fff" />
            <SolidColorBrush x:Key="ZhiPuColor" Color="#3859FF" />
            <SolidColorBrush x:Key="BaiduColor" Color="#2932E1" />
            <LinearGradientBrush x:Key="AzureColor" StartPoint="0,0" EndPoint="1,0">
                <GradientStop Offset="0" Color="#3CCBF4" />
                <GradientStop Offset="1" Color="#2892DF" />
            </LinearGradientBrush>
            <LinearGradientBrush x:Key="AzureSpeechColor" StartPoint="0,0" EndPoint="1,0">
                <GradientStop Offset="0" Color="#50E6FF" />
                <GradientStop Offset="1" Color="#773ADC" />
            </LinearGradientBrush>
            <SolidColorBrush x:Key="AliColor" Color="#FF6A00" />
            <SolidColorBrush x:Key="TencentColor" Color="#00A3FF" />
            <SolidColorBrush x:Key="YoudaoColor" Color="#E10012" />
            <LinearGradientBrush x:Key="VolcanoColor" StartPoint="0,0" EndPoint="1,0">
                <GradientStop Offset="0" Color="#00F3CE" />
                <GradientStop Offset="1" Color="#3F30FF" />
            </LinearGradientBrush>
            <SolidColorBrush x:Key="SiliconFlowColor" Color="#7C3AED" />
            <SolidColorBrush x:Key="DouBaoColor" Color="White" />
        </ResourceDictionary>
    </Application.Resources>
</Application>
