Skip to content

Commit 02a0133

Browse files
Updated the review suggestions.
1 parent 6462776 commit 02a0133

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

maui/samples/Gallery/Samples/CircularChart/Interaction/Tooltip.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<chart:SfCircularChart.Resources>
2020
<ResourceDictionary>
2121
<local:TooltipValueConverter x:Key="valueConverter"/>
22-
<DataTemplate x:Key="template1">
22+
<DataTemplate x:Key="template1" x:DataType="chart:TooltipInfo">
2323
<StackLayout Padding="0">
2424
<StackLayout Orientation="Horizontal" VerticalOptions="Fill" Spacing="0" Padding="0" Margin="0">
2525
<Label Text="{Binding Item, Converter={StaticResource valueConverter}, ConverterParameter='Name'}" VerticalTextAlignment="Center" HorizontalOptions="Start" TextColor="{AppThemeBinding Default={StaticResource ContentBackground}}" FontAttributes="Bold" FontFamily="Helvetica" FontSize="14" Margin="2,0,2,0" />

maui/samples/Gallery/Samples/CircularChart/RadialBar/RadialBarChart.xaml.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,16 @@ private void trackFill_SelectedIndexChanged(object sender, EventArgs e)
7878
{
7979
case 0:
8080
{
81-
radialBarSeries.TrackFill = new SolidColorBrush(Color.FromRgba(0, 0, 0, 0.08));
82-
break;
81+
if (Application.Current?.RequestedTheme == AppTheme.Dark)
82+
{
83+
radialBarSeries.TrackFill = new SolidColorBrush(Color.FromRgba("#36323B"));
84+
break;
85+
}
86+
else
87+
{
88+
radialBarSeries.TrackFill = new SolidColorBrush(Color.FromRgba(0, 0, 0, 0.08));
89+
break;
90+
}
8391
}
8492
case 1:
8593
{

0 commit comments

Comments
 (0)