Skip to content

Commit

Permalink
Add AccentCircleButtonStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
ProJend committed Dec 25, 2024
1 parent 08e42a8 commit d130cf7
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/BiliLite.UWP/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<ResourceDictionary Source="Controls/ScrollGridView/ScrollGridView.xaml" />
<ResourceDictionary Source="Styles/AppBarButtonNoChevronStyle.xaml" />
<ResourceDictionary Source="Styles/TabViewStyle.xaml" />
<ResourceDictionary Source="Styles/ButtonStyle.xaml" />
<ResourceDictionary Source="Styles/TextBlockStyle.xaml" />
<ResourceDictionary Source="Styles/RevealStyle.xaml" />
<ResourceDictionary Source="Styles/Breakpoint.xaml" />
Expand Down
4 changes: 4 additions & 0 deletions src/BiliLite.UWP/BiliLite.UWP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,10 @@
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Styles\ButtonStyle.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<Page Include="Styles\RevealStyle.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
Expand Down
25 changes: 25 additions & 0 deletions src/BiliLite.UWP/Styles/ButtonStyle.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:muxc="using:Microsoft.UI.Xaml.Controls">

<ResourceDictionary.MergedDictionaries>
<muxc:XamlControlsResources>
<muxc:XamlControlsResources.MergedDictionaries>
<ResourceDictionary>
<Style
x:Key="AccentCircleButtonStyle"
BasedOn="{StaticResource AccentButtonStyle}"
TargetType="Button">
<Style.Setters>
<Setter Property="Height" Value="45" />
<Setter Property="Width" Value="45" />
<Setter Property="Margin" Value="0,8,0,0" />
<Setter Property="CornerRadius" Value="45" />
</Style.Setters>
</Style>
</ResourceDictionary>
</muxc:XamlControlsResources.MergedDictionaries>
</muxc:XamlControlsResources>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>

0 comments on commit d130cf7

Please sign in to comment.