提交 1bfabb18 编写于 作者: B Benjamin Pasero

font-weight 300 on Mac for italic font styles (fixes #8239)

上级 1b3e7427
......@@ -5,5 +5,8 @@
.monaco-workbench .quick-open-widget .quick-open-tree .quick-open-entry.editor-preview {
font-style: italic;
padding-left: 1px; /* we need to push the label a bit to accomodate for the italic style */
}
.monaco-workbench.mac .quick-open-widget .quick-open-tree .quick-open-entry.editor-preview {
font-weight: 300; /* makes the italic font appear the same as normal */
}
\ No newline at end of file
......@@ -12,6 +12,11 @@
font-style: italic;
}
.monaco-workbench.mac > .part.editor > .content > .one-editor-container > .title .title-label,
.monaco-workbench.mac > .part.editor > .content > .one-editor-container > .title .tabs-container > .tab .tab-label {
font-weight: 300; /* makes the italic font appear the same as normal */
}
.monaco-workbench > .part.editor > .content > .one-editor-container > .title.pinned .title-label,
.monaco-workbench > .part.editor > .content > .one-editor-container > .title .tabs-container > .tab.pinned .tab-label {
font-style: normal;
......
......@@ -19,6 +19,7 @@ import timer = require('vs/base/common/timer');
import errors = require('vs/base/common/errors');
import {Registry} from 'vs/platform/platform';
import {Identifiers} from 'vs/workbench/common/constants';
import {isWindows, isLinux} from 'vs/base/common/platform';
import {IOptions} from 'vs/workbench/common/options';
import {IWorkbenchContributionsRegistry, Extensions as WorkbenchExtensions} from 'vs/workbench/common/contributions';
import {IEditorRegistry, Extensions as EditorExtensions, BaseEditor} from 'vs/workbench/browser/parts/editor/baseEditor';
......@@ -699,7 +700,7 @@ export class Workbench implements IPartService {
// Create Workbench DIV Off-DOM
this.workbenchContainer = $('.monaco-workbench-container');
this.workbench = $().div({ 'class': 'monaco-workbench', id: Identifiers.WORKBENCH_CONTAINER }).appendTo(this.workbenchContainer);
this.workbench = $().div({ 'class': 'monaco-workbench ' + (isWindows ? 'windows' : isLinux ? 'linux' : 'mac'), id: Identifiers.WORKBENCH_CONTAINER }).appendTo(this.workbenchContainer);
}
private renderWorkbench(): void {
......
......@@ -186,6 +186,10 @@
font-style: italic;
}
.monaco-workbench.mac .monaco-tree-row .expression .unavailable {
font-weight: 300; /* makes the italic font appear the same as normal */
}
.monaco-workbench .monaco-tree-row:not(.selected) .expression .error {
color: #E51400;
}
......
......@@ -197,6 +197,11 @@
overflow: hidden;
}
.monaco-workbench.mac .debug-viewlet .debug-call-stack .load-more,
.monaco-workbench.mac .debug-viewlet .debug-call-stack .error {
font-weight: 300; /* makes the italic font appear the same as normal */
}
/* Variables & Expression view */
.debug-viewlet .scope {
......
......@@ -111,11 +111,10 @@
.explorer-viewlet .explorer-open-editors .monaco-tree .monaco-tree-row .open-editor.preview {
font-style: italic;
padding-left: 1px; /* we need to push the label a bit to accomodate for the italic style */
}
.explorer-viewlet .explorer-open-editors .monaco-tree .monaco-tree-row > .content > .open-editor.preview {
margin-left: 0px; /* accomodate for 1px padding */
.monaco-workbench.mac .explorer-viewlet .explorer-open-editors .monaco-tree .monaco-tree-row .open-editor.preview {
font-weight: 300; /* makes the italic font appear the same as normal */
}
/* Theming */
......
......@@ -224,4 +224,8 @@
.monaco-shell .git-statusbar-group > .git-statusbar-branch-item.headless {
font-style: italic;
}
.monaco-shell .monaco-workbench.mac .git-statusbar-group > .git-statusbar-branch-item.headless {
font-weight: 300; /* makes the italic font appear the same as normal */
}
\ No newline at end of file
......@@ -209,6 +209,11 @@ hc-black .search-viewlet .action-replace,
font-style: italic;
}
.monaco-workbench.mac .search-viewlet .label,
.monaco-workbench.mac .search-viewlet .linematch.changedOrRemoved {
font-weight: 300; /* makes the italic font appear the same as normal */
}
.search-viewlet .monaco-count-badge {
margin-right: 12px;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册