提交 28ba6987 编写于 作者: R Rob Lourens

Fix subpixel AA for settings TOC list

Fix #85106
上级 85d3ccfb
...@@ -216,14 +216,13 @@ ...@@ -216,14 +216,13 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
line-height: 22px; line-height: 22px;
opacity: 0.9;
flex-shrink: 1; flex-shrink: 1;
} }
.settings-editor > .settings-body .settings-toc-container .monaco-list-row .settings-toc-count { .settings-editor > .settings-body .settings-toc-container .monaco-list-row .settings-toc-count {
display: none; display: none;
line-height: 22px; line-height: 22px;
opacity: 0.7; opacity: 0.8;
margin-left: 3px; margin-left: 3px;
} }
...@@ -231,17 +230,8 @@ ...@@ -231,17 +230,8 @@
display: block; display: block;
} }
.settings-editor > .settings-body .settings-toc-container .monaco-list-row .monaco-tl-twistie {
opacity: 0.9;
}
.settings-editor > .settings-body .settings-toc-container .monaco-list-row.selected .monaco-tl-twistie {
opacity: 1;
}
.settings-editor > .settings-body .settings-toc-container .monaco-list-row.selected .settings-toc-entry { .settings-editor > .settings-body .settings-toc-container .monaco-list-row.selected .settings-toc-entry {
font-weight: bold; font-weight: bold;
opacity: 1;
} }
.settings-editor > .settings-body .settings-tree-container { .settings-editor > .settings-body .settings-tree-container {
......
...@@ -1481,6 +1481,8 @@ export class SettingsTree extends ObjectTree<SettingsTreeElement> { ...@@ -1481,6 +1481,8 @@ export class SettingsTree extends ObjectTree<SettingsTreeElement> {
// applying an opacity to the link color. // applying an opacity to the link color.
const fgWithOpacity = new Color(new RGBA(foregroundColor.rgba.r, foregroundColor.rgba.g, foregroundColor.rgba.b, 0.9)); const fgWithOpacity = new Color(new RGBA(foregroundColor.rgba.r, foregroundColor.rgba.g, foregroundColor.rgba.b, 0.9));
collector.addRule(`.settings-editor > .settings-body > .settings-tree-container .setting-item-contents .setting-item-description { color: ${fgWithOpacity}; }`); collector.addRule(`.settings-editor > .settings-body > .settings-tree-container .setting-item-contents .setting-item-description { color: ${fgWithOpacity}; }`);
collector.addRule(`.settings-editor > .settings-body .settings-toc-container .monaco-list-row:not(.selected) { color: ${fgWithOpacity}; }`);
} }
const errorColor = theme.getColor(errorForeground); const errorColor = theme.getColor(errorForeground);
......
...@@ -10,7 +10,7 @@ import { IObjectTreeOptions, ObjectTree } from 'vs/base/browser/ui/tree/objectTr ...@@ -10,7 +10,7 @@ import { IObjectTreeOptions, ObjectTree } from 'vs/base/browser/ui/tree/objectTr
import { ITreeElement, ITreeNode, ITreeRenderer } from 'vs/base/browser/ui/tree/tree'; import { ITreeElement, ITreeNode, ITreeRenderer } from 'vs/base/browser/ui/tree/tree';
import { Iterator } from 'vs/base/common/iterator'; import { Iterator } from 'vs/base/common/iterator';
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation'; import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
import { editorBackground } from 'vs/platform/theme/common/colorRegistry'; import { editorBackground, transparent, foreground } from 'vs/platform/theme/common/colorRegistry';
import { attachStyler } from 'vs/platform/theme/common/styler'; import { attachStyler } from 'vs/platform/theme/common/styler';
import { IThemeService } from 'vs/platform/theme/common/themeService'; import { IThemeService } from 'vs/platform/theme/common/themeService';
import { SettingsTreeFilter } from 'vs/workbench/contrib/preferences/browser/settingsTree'; import { SettingsTreeFilter } from 'vs/workbench/contrib/preferences/browser/settingsTree';
...@@ -215,8 +215,8 @@ export class TOCTree extends ObjectTree<SettingsTreeGroupElement> { ...@@ -215,8 +215,8 @@ export class TOCTree extends ObjectTree<SettingsTreeGroupElement> {
listFocusAndSelectionBackground: editorBackground, listFocusAndSelectionBackground: editorBackground,
listFocusAndSelectionForeground: settingsHeaderForeground, listFocusAndSelectionForeground: settingsHeaderForeground,
listFocusBackground: editorBackground, listFocusBackground: editorBackground,
listFocusForeground: settingsHeaderForeground, listFocusForeground: transparent(foreground, 0.9),
listHoverForeground: settingsHeaderForeground, listHoverForeground: transparent(foreground, 0.9),
listHoverBackground: editorBackground, listHoverBackground: editorBackground,
listInactiveSelectionBackground: editorBackground, listInactiveSelectionBackground: editorBackground,
listInactiveSelectionForeground: settingsHeaderForeground, listInactiveSelectionForeground: settingsHeaderForeground,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册