Skip to content

Commit 76a310d

Browse files
committed
refactor: color scheme handling in BlazeCampaignCreationForm
1 parent 656b13b commit 76a310d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,18 +324,19 @@ private extension BlazeCampaignCreationForm {
324324
radius: Layout.shadowRadius,
325325
x: 0,
326326
y: Layout.shadowYOffset)
327+
.environment(\.colorScheme, .light)
327328

328329
VStack(spacing: Layout.contentPadding) {
329330
// Label "Suggested by AI"
330331
HStack(spacing: 0) {
331332
Image(uiImage: .sparklesImage)
332333
.renderingMode(.template)
333334
.resizable()
334-
.foregroundColor(colorScheme == .dark ? Color(.textInverted) : Color(.textSubtle))
335+
.foregroundColor(Color(.textSubtle))
335336
.frame(width: Layout.sparkleIconSize * scale, height: Layout.sparkleIconSize * scale)
336337

337338
Text(Localization.suggestedByAI)
338-
.foregroundColor(colorScheme == .dark ? Color(.textInverted) : Color(.textSubtle))
339+
.foregroundColor(Color(.textSubtle))
339340
.subheadlineStyle()
340341

341342
Spacer()
@@ -357,7 +358,6 @@ private extension BlazeCampaignCreationForm {
357358
.shimmering(active: !viewModel.canEditAd)
358359
}
359360
}
360-
.environment(\.colorScheme, .light)
361361
.padding(Layout.contentPadding)
362362
.background(Color(light: .init(uiColor: .systemGray6),
363363
dark: .init(uiColor: .tertiarySystemBackground)))

0 commit comments

Comments
 (0)