Skip to content

Commit bf15fce

Browse files
Fix the "misses the blue-tinted chart backgrounds" for "CoolBreeze"
1 parent 10b04a9 commit bf15fce

3 files changed

Lines changed: 24 additions & 3 deletions

File tree

Lite/Windows/ProcedureHistoryWindow.xaml.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,14 @@ private void UpdateChart()
123123
private static void ApplyTheme(ScottPlot.WPF.WpfPlot chart)
124124
{
125125
ScottPlot.Color figureBackground, dataBackground, textColor, gridColor;
126-
if (Helpers.ThemeManager.HasLightBackground)
126+
if (Helpers.ThemeManager.CurrentTheme == "CoolBreeze")
127+
{
128+
figureBackground = ScottPlot.Color.FromHex("#EEF4FA");
129+
dataBackground = ScottPlot.Color.FromHex("#DAE6F0");
130+
textColor = ScottPlot.Color.FromHex("#1A2A3A");
131+
gridColor = ScottPlot.Colors.Black.WithAlpha(20);
132+
}
133+
else if (Helpers.ThemeManager.HasLightBackground)
127134
{
128135
figureBackground = ScottPlot.Color.FromHex("#FFFFFF");
129136
dataBackground = ScottPlot.Color.FromHex("#F5F7FA");

Lite/Windows/QueryStatsHistoryWindow.xaml.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,14 @@ private async void DownloadPlan_Click(object sender, RoutedEventArgs e)
180180
private static void ApplyTheme(ScottPlot.WPF.WpfPlot chart)
181181
{
182182
ScottPlot.Color figureBackground, dataBackground, textColor, gridColor;
183-
if (Helpers.ThemeManager.HasLightBackground)
183+
if (Helpers.ThemeManager.CurrentTheme == "CoolBreeze")
184+
{
185+
figureBackground = ScottPlot.Color.FromHex("#EEF4FA");
186+
dataBackground = ScottPlot.Color.FromHex("#DAE6F0");
187+
textColor = ScottPlot.Color.FromHex("#1A2A3A");
188+
gridColor = ScottPlot.Colors.Black.WithAlpha(20);
189+
}
190+
else if (Helpers.ThemeManager.HasLightBackground)
184191
{
185192
figureBackground = ScottPlot.Color.FromHex("#FFFFFF");
186193
dataBackground = ScottPlot.Color.FromHex("#F5F7FA");

Lite/Windows/QueryStoreHistoryWindow.xaml.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,14 @@ private async void DownloadPlan_Click(object sender, RoutedEventArgs e)
161161
private static void ApplyTheme(ScottPlot.WPF.WpfPlot chart)
162162
{
163163
ScottPlot.Color figureBackground, dataBackground, textColor, gridColor;
164-
if (Helpers.ThemeManager.HasLightBackground)
164+
if (Helpers.ThemeManager.CurrentTheme == "CoolBreeze")
165+
{
166+
figureBackground = ScottPlot.Color.FromHex("#EEF4FA");
167+
dataBackground = ScottPlot.Color.FromHex("#DAE6F0");
168+
textColor = ScottPlot.Color.FromHex("#1A2A3A");
169+
gridColor = ScottPlot.Colors.Black.WithAlpha(20);
170+
}
171+
else if (Helpers.ThemeManager.HasLightBackground)
165172
{
166173
figureBackground = ScottPlot.Color.FromHex("#FFFFFF");
167174
dataBackground = ScottPlot.Color.FromHex("#F5F7FA");

0 commit comments

Comments
 (0)