Skip to content

update MCP update/install modal primary button with correct text color#10166

Merged
acarl005 merged 5 commits into
masterfrom
andy/fix-mcp-modal-button-color
May 11, 2026
Merged

update MCP update/install modal primary button with correct text color#10166
acarl005 merged 5 commits into
masterfrom
andy/fix-mcp-modal-button-color

Conversation

@acarl005
Copy link
Copy Markdown
Contributor

@acarl005 acarl005 commented May 5, 2026

Description

Fixes: #10517

This PR fixes the primary buttons on the MCP modals for install and update to use the same text color as other primary buttons.

See here for the "source of truth":

fn text_color(
&self,
hovered: bool,
background: Option<Fill>,
appearance: &Appearance,
) -> ColorU {
let theme = appearance.theme();
let effective_background = background
.or_else(|| self.background(hovered, appearance))
.unwrap_or(theme.background());
theme.font_color(effective_background).into_solid()
}

Testing

Before

Screenshot 2026-05-05 101722

After

Screenshot 2026-05-05 105447

@acarl005 acarl005 requested a review from vkodithala May 5, 2026 17:57
@cla-bot cla-bot Bot added the cla-signed label May 5, 2026
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 5, 2026

@acarl005

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

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

Overview

This PR updates the custom Install and Update MCP modal primary button label, shortcut icon, and shortcut border colors to use a foreground selected for the accent background.

Concerns

  • No blocking correctness or security concerns found.
  • The Update modal custom label still bypasses disabled button text styling; see inline suggestion.

Verdict

Found: 0 critical, 0 important, 1 suggestions

Approve with nits

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Comment thread app/src/settings_view/mcp_servers/update_modal.rs Outdated
@acarl005 acarl005 requested review from kevinchevalier and peicodes and removed request for kevinchevalier and vkodithala May 7, 2026 20:21
@acarl005 acarl005 self-assigned this May 8, 2026
@acarl005 acarl005 requested a review from vkodithala May 11, 2026 18:51
Copy link
Copy Markdown
Contributor

@vkodithala vkodithala left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for the screenshot + context. Left a minor comment, feel free to implement as you see fit.

// Disable the update button if no updates are selected
let has_selection = self.selected_updates.iter().any(|&x| x);
let label_color = if has_selection {
appearance.theme().font_color(appearance.theme().accent())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit, non-blocking: Looks like we call appearance.theme() a bunch and I wonder if this is necessary. Can we just extract this into a local variable like we do on :85?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

good call. done in both here and the installation modal

@acarl005 acarl005 enabled auto-merge (squash) May 11, 2026 19:35
@acarl005 acarl005 merged commit 3ac1efb into master May 11, 2026
25 of 26 checks passed
@acarl005 acarl005 deleted the andy/fix-mcp-modal-button-color branch May 11, 2026 19:50
dagmfactory pushed a commit that referenced this pull request May 11, 2026
#10166)

## Description

Fixes: #10517

This PR fixes the primary buttons on the MCP modals for install and
update to use the same text color as other primary buttons.

See here for the "source of truth":


https://github.com/warpdotdev/warp/blob/10b2540c1d493a1869949d5f5a7d69a7b0c8d377/app/src/view_components/action_button.rs#L1229-L1240

## Testing

### Before

<img width="2560" height="1528" alt="Screenshot 2026-05-05 101722"
src="https://github.com/user-attachments/assets/c2cc4523-eefc-40ac-b8ac-86d9bfc813e3"
/>

### After

<img width="1920" height="1200" alt="Screenshot 2026-05-05 105447"
src="https://github.com/user-attachments/assets/1df0419f-a270-4e15-be19-a33758791622"
/>
cephalonaut pushed a commit that referenced this pull request May 12, 2026
#10166)

## Description

Fixes: #10517

This PR fixes the primary buttons on the MCP modals for install and
update to use the same text color as other primary buttons.

See here for the "source of truth":


https://github.com/warpdotdev/warp/blob/10b2540c1d493a1869949d5f5a7d69a7b0c8d377/app/src/view_components/action_button.rs#L1229-L1240

## Testing

### Before

<img width="2560" height="1528" alt="Screenshot 2026-05-05 101722"
src="https://github.com/user-attachments/assets/c2cc4523-eefc-40ac-b8ac-86d9bfc813e3"
/>

### After

<img width="1920" height="1200" alt="Screenshot 2026-05-05 105447"
src="https://github.com/user-attachments/assets/1df0419f-a270-4e15-be19-a33758791622"
/>
cephalonaut pushed a commit that referenced this pull request May 12, 2026
#10166)

## Description

Fixes: #10517

This PR fixes the primary buttons on the MCP modals for install and
update to use the same text color as other primary buttons.

See here for the "source of truth":


https://github.com/warpdotdev/warp/blob/10b2540c1d493a1869949d5f5a7d69a7b0c8d377/app/src/view_components/action_button.rs#L1229-L1240

## Testing

### Before

<img width="2560" height="1528" alt="Screenshot 2026-05-05 101722"
src="https://github.com/user-attachments/assets/c2cc4523-eefc-40ac-b8ac-86d9bfc813e3"
/>

### After

<img width="1920" height="1200" alt="Screenshot 2026-05-05 105447"
src="https://github.com/user-attachments/assets/1df0419f-a270-4e15-be19-a33758791622"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect primary buttons color on MCP update/install modal

2 participants