Skip to content

Commit d09f873

Browse files
committed
fix: now "Suggested by AI" label is visible in dark mode in Blaze Edit
1 parent ceb70bd commit d09f873

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

RELEASE-NOTES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- [*] Product Details: Display cover tag on the first product image [https://github.com/woocommerce/woocommerce-ios/pull/15041]
88
- [*] Payments: Update learn more links to open Stripe-specific docs when using that gateway [https://github.com/woocommerce/woocommerce-ios/pull/15035]
99
- [*] Now, usernames and emails in text fields across multiple login views are no longer capitalized. [https://github.com/woocommerce/woocommerce-ios/pull/15002]
10+
- [*] Now "Suggested by AI" label is visible in dark mode in Blaze campaign creation flow.
1011

1112
21.6
1213
-----

WooCommerce/Classes/ViewRelated/Blaze/CampaignCreation/BlazeCampaignCreationForm.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,11 @@ private extension BlazeCampaignCreationForm {
331331
Image(uiImage: .sparklesImage)
332332
.renderingMode(.template)
333333
.resizable()
334-
.foregroundColor(Color(uiColor: .textSubtle))
334+
.foregroundColor(colorScheme == .dark ? Color(.textInverted) : Color(.textSubtle))
335335
.frame(width: Layout.sparkleIconSize * scale, height: Layout.sparkleIconSize * scale)
336336

337337
Text(Localization.suggestedByAI)
338+
.foregroundColor(colorScheme == .dark ? Color(.textInverted) : Color(.textSubtle))
338339
.subheadlineStyle()
339340

340341
Spacer()
@@ -601,6 +602,12 @@ private extension BlazeCampaignCreationForm {
601602

602603
struct BlazeCampaignCreationForm_Previews: PreviewProvider {
603604
static var previews: some View {
604-
BlazeCampaignCreationForm(viewModel: .init(siteID: 123, productID: 123, onCompletion: {}))
605+
Group {
606+
BlazeCampaignCreationForm(viewModel: .init(siteID: 123, productID: 123, onCompletion: {}))
607+
.preferredColorScheme(.light)
608+
609+
BlazeCampaignCreationForm(viewModel: .init(siteID: 123, productID: 123, onCompletion: {}))
610+
.preferredColorScheme(.dark)
611+
}
605612
}
606613
}

0 commit comments

Comments
 (0)