remove style duplications
ADD
WalletWasabi.Fluent/Styles/BalanceLineChart.axaml
+<Styles xmlns="https://github.com/avaloniaui"
+ xmlns:c="clr-namespace:WalletWasabi.Fluent.Controls">
+ <!-- LineChart Area -->
+ <Style Selector="c|LineChart.area">
+ <Setter Property="AreaMargin" Value="0" />
+ <Setter Property="AreaStrokeThickness" Value="2" />
+ <Setter Property="AreaStrokeLineCap" Value="Round" />
+ <Setter Property="AreaMinViableWidth" Value="40" />
+ <Setter Property="AreaMinViableHeight" Value="20" />
+ <Setter Property="AreaFill">
+ <SolidColorBrush Color="#72BD81" Opacity="0.2" />
+ </Setter>
+ <Setter Property="AreaStroke">
+ <SolidColorBrush Color="#72BD81" Opacity="1.0" />
+ </Setter>
+ </Style>
+ <!-- LineChart Border -->
+ <Style Selector="c|LineChart.border">
+ <Setter Property="BorderThickness" Value="1" />
+ <Setter Property="BorderRadiusX" Value="1" />
+ <Setter Property="BorderRadiusY" Value="1" />
+ </Style>
+ <!-- LineChart XAxis -->
+ <Style Selector="c|LineChart.xAxis">
+ <Setter Property="XAxisOffset" Value="0,0" />
+ <Setter Property="XAxisOpacity" Value="1.0" />
+ <Setter Property="XAxisStrokeThickness" Value="0.7" />
+ <Setter Property="XAxisArrowSize" Value="3.5" />
+ <Setter Property="XAxisMinViableWidth" Value="0" />
+ <Setter Property="XAxisMinViableHeight" Value="0" />
+ </Style>
+ <!-- LineChart XAxis Labels -->
+ <Style Selector="c|LineChart.xAxisLabels">
+ <Setter Property="XAxisLabelForeground" Value="{DynamicResource TextForegroundColor}" />
+ <Setter Property="XAxisLabelAngle" Value="0" />
+ <Setter Property="XAxisLabelOffset" Value="0,10" />
+ <Setter Property="XAxisLabelAlignment" Value="Center" />
+ <Setter Property="XAxisLabelFontSize" Value="10" />
+ <Setter Property="XAxisLabelOpacity" Value="0.8" />
+ </Style>
+ <!-- LineChart YAxis -->
+ <Style Selector="c|LineChart.yAxis">
+ <Setter Property="YAxisOffset" Value="0,0" />
+ <Setter Property="YAxisOpacity" Value="1.0" />
+ <Setter Property="YAxisStroke" Value="{DynamicResource TextForegroundColor}" />
+ <Setter Property="YAxisStrokeThickness" Value="0" />
+ <Setter Property="YAxisArrowSize" Value="3.5" />
+ <Setter Property="YAxisMinViableWidth" Value="0" />
+ <Setter Property="YAxisMinViableHeight" Value="0" />
+ </Style>
+ <!-- LineChart YAxis Labels -->
+ <Style Selector="c|LineChart.yAxisLabels">
+ <Setter Property="YAxisLabelForeground" Value="{DynamicResource TextForegroundColor}" />
+ <Setter Property="YAxisLabelAngle" Value="0" />
+ <Setter Property="YAxisLabelOffset" Value="-10,0" />
+ <Setter Property="YAxisLabelAlignment" Value="Right" />
+ <Setter Property="YAxisLabelFontSize" Value="10" />
+ <Setter Property="YAxisLabelOpacity" Value="0.8" />
+ </Style>
+</Styles>

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletBalanceChart/WalletBalanceChartNormalTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletBalanceChart/WalletBalanceChartNormalTileView.axaml
x:CompileBindings="True" x:DataType="vm:WalletBalanceChartTileViewModel"
x:Class="WalletWasabi.Fluent.Views.Wallets.Home.Tiles.WalletBalanceChart.WalletBalanceChartNormalTileView">
<UserControl.Styles>
- <!-- LineChart Area -->
- <Style Selector="c|LineChart.area">
- <Setter Property="AreaMargin" Value="0"/>
- <Setter Property="AreaStrokeThickness" Value="2"/>
- <Setter Property="AreaStrokeLineCap" Value="Round"/>
- <Setter Property="AreaMinViableWidth" Value="40"/>
- <Setter Property="AreaMinViableHeight" Value="20"/>
- <Setter Property="AreaFill">
- <SolidColorBrush Color="#72BD81" Opacity="0.2"/>
- </Setter>
- <Setter Property="AreaStroke">
- <SolidColorBrush Color="#72BD81" Opacity="1.0"/>
- </Setter>
- </Style>
- <!-- LineChart Border -->
- <Style Selector="c|LineChart.border">
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="BorderRadiusX" Value="1" />
- <Setter Property="BorderRadiusY" Value="1" />
- </Style>
- <!-- LineChart XAxis -->
- <Style Selector="c|LineChart.xAxis">
- <Setter Property="XAxisOffset" Value="0,0" />
- <Setter Property="XAxisOpacity" Value="1.0" />
- <Setter Property="XAxisStrokeThickness" Value="0.7" />
- <Setter Property="XAxisArrowSize" Value="3.5" />
- <Setter Property="XAxisMinViableWidth" Value="0"/>
- <Setter Property="XAxisMinViableHeight" Value="0"/>
- </Style>
- <!-- LineChart XAxis Labels -->
- <Style Selector="c|LineChart.xAxisLabels">
- <Setter Property="XAxisLabelForeground" Value="{DynamicResource TextForegroundColor}" />
- <Setter Property="XAxisLabelAngle" Value="0" />
- <Setter Property="XAxisLabelOffset" Value="0,10" />
- <Setter Property="XAxisLabelAlignment" Value="Center" />
- <Setter Property="XAxisLabelFontSize" Value="10" />
- <Setter Property="XAxisLabelOpacity" Value="0.8" />
- </Style>
- <!-- LineChart YAxis -->
- <Style Selector="c|LineChart.yAxis">
- <Setter Property="YAxisOffset" Value="0,0" />
- <Setter Property="YAxisOpacity" Value="1.0" />
- <Setter Property="YAxisStroke" Value="{DynamicResource TextForegroundColor}" />
- <Setter Property="YAxisStrokeThickness" Value="0" />
- <Setter Property="YAxisArrowSize" Value="3.5" />
- <Setter Property="YAxisMinViableWidth" Value="0"/>
- <Setter Property="YAxisMinViableHeight" Value="0"/>
- </Style>
- <!-- LineChart YAxis Labels -->
- <Style Selector="c|LineChart.yAxisLabels">
- <Setter Property="YAxisLabelForeground" Value="{DynamicResource TextForegroundColor}" />
- <Setter Property="YAxisLabelAngle" Value="0" />
- <Setter Property="YAxisLabelOffset" Value="-10,0" />
- <Setter Property="YAxisLabelAlignment" Value="Right" />
- <Setter Property="YAxisLabelFontSize" Value="10" />
- <Setter Property="YAxisLabelOpacity" Value="0.8" />
- </Style>
+ <StyleInclude Source="avares://WalletWasabi.Fluent/Styles/BalanceLineChart.axaml" />
</UserControl.Styles>
<Border ClipToBounds="False" CornerRadius="5" Background="{DynamicResource TileRegionColor}" Margin="6" Padding="16" BoxShadow="{DynamicResource InfoBoxShadow}">
<DockPanel>

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletBalanceChart/WalletBalanceChartSmallTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletBalanceChart/WalletBalanceChartSmallTileView.axaml
x:CompileBindings="True" x:DataType="vm:WalletBalanceChartTileViewModel"
x:Class="WalletWasabi.Fluent.Views.Wallets.Home.Tiles.WalletBalanceChart.WalletBalanceChartSmallTileView">
<UserControl.Styles>
- <!-- LineChart Area -->
- <Style Selector="c|LineChart.area">
- <Setter Property="AreaMargin" Value="0"/>
- <Setter Property="AreaStrokeThickness" Value="2"/>
- <Setter Property="AreaStrokeLineCap" Value="Round"/>
- <Setter Property="AreaMinViableWidth" Value="40"/>
- <Setter Property="AreaMinViableHeight" Value="20"/>
- <Setter Property="AreaFill">
- <SolidColorBrush Color="#72BD81" Opacity="0.2"/>
- </Setter>
- <Setter Property="AreaStroke">
- <SolidColorBrush Color="#72BD81" Opacity="1.0"/>
- </Setter>
- </Style>
- <!-- LineChart Border -->
- <Style Selector="c|LineChart.border">
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="BorderRadiusX" Value="1" />
- <Setter Property="BorderRadiusY" Value="1" />
- </Style>
- <!-- LineChart XAxis -->
- <Style Selector="c|LineChart.xAxis">
- <Setter Property="XAxisOffset" Value="0,0" />
- <Setter Property="XAxisOpacity" Value="1.0" />
- <Setter Property="XAxisStrokeThickness" Value="0.7" />
- <Setter Property="XAxisArrowSize" Value="3.5" />
- <Setter Property="XAxisMinViableWidth" Value="0"/>
- <Setter Property="XAxisMinViableHeight" Value="0"/>
- </Style>
- <!-- LineChart XAxis Labels -->
- <Style Selector="c|LineChart.xAxisLabels">
- <Setter Property="XAxisLabelForeground" Value="{DynamicResource TextForegroundColor}" />
- <Setter Property="XAxisLabelAngle" Value="0" />
- <Setter Property="XAxisLabelOffset" Value="0,10" />
- <Setter Property="XAxisLabelAlignment" Value="Center" />
- <Setter Property="XAxisLabelFontSize" Value="10" />
- <Setter Property="XAxisLabelOpacity" Value="0.8" />
- </Style>
- <!-- LineChart YAxis -->
- <Style Selector="c|LineChart.yAxis">
- <Setter Property="YAxisOffset" Value="0,0" />
- <Setter Property="YAxisOpacity" Value="1.0" />
- <Setter Property="YAxisStroke" Value="{DynamicResource TextForegroundColor}" />
- <Setter Property="YAxisStrokeThickness" Value="0" />
- <Setter Property="YAxisArrowSize" Value="3.5" />
- <Setter Property="YAxisMinViableWidth" Value="0"/>
- <Setter Property="YAxisMinViableHeight" Value="0"/>
- </Style>
- <!-- LineChart YAxis Labels -->
- <Style Selector="c|LineChart.yAxisLabels">
- <Setter Property="YAxisLabelForeground" Value="{DynamicResource TextForegroundColor}" />
- <Setter Property="YAxisLabelAngle" Value="0" />
- <Setter Property="YAxisLabelOffset" Value="-10,0" />
- <Setter Property="YAxisLabelAlignment" Value="Right" />
- <Setter Property="YAxisLabelFontSize" Value="10" />
- <Setter Property="YAxisLabelOpacity" Value="0.8" />
- </Style>
+ <StyleInclude Source="avares://WalletWasabi.Fluent/Styles/BalanceLineChart.axaml" />
</UserControl.Styles>
<Border ClipToBounds="False" CornerRadius="5" Background="{DynamicResource TileRegionColor}" Margin="6" Padding="16" BoxShadow="{DynamicResource InfoBoxShadow}">
<DockPanel>

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletBalanceChart/WalletBalanceChartWideTileView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/Tiles/WalletBalanceChart/WalletBalanceChartWideTileView.axaml
x:CompileBindings="True" x:DataType="vm:WalletBalanceChartTileViewModel"
x:Class="WalletWasabi.Fluent.Views.Wallets.Home.Tiles.WalletBalanceChart.WalletBalanceChartWideTileView">
<UserControl.Styles>
- <!-- LineChart Area -->
- <Style Selector="c|LineChart.area">
- <Setter Property="AreaMargin" Value="0"/>
- <Setter Property="AreaStrokeThickness" Value="2"/>
- <Setter Property="AreaStrokeLineCap" Value="Round"/>
- <Setter Property="AreaMinViableWidth" Value="40"/>
- <Setter Property="AreaMinViableHeight" Value="20"/>
- <Setter Property="AreaFill">
- <SolidColorBrush Color="#72BD81" Opacity="0.2"/>
- </Setter>
- <Setter Property="AreaStroke">
- <SolidColorBrush Color="#72BD81" Opacity="1.0"/>
- </Setter>
- </Style>
- <!-- LineChart Border -->
- <Style Selector="c|LineChart.border">
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="BorderRadiusX" Value="1" />
- <Setter Property="BorderRadiusY" Value="1" />
- </Style>
- <!-- LineChart XAxis -->
- <Style Selector="c|LineChart.xAxis">
- <Setter Property="XAxisOffset" Value="0,0" />
- <Setter Property="XAxisOpacity" Value="1.0" />
- <Setter Property="XAxisStrokeThickness" Value="0.7" />
- <Setter Property="XAxisArrowSize" Value="3.5" />
- <Setter Property="XAxisMinViableWidth" Value="0"/>
- <Setter Property="XAxisMinViableHeight" Value="0"/>
- </Style>
- <!-- LineChart XAxis Labels -->
- <Style Selector="c|LineChart.xAxisLabels">
- <Setter Property="XAxisLabelForeground" Value="{DynamicResource TextForegroundColor}" />
- <Setter Property="XAxisLabelAngle" Value="0" />
- <Setter Property="XAxisLabelOffset" Value="0,10" />
- <Setter Property="XAxisLabelAlignment" Value="Center" />
- <Setter Property="XAxisLabelFontSize" Value="10" />
- <Setter Property="XAxisLabelOpacity" Value="0.8" />
- </Style>
- <!-- LineChart YAxis -->
- <Style Selector="c|LineChart.yAxis">
- <Setter Property="YAxisOffset" Value="0,0" />
- <Setter Property="YAxisOpacity" Value="1.0" />
- <Setter Property="YAxisStroke" Value="{DynamicResource TextForegroundColor}" />
- <Setter Property="YAxisStrokeThickness" Value="0" />
- <Setter Property="YAxisArrowSize" Value="3.5" />
- <Setter Property="YAxisMinViableWidth" Value="0"/>
- <Setter Property="YAxisMinViableHeight" Value="0"/>
- </Style>
- <!-- LineChart YAxis Labels -->
- <Style Selector="c|LineChart.yAxisLabels">
- <Setter Property="YAxisLabelForeground" Value="{DynamicResource TextForegroundColor}" />
- <Setter Property="YAxisLabelAngle" Value="0" />
- <Setter Property="YAxisLabelOffset" Value="-10,0" />
- <Setter Property="YAxisLabelAlignment" Value="Right" />
- <Setter Property="YAxisLabelFontSize" Value="10" />
- <Setter Property="YAxisLabelOpacity" Value="0.8" />
- </Style>
+ <StyleInclude Source="avares://WalletWasabi.Fluent/Styles/BalanceLineChart.axaml" />
</UserControl.Styles>
<Border ClipToBounds="False" CornerRadius="5" Background="{DynamicResource TileRegionColor}" Margin="6" Padding="16" BoxShadow="{DynamicResource InfoBoxShadow}">
<DockPanel>

remove style duplications