From 5c5379e9721a5f9e5f78da30a1e6bd7ee2daeee2 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Tue, 27 Apr 2021 11:07:07 -0700 Subject: [PATCH] Update ScrollViewer style --- MPF/App.xaml | 24 ++++++++++++++++++++++-- MPF/UserControls/LogOutput.xaml | 4 ++-- MPF/Windows/MainWindow.xaml.cs | 6 ++++++ 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/MPF/App.xaml b/MPF/App.xaml index 48fcb807..1cd64ff9 100644 --- a/MPF/App.xaml +++ b/MPF/App.xaml @@ -457,7 +457,27 @@ - + + + + + + + + + + + + + + + + + + + + + @@ -722,6 +742,6 @@ - + diff --git a/MPF/UserControls/LogOutput.xaml b/MPF/UserControls/LogOutput.xaml index c261d4bd..b4ca588c 100644 --- a/MPF/UserControls/LogOutput.xaml +++ b/MPF/UserControls/LogOutput.xaml @@ -14,8 +14,8 @@ - - + + diff --git a/MPF/Windows/MainWindow.xaml.cs b/MPF/Windows/MainWindow.xaml.cs index a75e116a..cab89b12 100644 --- a/MPF/Windows/MainWindow.xaml.cs +++ b/MPF/Windows/MainWindow.xaml.cs @@ -361,6 +361,9 @@ namespace MPF.Windows // Handle ProgressBar-specific resources Application.Current.Resources["ProgressBar.Background"] = new SolidColorBrush(Color.FromArgb(0xFF, 0xE6, 0xE6, 0xE6)); + // Handle ScrollViewer-specific resources + Application.Current.Resources["ScrollViewer.ScrollBar.Background"] = Brushes.LightGray; + // Handle TabItem-specific resources Application.Current.Resources["TabItem.Selected.Background"] = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)); Application.Current.Resources["TabItem.Static.Background"] = new LinearGradientBrush( @@ -419,6 +422,9 @@ namespace MPF.Windows // Handle ProgressBar-specific resources Application.Current.Resources["ProgressBar.Background"] = darkModeBrush; + // Handle ScrollViewer-specific resources + Application.Current.Resources["ScrollViewer.ScrollBar.Background"] = darkModeBrush; + // Handle TabItem-specific resources Application.Current.Resources["TabItem.Selected.Background"] = darkModeBrush; Application.Current.Resources["TabItem.Static.Background"] = darkModeBrush;