|
15 | 15 |
|
16 | 16 | <DataTemplate x:Key="CardTemplate"> |
17 | 17 | <Frame x:DataType="reports1:SalesAnalysis" |
18 | | - Style="{StaticResource TransactionFormCard}"> |
| 18 | + Style="{StaticResource TransactionFormCard}" |
| 19 | + BackgroundColor="{DynamicResource salesAnalysisCardBackgroundColor}" |
| 20 | + BorderColor="{DynamicResource salesAnalysisCardBorderColor}"> |
19 | 21 | <Grid RowDefinitions="Auto,Auto,Auto" |
20 | 22 | ColumnDefinitions="*,Auto" |
21 | 23 | RowSpacing="12"> |
|
30 | 32 | <Label Text="{Binding MainTitle}" |
31 | 33 | FontSize="18" |
32 | 34 | FontAttributes="Bold" |
33 | | - TextColor="{DynamicResource labelTextColor}"/> |
| 35 | + TextColor="{AppThemeBinding Light={StaticResource MidnightBlue}, Dark={StaticResource White}}"/> |
34 | 36 |
|
35 | 37 | <VerticalStackLayout |
36 | 38 | Grid.Row="1" |
37 | 39 | Grid.ColumnSpan="2" |
38 | 40 | Spacing="2"> |
39 | 41 | <Label Text="{Binding TodaysTitle}" |
40 | 42 | FontSize="14" |
41 | | - TextColor="{DynamicResource labelTextColor}" /> |
| 43 | + TextColor="{AppThemeBinding Light={StaticResource MidnightBlue}, Dark={StaticResource White}}" /> |
42 | 44 | <Label Text="{Binding TodaysValue}" |
43 | 45 | FontSize="20" |
44 | 46 | FontAttributes="Bold" |
45 | | - TextColor="{DynamicResource labelTextColor}" /> |
| 47 | + TextColor="{AppThemeBinding Light={StaticResource MidnightBlue}, Dark={StaticResource White}}" /> |
46 | 48 | </VerticalStackLayout> |
47 | 49 |
|
48 | 50 | <HorizontalStackLayout |
|
51 | 53 | VerticalOptions="End"> |
52 | 54 | <Label Text="{Binding ComparisonTitle}" |
53 | 55 | FontSize="12" |
54 | | - TextColor="{DynamicResource labelTextColor}" |
| 56 | + TextColor="{AppThemeBinding Light={StaticResource MidnightBlue}, Dark={StaticResource White}}" |
55 | 57 | Opacity="0.8" |
56 | 58 | VerticalOptions="Center"/> |
57 | 59 | <Label Text="{Binding ComparisonValue}" |
58 | 60 | FontSize="12" |
59 | | - TextColor="{DynamicResource labelTextColor}" |
| 61 | + TextColor="{AppThemeBinding Light={StaticResource MidnightBlue}, Dark={StaticResource White}}" |
60 | 62 | Opacity="0.8" |
61 | 63 | VerticalOptions="Center"/> |
62 | 64 | </HorizontalStackLayout> |
|
69 | 71 | VerticalOptions="End"> |
70 | 72 | <Label Text="{Binding VarianceTitle}" |
71 | 73 | FontSize="12" |
72 | | - TextColor="{DynamicResource labelTextColor}" |
| 74 | + TextColor="{AppThemeBinding Light={StaticResource MidnightBlue}, Dark={StaticResource White}}" |
73 | 75 | Opacity="0.8" |
74 | 76 | VerticalOptions="Center"/> |
75 | 77 | <Label Text="{Binding VarianceValue}" |
76 | 78 | FontSize="12" |
77 | | - TextColor="{DynamicResource labelTextColor}" |
| 79 | + TextColor="{AppThemeBinding Light={StaticResource MidnightBlue}, Dark={StaticResource White}}" |
78 | 80 | Opacity="0.8" |
79 | 81 | VerticalOptions="Center"/> |
80 | 82 | </HorizontalStackLayout> |
|
92 | 94 | HorizontalTextAlignment="Center" |
93 | 95 | VerticalOptions="End" |
94 | 96 | FontAttributes="Bold" |
95 | | - TextColor="{DynamicResource labelTextColor}" |
| 97 | + TextColor="{AppThemeBinding Light={StaticResource MidnightBlue}, Dark={StaticResource White}}" |
96 | 98 | Padding="20,0,20,20"/> |
97 | 99 |
|
98 | 100 | <Picker x:Name="ComparisonDate" |
99 | 101 | Title="Select Date for Comparison" |
100 | 102 | ItemDisplayBinding="{Binding DisplayText}" |
101 | 103 | ItemsSource="{Binding ComparisonDates}" |
102 | 104 | SelectedItem="{Binding SelectedItem}" |
103 | | - TextColor="{DynamicResource labelTextColor}" |
104 | | - TitleColor="{DynamicResource labelTextColor}"> |
| 105 | + TextColor="{AppThemeBinding Light={StaticResource MidnightBlue}, Dark={StaticResource White}}" |
| 106 | + TitleColor="{AppThemeBinding Light={StaticResource MidnightBlue}, Dark={StaticResource Gray200}}"> |
105 | 107 | <Picker.Behaviors> |
106 | 108 | <toolkit:EventToCommandBehavior |
107 | 109 | EventName="SelectedIndexChanged" |
|
0 commit comments