@@ -197,29 +197,7 @@ export class ScptEditorProvider implements vscode.CustomReadonlyEditorProvider<S
197197 outline-offset: 2px;
198198 }
199199
200- .monaco-text-button {
201- color: var(--vscode-button-foreground);
202- background-color: var(--vscode-button-background);
203- }
204-
205- .monaco-text-button:hover {
206- background-color: var(--vscode-button-hoverBackground);
207- }
208-
209- .monaco-text-button:focus {
210- outline: 1px solid var(--vscode-focusBorder);
211- }
212-
213- .monaco-button-secondary {
214- color: var(--vscode-button-secondaryForeground);
215- background-color: var(--vscode-button-secondaryBackground);
216- }
217-
218- .monaco-button-secondary:hover {
219- background-color: var(--vscode-button-secondaryHoverBackground);
220- }
221-
222- .monaco-button-secondary:focus {
200+ .monaco-button:focus {
223201 outline: 1px solid var(--vscode-focusBorder);
224202 }
225203 </style>
@@ -249,19 +227,33 @@ export class ScptEditorProvider implements vscode.CustomReadonlyEditorProvider<S
249227 </ul>
250228 </div>
251229 <div class="editor-placeholder-buttons-container">
252- <a id="editButton" class="monaco-button monaco-text- button" tabindex="0" role="button" aria-disabled="false">Edit File</a>
253- <a id="cancelButton" class="monaco-button monaco- button-secondary " tabindex="0" role="button" aria-disabled="false">Cancel</a>
230+ <a id="editButton" class="monaco-button" style="color: var(--vscode- button-foreground); background-color: var(--vscode-button-background); " tabindex="0" role="button" aria-disabled="false">Edit File</a>
231+ <a id="cancelButton" class="monaco-button" style="color: var(--vscode- button-secondaryForeground); background-color: var(--vscode-button-secondaryBackground); " tabindex="0" role="button" aria-disabled="false">Cancel</a>
254232 </div>
255233 </div>
256234
257235 <script nonce="${ nonce } ">
258236 const vscode = acquireVsCodeApi();
259237
260- document.getElementById('editButton').addEventListener('click', function() {
238+ const editButton = document.getElementById('editButton');
239+ editButton.addEventListener('mouseenter', function() {
240+ this.style.backgroundColor = 'var(--vscode-button-hoverBackground)';
241+ });
242+ editButton.addEventListener('mouseleave', function() {
243+ this.style.backgroundColor = 'var(--vscode-button-background)';
244+ });
245+ editButton.addEventListener('click', function() {
261246 vscode.postMessage({ command: 'editFile' });
262247 });
263248
264- document.getElementById('cancelButton').addEventListener('click', function() {
249+ const cancelButton = document.getElementById('cancelButton');
250+ cancelButton.addEventListener('mouseenter', function() {
251+ this.style.backgroundColor = 'var(--vscode-button-secondaryHoverBackground)';
252+ });
253+ cancelButton.addEventListener('mouseleave', function() {
254+ this.style.backgroundColor = 'var(--vscode-button-secondaryBackground)';
255+ });
256+ cancelButton.addEventListener('click', function() {
265257 vscode.postMessage({ command: 'cancel' });
266258 });
267259 </script>
0 commit comments