web - disable linear-gradient in safari for now (#108996)

This commit is contained in:
Benjamin Pasero 2020-10-20 15:03:26 +02:00
parent 861b7a989a
commit 71832b5b09

View file

@ -47,6 +47,7 @@ import { IPathService } from 'vs/workbench/services/path/common/pathService';
import { IPath, win32, posix } from 'vs/base/common/path';
import { insert } from 'vs/base/common/arrays';
import { ColorScheme } from 'vs/platform/theme/common/theme';
import { isSafari } from 'vs/base/browser/browser';
interface IEditorInputLabel {
name?: string;
@ -1631,7 +1632,10 @@ registerThemingParticipant((theme: IColorTheme, collector: ICssStyleCollector) =
}
// Fade out styles via linear gradient (when tabs are set to shrink)
if (theme.type !== 'hc') {
// But not when:
// - in high contrast theme
// - on Safari (https://github.com/microsoft/vscode/issues/108996)
if (theme.type !== 'hc' && !isSafari) {
const workbenchBackground = WORKBENCH_BACKGROUND(theme);
const editorBackgroundColor = theme.getColor(editorBackground);
const editorGroupHeaderTabsBackground = theme.getColor(EDITOR_GROUP_HEADER_TABS_BACKGROUND);