ShadDarkStyles.axaml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <Styles xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:suki="https://github.com/kikipoulet/SukiUI">
  4. <Design.PreviewWith>
  5. <Border Padding="20">
  6. <!-- Add Controls for Previewer Here -->
  7. </Border>
  8. </Design.PreviewWith>
  9. <Style Selector="Button.Flat /template/ TextBlock">
  10. <Setter Property="Foreground" Value="Black" />
  11. </Style>
  12. <Style Selector="Button.Flat /template/ suki|Loading">
  13. <Setter Property="Foreground" Value="Black" />
  14. </Style>
  15. <Style Selector="Button.Flat /template/ ContentPresenter">
  16. <Setter Property="Foreground" Value="Black" />
  17. </Style>
  18. <Style Selector="ToggleSwitch /template/ Border">
  19. <Setter Property="Background" Value="#111111" />
  20. <Setter Property="BorderBrush" Value="#111111" />
  21. <Setter Property="CornerRadius" Value="100"></Setter>
  22. </Style>
  23. <Style Selector="ToggleSwitch:checked /template/ Border#SwitchBackground">
  24. <Setter Property="Background" Value="White" />
  25. </Style>
  26. <Style Selector="RadioButton.Chips:checked TextBlock">
  27. <Setter Property="Foreground" Value="#111111" />
  28. <Setter Property="FontWeight" Value="Bold"></Setter>
  29. </Style>
  30. <Style Selector="RadioButton.Chips:checked AccessText">
  31. <Setter Property="Foreground" Value="#111111" />
  32. </Style>
  33. <Style Selector="ToggleButton:checked AccessText">
  34. <Setter Property="Foreground" Value="#111111" />
  35. </Style>
  36. <Style Selector="Border.ThumbB">
  37. <Setter Property="Background" Value="#111111" />
  38. </Style>
  39. <Style Selector="CheckBox">
  40. <Setter Property="Template">
  41. <ControlTemplate>
  42. <Grid ColumnDefinitions="Auto,*">
  43. <suki:GlassCard IsInteractive="True" Classes="Control" Name="border"
  44. Width="20"
  45. Height="20"
  46. VerticalAlignment="Center"
  47. Classes.PrimaryOpaque="{TemplateBinding IsChecked}"
  48. CornerRadius="6">
  49. <Panel>
  50. <Path Name="checkMark"
  51. Width="9"
  52. Height="9" Opacity="1"
  53. Margin="1,1,0,0"
  54. HorizontalAlignment="Center"
  55. VerticalAlignment="Center"
  56. FlowDirection="LeftToRight"
  57. Data="M 1145.607177734375,430 C1145.607177734375,430 1141.449951171875,435.0772705078125 1141.449951171875,435.0772705078125 1141.449951171875,435.0772705078125 1139.232177734375,433.0999755859375 1139.232177734375,433.0999755859375 1139.232177734375,433.0999755859375 1138,434.5538330078125 1138,434.5538330078125 1138,434.5538330078125 1141.482177734375,438 1141.482177734375,438 1141.482177734375,438 1141.96875,437.9375 1141.96875,437.9375 1141.96875,437.9375 1147,431.34619140625 1147,431.34619140625 1147,431.34619140625 1145.607177734375,430 1145.607177734375,430 z"
  58. Fill="#111111"
  59. Stretch="Uniform" >
  60. <Path.Transitions>
  61. <Transitions>
  62. <DoubleTransition Property="Opacity" Duration="0:0:0.2"></DoubleTransition>
  63. </Transitions>
  64. </Path.Transitions>
  65. </Path>
  66. <Border Name="IndetBorder" Opacity="0" VerticalAlignment="Center" HorizontalAlignment="Center" Background="White" Height="3" Width="8" CornerRadius="2">
  67. <Border.Transitions>
  68. <Transitions>
  69. <DoubleTransition Property="Opacity" Duration="0:0:0.2"></DoubleTransition>
  70. </Transitions>
  71. </Border.Transitions>
  72. </Border>
  73. </Panel>
  74. </suki:GlassCard>
  75. <ContentPresenter Name="PART_ContentPresenter"
  76. Grid.Column="1"
  77. Margin="{TemplateBinding Padding}"
  78. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  79. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  80. Content="{TemplateBinding Content}"
  81. ContentTemplate="{TemplateBinding ContentTemplate}"
  82. FontSize="{TemplateBinding FontSize}"
  83. IsVisible="{TemplateBinding Content,
  84. Converter={x:Static ObjectConverters.IsNotNull}}"
  85. RecognizesAccessKey="True" />
  86. </Grid>
  87. </ControlTemplate>
  88. </Setter>
  89. </Style>
  90. <Style Selector="RadioButton">
  91. <Setter Property="Background" Value="Transparent" />
  92. <Setter Property="BorderBrush" Value="{DynamicResource SukiControlBorderBrush}" />
  93. <Setter Property="BorderThickness" Value="1.2" />
  94. <Setter Property="FontSize" Value="14" />
  95. <Setter Property="Template">
  96. <ControlTemplate>
  97. <Grid Background="{TemplateBinding Background}" ColumnDefinitions="Auto,*">
  98. <suki:GlassCard Width="20" Height="20" CornerRadius="50" Classes="Control"
  99. Classes.PrimaryOpaque="{TemplateBinding IsChecked}"
  100. />
  101. <Ellipse Height="8" Width="8" HorizontalAlignment="Center" VerticalAlignment="Center" IsVisible="{TemplateBinding IsChecked}" Fill="#111111"/>
  102. <ContentPresenter Name="PART_ContentPresenter"
  103. Grid.Column="1"
  104. Margin="10,0,0,0"
  105. VerticalAlignment="Center"
  106. Content="{TemplateBinding Content}"
  107. ContentTemplate="{TemplateBinding ContentTemplate}"
  108. FontSize="{TemplateBinding FontSize}"
  109. RecognizesAccessKey="True" />
  110. </Grid>
  111. </ControlTemplate>
  112. </Setter>
  113. </Style>
  114. </Styles>