mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 05:51:32 +01:00
SuggestEnabledInput - account for slightly transparent text selection, when matching native text selection
This commit is contained in:
@@ -247,15 +247,15 @@ export class SuggestEnabledInput extends Widget implements IThemable {
|
||||
|
||||
// Override styles in selections.ts
|
||||
registerThemingParticipant((theme, collector) => {
|
||||
let workbenchSelectionColor = theme.getColor(selectionBackground);
|
||||
const workbenchSelectionColor = theme.getColor(selectionBackground);
|
||||
if (workbenchSelectionColor) {
|
||||
collector.addRule(`.suggest-input-container .monaco-editor .focused .selected-text { background-color: ${workbenchSelectionColor}; }`);
|
||||
collector.addRule(`.suggest-input-container .monaco-editor .focused .selected-text { background-color: ${workbenchSelectionColor.transparent(.4)}; }`);
|
||||
}
|
||||
|
||||
// Override inactive selection bg
|
||||
const inputBackgroundColor = theme.getColor(inputBackground);
|
||||
if (inputBackground) {
|
||||
collector.addRule(`.suggest-input-container .monaco-editor .selected-text { background-color: ${inputBackgroundColor}; }`);
|
||||
collector.addRule(`.suggest-input-container .monaco-editor .selected-text { background-color: ${inputBackgroundColor.transparent(.4)}; }`);
|
||||
}
|
||||
|
||||
// Override selected fg
|
||||
|
||||
Reference in New Issue
Block a user