Skip to content

Commit 453d89b

Browse files
committed
Make live nametags more accessible
1 parent be5b978 commit 453d89b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/app/src/app/overmind/effects/vscode/ModelsHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export class ModelsHandler {
305305
backgroundColor: `rgb(${color[0]}, ${color[1]}, ${color[2]})`,
306306
zIndex: 200,
307307
color:
308-
color[0] + color[1] + color[2] > 500
308+
(color[0] * 299 + color[1] * 587 + color[2] * 114) / 1000 > 128
309309
? 'rgba(0, 0, 0, 0.8)'
310310
: 'white',
311311
padding: '0 4px',

0 commit comments

Comments
 (0)