Skip to content

Commit e937484

Browse files
committed
1 parent 009aff5 commit e937484

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/vs/workbench/browser/actions/developerActions.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import 'vs/css!./media/actions';
88
import * as nls from 'vs/nls';
99
import { IKeybindingService } from 'vs/platform/keybinding/common/keybinding';
1010
import { domEvent } from 'vs/base/browser/event';
11+
import { Color } from 'vs/base/common/color';
1112
import { Event } from 'vs/base/common/event';
1213
import { IDisposable, toDisposable, dispose, Disposable, DisposableStore } from 'vs/base/common/lifecycle';
1314
import { getDomNodePagePosition, createStyleSheet, createCSSRule, append, $ } from 'vs/base/browser/dom';
@@ -124,11 +125,7 @@ class ToggleScreencastModeAction extends Action2 {
124125
const onMouseMove = domEvent(container, 'mousemove', true);
125126

126127
const updateMouseIndicatorColor = () => {
127-
const mouseIndicatorColor = configurationService.getValue<string>('screencastMode.mouseIndicatorColor');
128-
129-
let style = new Option().style;
130-
style.color = mouseIndicatorColor;
131-
mouseMarker.style.borderColor = (mouseIndicatorColor === '' || !style.color) ? '#ff0000' : mouseIndicatorColor;
128+
mouseMarker.style.borderColor = Color.fromHex(configurationService.getValue<string>('screencastMode.mouseIndicatorColor')).toString();
132129
};
133130

134131
let mouseIndicatorSize: number;

0 commit comments

Comments
 (0)