rename widget: fix input box bg color to respect the theme

fixes https://github.com/microsoft/vscode-copilot/issues/5302
This commit is contained in:
Ulugbek Abdullaev 2024-04-24 00:20:20 +05:00
parent 2a0715668a
commit 7e84479588
No known key found for this signature in database
GPG key ID: 4F1AB80F62B8E4A4

View file

@ -241,6 +241,7 @@ export class RenameWidget implements IRenameWidget, IContentWidget, IDisposable
const border = theme.getColor(inputBorder);
this._inputWithButton.domNode.style.backgroundColor = String(theme.getColor(inputBackground) ?? '');
this._inputWithButton.input.style.backgroundColor = String(theme.getColor(inputBackground) ?? '');
this._inputWithButton.domNode.style.borderWidth = border ? '1px' : '0px';
this._inputWithButton.domNode.style.borderStyle = border ? 'solid' : 'none';
this._inputWithButton.domNode.style.borderColor = border?.toString() ?? 'none';