mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-02 06:21:50 +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
|
// Override styles in selections.ts
|
||||||
registerThemingParticipant((theme, collector) => {
|
registerThemingParticipant((theme, collector) => {
|
||||||
let workbenchSelectionColor = theme.getColor(selectionBackground);
|
const workbenchSelectionColor = theme.getColor(selectionBackground);
|
||||||
if (workbenchSelectionColor) {
|
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
|
// Override inactive selection bg
|
||||||
const inputBackgroundColor = theme.getColor(inputBackground);
|
const inputBackgroundColor = theme.getColor(inputBackground);
|
||||||
if (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
|
// Override selected fg
|
||||||
|
|||||||
Reference in New Issue
Block a user