Refactor button styles for consistency#316004
Draft
mrleemurray wants to merge 2 commits into
Draft
Conversation
…ross themes Co-authored-by: Copilot <copilot@github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refactors secondary button border styling to improve visual consistency across the workbench, sessions window, and default themes by introducing and adopting a dedicated button.secondaryBorder token.
Changes:
- Introduces a new default for
button.secondaryBorderand wires it throughdefaultButtonStyles. - Updates secondary button consumers (extensions action buttons, Agents window “New Session” button, sessions changes view) to use the secondary border token.
- Updates 2026 default themes to define
button.secondaryBorderand adjustsbutton.border.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/vs/workbench/contrib/extensions/browser/extensionsActions.ts | Switches extensionButton.border to use buttonSecondaryBorder. |
| src/vs/sessions/contrib/changes/browser/media/changesView.css | Adds secondary border color styling for session action buttons. |
| src/vs/sessions/common/theme.ts | Updates Agents window New Session button border token to use buttonSecondaryBorder. |
| src/vs/platform/theme/common/colors/inputColors.ts | Changes default button.secondaryBorder to a theme-appropriate translucent foreground value. |
| src/vs/platform/theme/browser/defaultStyles.ts | Uses buttonSecondaryBorder for defaultButtonStyles.buttonSecondaryBorder. |
| src/vs/base/browser/ui/button/button.css | Ensures .monaco-text-button.secondary picks up --vscode-button-secondaryBorder. |
| extensions/theme-defaults/themes/2026-light.json | Adds button.secondaryBorder and changes button.border. |
| extensions/theme-defaults/themes/2026-dark.json | Adds button.secondaryBorder and changes button.border. |
Comment on lines
50
to
56
| buttonHoverBackground: asCssVariable(buttonHoverBackground), | ||
| buttonSecondaryForeground: asCssVariable(buttonSecondaryForeground), | ||
| buttonSecondaryBackground: asCssVariable(buttonSecondaryBackground), | ||
| buttonSecondaryHoverBackground: asCssVariable(buttonSecondaryHoverBackground), | ||
| buttonSecondaryBorder: asCssVariable(buttonBorder), | ||
| buttonSecondaryBorder: asCssVariable(buttonSecondaryBorder), | ||
| buttonBorder: asCssVariable(buttonBorder), | ||
| }; |
Comment on lines
229
to
234
| .changes-view-body .chat-editing-session-actions .monaco-button.secondary.monaco-text-button { | ||
| background-color: var(--vscode-button-secondaryBackground); | ||
| color: var(--vscode-button-secondaryForeground); | ||
| border-color: var(--vscode-button-secondaryBorder); | ||
| } | ||
|
|
Comment on lines
21
to
+28
| "button.background": "#0069CC", | ||
| "button.foreground": "#FFFFFF", | ||
| "button.hoverBackground": "#0063C1", | ||
| "button.border": "#EEEEF1", | ||
| "button.border": "#0069CC", | ||
| "button.secondaryBackground": "#EAEAEA", | ||
| "button.secondaryForeground": "#202020", | ||
| "button.secondaryHoverBackground": "#F2F3F4", | ||
| "button.secondaryBorder": "#EAEAEA", |
Comment on lines
21
to
27
| "button.background": "#297AA0", | ||
| "button.foreground": "#FFFFFF", | ||
| "button.hoverBackground": "#2B7DA3", | ||
| "button.border": "#333536FF", | ||
| "button.border": "#297AA0", | ||
| "button.secondaryHoverBackground": "#FFFFFF10", | ||
| "button.secondaryBorder": "#333536", | ||
| "checkbox.background": "#242526", |
Contributor
Screenshot ChangesBase: Changed (70) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update button styles and colors to enhance consistency across different themes. This change improves the visual coherence of secondary buttons throughout the application.