Skip to content

Conversation

abeatrix
Copy link
Contributor

@abeatrix abeatrix commented Aug 9, 2025

Related Issue

Issue: #4557

Description

Replace the use of hoverBackground and warningBorder as background color for plan mode background as these color tend to be set as transparent or opacity change on some themes.
Replaced it with -background color which often use solid color instead. See https://code.visualstudio.com/api/references/theme-color

  • Update Plan/Act mode switch colors var for better visibility across themes
  • Remove hover effects from switch options
  • Add background classes to active switch options

Before this change, the act mode in pale night theme does not have bg color:

image

Test Procedure

Switch between mode in different themes to confirm the toggle background are visible.

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • ♻️ Refactor Changes
  • 💅 Cosmetic Changes
  • 📚 Documentation update
  • 🏃 Workflow Changes

Pre-flight Checklist

  • Changes are limited to a single feature, bugfix or chore (split larger changes into separate PRs)
  • Tests are passing (npm test) and code is formatted and linted (npm run format && npm run lint)
  • I have created a changeset using npm run changeset (required for user-facing changes)
  • I have reviewed contributor guidelines

Screenshots

Pale night (see linked issue for before fix)

image image

Dark+

image image

Light Mordern

image image

Additional Notes


Important

Improve mode switch background color visibility in ChatTextArea.tsx by updating CSS variables and removing hover effects.

  • Behavior:
    • Update mode switch background color in ChatTextArea.tsx to use -background color for better visibility across themes.
    • Remove hover effects from SwitchOption in ChatTextArea.tsx.
    • Add background classes to active SwitchOption in ChatTextArea.tsx.

This description was created by Ellipsis for 8c399e7. You can customize this summary. It will automatically update as commits are pushed.

Replace the use of `--vscode-toolbar-hoverBackground` which is a `-hoverBackground` that tends to be transperant or opacity change on some themes. Replace it with `-background` which uses solid color instead. See https://code.visualstudio.com/api/references/theme-color

- Update Plan/Act mode switch colors var for better visibility across themes
- Remove hover effects from switch options
- Add background classes to active switch options
@Copilot Copilot AI review requested due to automatic review settings August 9, 2025 06:07
Copy link

changeset-bot bot commented Aug 9, 2025

🦋 Changeset detected

Latest commit: 8c399e7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
claude-dev Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses visibility issues with the Plan/Act mode switch background colors across different VS Code themes by replacing CSS variables that tend to be transparent with more reliable solid color variables.

  • Updated Plan mode background color from --vscode-inputValidation-warningBorder to --vscode-activityWarningBadge-background
  • Added Act mode background color using --vscode-menu-selectionBackground
  • Removed hover effects from switch options and added Tailwind background classes for active states

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
webview-ui/src/components/chat/ChatTextArea.tsx Updated CSS variables for mode switch colors and added Tailwind classes for active states
.changeset/bright-pets-tease.md Added changeset documenting the visibility improvement

Copy link
Contributor

github-actions bot commented Aug 9, 2025

Coverage Report

Extension Coverage

Base branch: 47%

PR branch: 48%

✅ Coverage increased or remained the same

Webview Coverage

Base branch: 17%

PR branch: 17%

⚠️ Warning: Coverage decreased by 0.01%

Consider adding tests to cover your changes.

Overall Assessment

⚠️ Test coverage has decreased in this PR

Please consider adding tests to maintain or improve coverage.

Last updated: 2025-08-09T06:19:06.842800

@arafatkatze arafatkatze merged commit 5885a3c into main Aug 9, 2025
13 checks passed
@abeatrix abeatrix deleted the bee/fix-switch-theme branch August 9, 2025 18:12
dtrugman pushed a commit to dtrugman/cline that referenced this pull request Aug 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants