The cursor color, when unspecified, now defaults to bright white if an effect is specified, rather than falling back on the colors from the versions

This commit is contained in:
Rezmason
2022-09-16 21:37:30 -07:00
parent 9ab9924294
commit 86036d9ceb

View File

@@ -321,6 +321,10 @@ export default (urlParams) => {
.filter(([_, value]) => value != null)
);
if (validParams.effect != null && validParams.cursorColor == null) {
validParams.cursorColor = [2, 2, 2];
}
const version = validParams.version in versions ? versions[validParams.version] : versions.classic;
const fontName = [validParams.font, version.font, defaults.font].find((name) => name in fonts);
const font = fonts[fontName];