Skip to content

Commit 5119757

Browse files
committed
Avoid secondary background changing in split view
We previously used `tertiarySystemBackground` as our dark mode colour for `posSecondaryBackground`. This split view support work has shown that in dark mode, Apple’s tertiary background actually changes colour when in split view. Since we don’t use system colours for our other backgrounds, this can result in views becoming indistinguishable from one another. This commit defines the dark mode secondary background to match the system background in non-splitview mode.
1 parent c846d96 commit 5119757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WooCommerce/Classes/POS/Utils/Color+WooCommercePOS.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ extension Color {
3232
Color(
3333
UIColor(
3434
light: .white,
35-
dark: .tertiarySystemBackground
35+
dark: UIColor(red: 44.0 / 255.0, green: 44.0 / 255.0, blue: 46.0 / 255.0, alpha: 1.0)
3636
)
3737
)
3838
}

0 commit comments

Comments
 (0)