fluent style textual radio button.
ADD
WalletWasabi.Fluent/Styles/RadioButton.axaml
+<Styles xmlns="https://github.com/avaloniaui"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
+ <Design.PreviewWith>
+ <Border Padding="20">
+ <StackPanel Orientation="Horizontal" Spacing="10">
+ <RadioButton Classes="text" Content="1D" />
+ <RadioButton Classes="text" Content="1W" />
+ <RadioButton Classes="text" Content="1M" />
+ <RadioButton Classes="text" Content="1Y" />
+ </StackPanel>
+ </Border>
+ </Design.PreviewWith>
+
+ <Style Selector="RadioButton.text">
+ <Setter Property="Padding" Value="0" />
+ <Setter Property="FontSize" Value="10" />
+ <Setter Property="FontWeight" Value="Bold" />
+ <Setter Property="Template">
+ <ControlTemplate TargetType="RadioButton">
+ <Border Name="RootBorder"
+ Background="{TemplateBinding Background}"
+ BorderBrush="{TemplateBinding BorderBrush}"
+ BorderThickness="{TemplateBinding BorderThickness}">
+
+
+ <ContentPresenter Name="PART_ContentPresenter"
+ Content="{TemplateBinding Content}"
+ ContentTemplate="{TemplateBinding ContentTemplate}"
+ TextBlock.Foreground="{TemplateBinding Foreground}"
+ Margin="{TemplateBinding Padding}"
+ HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
+ VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
+ </Border>
+ </ControlTemplate>
+ </Setter>
+ </Style>
+
+ <Style Selector="RadioButton.text /template/ ContentPresenter#PART_ContentPresenter">
+ <Setter Property="Opacity" Value="0.6" />
+ </Style>
+ <Style Selector="RadioButton.text:checked /template/ ContentPresenter#PART_ContentPresenter">
+ <Setter Property="(TextBlock.Foreground)" Value="{DynamicResource SystemAccentColor}" />
+ </Style>
+ <Style Selector="RadioButton.text:pointerover:not(:pressed) /template/ ContentPresenter#PART_ContentPresenter, RadioButton.text:checked /template/ ContentPresenter#PART_ContentPresenter, RadioButton.text:pressed /template/ ContentPresenter#PART_ContentPresenter">
+ <Setter Property="Opacity" Value="1" />
+ </Style>
+</Styles>

MODIFY
WalletWasabi.Fluent/Styles/Styles.axaml
WalletWasabi.Fluent/Styles/Styles.axaml
<StyleInclude Source="avares://WalletWasabi.Fluent/Controls/AnimatedButton.axaml" />
<StyleInclude Source="avares://WalletWasabi.Fluent/Controls/CurrencyEntryBox.axaml" />
<StyleInclude Source="avares://WalletWasabi.Fluent/Styles/DataGrid.axaml" />
+ <StyleInclude Source="avares://WalletWasabi.Fluent/Styles/RadioButton.axaml" />
</Styles>

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletBalanceChartTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletBalanceChartTileView.axaml
<DockPanel DockPanel.Dock="Top" HorizontalAlignment="Stretch" Margin="0,0,30,0">
<TextBlock Text="Balance over time" DockPanel.Dock="Left"/>
<StackPanel Orientation="Horizontal" Spacing="10" DockPanel.Dock="Right">
- <Button Content="1D" Background="Transparent" Opacity="0.5" Command="{Binding DayCommand}" />
- <Button Content="1W" Background="Transparent" Opacity="0.5" Command="{Binding WeekCommand}" />
- <Button Content="1M" Background="Transparent" Opacity="0.5" Command="{Binding MonthCommand}" />
- <Button Content="3M" Background="Transparent" Opacity="0.5" Command="{Binding ThreeMonthCommand}" />
- <Button Content="6M" Background="Transparent" Opacity="0.5" Command="{Binding SixMonthCommand}" />
- <Button Content="1Y" Background="Transparent" Opacity="0.5" Command="{Binding YearCommand}" />
+ <RadioButton Classes="text" Content="1D" Command="{Binding DayCommand}" />
+ <RadioButton Classes="text" Content="1W" Command="{Binding WeekCommand}" />
+ <RadioButton Classes="text" Content="1M" Command="{Binding MonthCommand}" />
+ <RadioButton Classes="text" Content="3M" Command="{Binding ThreeMonthCommand}" IsChecked="True" />
+ <RadioButton Classes="text" Content="6M" Command="{Binding SixMonthCommand}" />
+ <RadioButton Classes="text" Content="1Y" Command="{Binding YearCommand}" />
+ <RadioButton Classes="text" Content="All" Command="{Binding YearCommand}" />
</StackPanel>
<Panel/>
</DockPanel>

fluent style textual radio button.