Add object list color value view

This commit is contained in:
2022-03-04 17:37:53 +08:00
parent e7533fab55
commit ca3a19f5b0
4 changed files with 38 additions and 8 deletions
+5 -1
View File
@@ -8,7 +8,11 @@ import { Setting } from "./Setting";
import { I18N } from "@Component/Localization/Localization";
function randomColor() {
return [Math.random(), Math.random(), Math.random(), 1]
return [
Math.random() * .8 + .2,
Math.random() * .8 + .2,
Math.random() * .8 + .2, 1
]
}
class Status extends Emitter<{