Codechange: make Shade a scoped enum (#15571)

Renamed from `ColourShade` to `Shade` for brevity.
This commit is contained in:
Peter Nelson
2026-05-03 15:07:29 +01:00
committed by GitHub
parent 420abb3865
commit 7e624beadc
28 changed files with 86 additions and 84 deletions
+1 -1
View File
@@ -548,7 +548,7 @@ bool IsValidConsoleColour(TextColour c)
* colour gradient, so it must be one of those. */
c &= ~TC_IS_PALETTE_COLOUR;
for (Colours i = Colours::Begin; i < Colours::End; i++) {
if (GetColourGradient(i, SHADE_NORMAL).p == c) return true;
if (GetColourGradient(i, Shade::Normal).p == c) return true;
}
return false;