Skip to content

Commit 018995c

Browse files
committed
Decrease saturation of plot rainbow colours when in dark mode
1 parent 8e71ff3 commit 018995c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/ManiaKeyPresses.UI/MainWindow.axaml.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ private void AnalyseReplay(string replayPath)
188188
var lineSeries = new LineSeries
189189
{
190190
Title = $"key {i + 1}",
191-
Color = GetRainbowColor(i, analysis.HoldTimes.Length, ViewModel.IsDarkMode),
191+
Color = GetRainbowColour(i, analysis.HoldTimes.Length, ViewModel.IsDarkMode),
192192
StrokeThickness = 2,
193193
TrackerFormatString = "{0}\nHold Time: {2:0} ms\nCount: {4:0}",
194194
};
@@ -205,10 +205,10 @@ private void AnalyseReplay(string replayPath)
205205
PlotView.Model = plotModel;
206206
}
207207

208-
private static OxyColor GetRainbowColor(int index, int total, bool isDarkTheme)
208+
private static OxyColor GetRainbowColour(int index, int total, bool isDarkTheme)
209209
{
210-
var saturation = isDarkTheme ? 0.8 : 0.9;
211-
var value = isDarkTheme ? 0.9 : 0.8;
210+
var saturation = isDarkTheme ? 0.6 : 0.9;
211+
var value = isDarkTheme ? 0.85 : 0.8;
212212

213213
var c = value * saturation;
214214
var m = value - c;

0 commit comments

Comments
 (0)