App.axaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <Application xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="ApplicationAvalonia.App"
  4. xmlns:local="using:ApplicationAvalonia"
  5. RequestedThemeVariant="Dark">
  6. <!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
  7. <Application.DataTemplates>
  8. <local:ViewLocator/>
  9. </Application.DataTemplates>
  10. <Application.Styles>
  11. <FluentTheme>
  12. <FluentTheme.Palettes>
  13. <ColorPaletteResources x:Key="Light" Accent="#ffff5500" AltHigh="White" AltLow="White" AltMedium="White" AltMediumHigh="White" AltMediumLow="White" BaseHigh="Black" BaseLow="#bdcccccc" BaseMedium="#e5898989" BaseMediumHigh="#ff5d5d5d" BaseMediumLow="#f2737373" ChromeAltLow="#ff5d5d5d" ChromeBlackHigh="Black" ChromeBlackLow="#bdcccccc" ChromeBlackMedium="#ff5d5d5d" ChromeBlackMediumLow="#e5898989" ChromeDisabledHigh="#bdcccccc" ChromeDisabledLow="#e5898989" ChromeGray="#f2737373" ChromeHigh="#bdcccccc" ChromeLow="#ffececec" ChromeMedium="#f2e6e6e6" ChromeMediumLow="#ffececec" ChromeWhite="White" ListLow="#f2e6e6e6" ListMedium="#bdcccccc" RegionColor="White" />
  14. <ColorPaletteResources x:Key="Dark" Accent="#ffff5500" AltHigh="Black" AltLow="Black" AltMedium="Black" AltMediumHigh="Black" AltMediumLow="Black" BaseHigh="White" BaseLow="#ff4c4a48" BaseMedium="#ffa6a5a4" BaseMediumHigh="#ffbdbcbb" BaseMediumLow="#ff797876" ChromeAltLow="#ffbdbcbb" ChromeBlackHigh="Black" ChromeBlackLow="#ffbdbcbb" ChromeBlackMedium="Black" ChromeBlackMediumLow="Black" ChromeDisabledHigh="#ff4c4a48" ChromeDisabledLow="#ffa6a5a4" ChromeGray="#ff908e8d" ChromeHigh="#ff908e8d" ChromeLow="#ff21201e" ChromeMedium="#ff2c2a29" ChromeMediumLow="#ff413f3e" ChromeWhite="White" ListLow="#ff2c2a29" ListMedium="#ff4c4a48" RegionColor="#ff141414" />
  15. </FluentTheme.Palettes>
  16. </FluentTheme>
  17. <Style Selector="TextBox">
  18. <Setter Property="Margin" Value="0 10"/>
  19. <Setter Property="MaxWidth" Value="200"/>
  20. </Style>
  21. <Style Selector="TextBlock.h1">
  22. </Style>
  23. <Style Selector="Button">
  24. <Setter Property="Padding" Value="15 10"/>
  25. <Setter Property="Margin" Value="0 10"/>
  26. </Style>
  27. </Application.Styles>
  28. </Application>