<Application xmlns="https://github.com/avaloniaui"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             x:Class="DodoSSH.Client.Android.DodoSshApp"
             RequestedThemeVariant="Dark">

  <!--
    Dark, and not following the system. Same reasoning as the desktop head: a terminal is a dark surface
    either way, and a light chrome around a dark terminal is the worst of both. On a phone there is a
    second reason — the theme in Resources/values/styles.xml paints the window, the status bar and the
    navigation bar before Avalonia draws a frame, and it can only be one of the two.
  -->

  <Application.Resources>
    <ResourceDictionary>
      <ResourceDictionary.MergedDictionaries>
        <!-- The same palette the desktop head draws with. See DodoSSH.Client.Shell/Theme/Palette.axaml. -->
        <ResourceInclude Source="avares://DodoSSH.Client.Shell/Theme/Palette.axaml" />
      </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
  </Application.Resources>

  <Application.Styles>
    <FluentTheme />
    <StyleInclude Source="avares://DodoSSH.Client.Android/Theme/Phone.axaml" />
  </Application.Styles>

</Application>
