mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-18 14:19:30 -07:00
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:
@@ -321,6 +321,10 @@ export default (urlParams) => {
|
|||||||
.filter(([_, value]) => value != null)
|
.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 version = validParams.version in versions ? versions[validParams.version] : versions.classic;
|
||||||
const fontName = [validParams.font, version.font, defaults.font].find((name) => name in fonts);
|
const fontName = [validParams.font, version.font, defaults.font].find((name) => name in fonts);
|
||||||
const font = fonts[fontName];
|
const font = fonts[fontName];
|
||||||
|
|||||||
Reference in New Issue
Block a user