From eadc2d6606d7d0eaf431cecdf5033f994aa1d85e Mon Sep 17 00:00:00 2001 From: Gerwin Kuijntjes Date: Thu, 2 Apr 2026 12:31:05 +0200 Subject: [PATCH] Fix: FAB white background with dark icon in dark mode Add FabBackgroundColor / FabTextColor theme keys so the FAB is always visible: dark background + white icon in light mode, white background + dark icon in dark mode. Co-Authored-By: Claude Sonnet 4.6 --- .../Xamarin.Neo4j/Xamarin.Neo4j/Pages/ConnectionsPage.xaml | 4 ++-- .../Xamarin.Neo4j/Xamarin.Neo4j/Themes/DarkTheme.xaml | 2 ++ .../Xamarin.Neo4j/Xamarin.Neo4j/Themes/LightTheme.xaml | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j/Pages/ConnectionsPage.xaml b/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j/Pages/ConnectionsPage.xaml index 43c6170..be10f6d 100644 --- a/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j/Pages/ConnectionsPage.xaml +++ b/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j/Pages/ConnectionsPage.xaml @@ -142,8 +142,8 @@ FontSize="20" WidthRequest="56" HeightRequest="56" CornerRadius="28" - BackgroundColor="{DynamicResource NavigationBarColor}" - TextColor="White" + BackgroundColor="{DynamicResource FabBackgroundColor}" + TextColor="{DynamicResource FabTextColor}" VerticalOptions="End" HorizontalOptions="End" Margin="0,0,16,16" Command="{Binding Commands[AddConnection]}" /> diff --git a/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j/Themes/DarkTheme.xaml b/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j/Themes/DarkTheme.xaml index 842b2fe..ea91db6 100644 --- a/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j/Themes/DarkTheme.xaml +++ b/Xamarin.Neo4j/Xamarin.Neo4j/Xamarin.Neo4j/Themes/DarkTheme.xaml @@ -18,6 +18,8 @@ #141414 #141414 #141414 + #ffffff + #0c0c0c