-
Notifications
You must be signed in to change notification settings - Fork 98
fix: replace contrast buttons with primary style #23753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -427,7 +427,7 @@ struct ComposerView: View { | |
| VButton( | ||
| label: "Stop generation", | ||
| iconOnly: VIcon.square.rawValue, | ||
| style: .contrast, | ||
| style: .primary, | ||
| iconSize: composerActionButtonSize, | ||
| action: onStop | ||
| ) | ||
|
|
@@ -612,7 +612,7 @@ VStreamingWaveform( | |
| VButton( | ||
| label: manager.state == .listening ? "Mute" : "Unmute", | ||
| iconOnly: manager.state == .listening ? VIcon.mic.rawValue : VIcon.micOff.rawValue, | ||
| style: .contrast, | ||
| style: .primary, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚩 Visual behavior change for voice conversation mute/unmute button The mute/unmute button in the voice conversation composer ( Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| iconSize: composerActionButtonSize, | ||
| action: { manager.toggleListening() } | ||
| ) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,7 +30,6 @@ struct ButtonsGallerySection: View { | |
| (label: "Danger", tag: VButton.Style.danger), | ||
| (label: "Danger Outline", tag: VButton.Style.dangerOutline), | ||
| (label: "Ghost", tag: VButton.Style.ghost), | ||
| (label: "Contrast", tag: VButton.Style.contrast), | ||
| ], | ||
| selection: $selectedStyle | ||
| ) | ||
|
|
@@ -76,7 +75,7 @@ struct ButtonsGallerySection: View { | |
|
|
||
| VCard { | ||
| HStack(spacing: VSpacing.xl) { | ||
| ForEach([VButton.Style.primary, .outlined, .danger, .dangerOutline, .ghost, .contrast], id: \.self) { style in | ||
| ForEach([VButton.Style.primary, .outlined, .danger, .dangerOutline, .ghost], id: \.self) { style in | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Dead After this PR removes all consumer usages of Prompt for agentsWas this helpful? React with 👍 or 👎 to provide feedback. |
||
| VStack(spacing: VSpacing.md) { | ||
| VButton(label: styleName(style), style: style) {} | ||
| VButton(label: "Disabled", style: style, isDisabled: true) {} | ||
|
|
@@ -155,10 +154,6 @@ struct ButtonsGallerySection: View { | |
| Text("Danger").font(VFont.labelDefault).foregroundStyle(VColor.contentTertiary) | ||
| VButton(label: "Delete", iconOnly: VIcon.trash.rawValue, style: .danger) {} | ||
| } | ||
| VStack(alignment: .leading, spacing: VSpacing.md) { | ||
| Text("Contrast").font(VFont.labelDefault).foregroundStyle(VColor.contentTertiary) | ||
| VButton(label: "Stop", iconOnly: VIcon.square.rawValue, style: .contrast) {} | ||
| } | ||
| } | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switching the voice-mode mute/unmute control to
.primarymakes it visually blend into the voice composer container in dark appearance:voiceConversationComposerusesVColor.contentEmphasizedas its background, andVButton.Style.primaryresolves to the same dark-mode token value (#FDFDFC) inColorTokens.swift, so the button fill disappears and the control loses affordance. This regression is specific to voice mode and dark appearance, and the previous.contraststyle at least preserved separation.Useful? React with 👍 / 👎.