ソースを参照

Fixed some issues with Dark Mode

Frank van den Bos 1 年間 前
コミット
ca29c576ff

+ 6 - 3
InABox.Mobile/InABox.Mobile.Shared/Components/MobileGrid/MobileGrid.xaml

@@ -84,20 +84,23 @@
                         x:Name="_lastupdate"
                         Grid.Column="0" 
                         HorizontalTextAlignment="Start"
-                        FontSize="Micro" />
+                        FontSize="Micro"
+                        TextColor="Black"/>
                     
                     <Label
                         x:Name="_numrecords"
                         Grid.Column="1"
                         HorizontalTextAlignment="Center"
-                        FontSize="Micro"/>
+                        FontSize="Micro"
+                        TextColor="Black"/>
                     
                     <Label 
                         x:Name="_pulltorefresh"
                         Grid.Column="2" 
                         HorizontalTextAlignment="End"
                         FontSize="Micro"
-                        Text="Pull To Refresh"/>
+                        Text="Pull To Refresh"
+                        TextColor="Black"/>
                 
                 </Grid>
             </mobile:MobileCard>

+ 2 - 0
InABox.Mobile/InABox.Mobile.Shared/Components/MobileGrid/MobileGridColumn.cs

@@ -44,6 +44,7 @@ namespace InABox.Mobile
                     : Caption,
                 Margin = new Thickness(2,0),
                 FontSize = Device.GetNamedSize(NamedSize.Micro, typeof(Label)),
+                TextColor = Color.Black,
                 VerticalTextAlignment = TextAlignment.Center,
                 HorizontalTextAlignment = Alignment,
             };
@@ -90,6 +91,7 @@ namespace InABox.Mobile
             }
 
             result.TextAlignment = Alignment;
+            result.CellStyle.Setters.Add(new Setter() { Property = GridCell.ForegroundProperty, Value = Color.Black });
             
             result.HeaderTextAlignment = Alignment;
             result.HeaderText = Caption;

+ 1 - 0
InABox.Mobile/InABox.Mobile.Shared/Components/MobileGrid/MobileGridTextColumn.cs

@@ -20,6 +20,7 @@ namespace InABox.Mobile
                     FontSize= Device.GetNamedSize(NamedSize.Micro, typeof(Label)),
                     VerticalTextAlignment = TextAlignment.Center,
                     HorizontalTextAlignment = Alignment,
+                    TextColor = Color.Black
                 };
                 label.SetBinding(Label.TextProperty, ColumnName);
                 return label;

+ 8 - 4
InABox.Mobile/InABox.Mobile.Shared/Components/MobileList/MobileList.xaml

@@ -34,7 +34,8 @@
                             VerticalTextAlignment="Center"
                             HorizontalOptions="CenterAndExpand"
                             HorizontalTextAlignment="Center" 
-                            TypeScale="H6"/> 
+                            TypeScale="H6"
+                            TextColor="Gray"/> 
                     </CollectionView.EmptyView>
                     <CollectionView.ItemsLayout>
                         <LinearItemsLayout ItemSpacing="{Binding Spacing}" Orientation="Vertical" />
@@ -58,20 +59,23 @@
                         x:Name="_lastupdate"
                         Grid.Column="0" 
                         HorizontalTextAlignment="Start"
-                        FontSize="Micro" />
+                        FontSize="Micro"
+                        TextColor="Black"/>
                 
                     <Label
                         x:Name="_numrecords"
                         Grid.Column="1"
                         HorizontalTextAlignment="Center"
-                        FontSize="Micro"/>
+                        FontSize="Micro"
+                        TextColor="Black"/>
                 
                     <Label 
                         x:Name="_pulltorefresh"
                         Grid.Column="2" 
                         HorizontalTextAlignment="End"
                         FontSize="Micro"
-                        Text="Pull To Refresh"/>
+                        Text="Pull To Refresh"
+                        TextColor="Black"/>
             
                 </Grid>    
             </local:MobileCard>