fix: fix index typo.

This commit is contained in:
Zhang Dian 2023-03-30 16:22:56 +08:00 committed by Dong Bin
parent d952f901f2
commit 0ae04b69f5

View File

@ -196,7 +196,7 @@ public class ColorItemViewModel : ObservableObject
Brush = brush; Brush = brush;
ResourceKey = resourceKey; ResourceKey = resourceKey;
Hex = brush.ToString().ToUpperInvariant(); Hex = brush.ToString().ToUpperInvariant();
if ((light && index < 5) || (!light && index > 5)) if ((light && index < 5) || (!light && index >= 5))
{ {
TextBrush = Brushes.Black; TextBrush = Brushes.Black;
} }