Skip to content

Commit

Permalink
Dark mode friendly iOS debugging message (flutter#21277)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmagman committed Sep 21, 2020
1 parent 3011b14 commit 8360b13
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,11 @@ - (void)pushRoute:(NSString*)route {
auto placeholder = [[[UIView alloc] init] autorelease];

placeholder.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
placeholder.backgroundColor = UIColor.whiteColor;
if (@available(iOS 13.0, *)) {
placeholder.backgroundColor = UIColor.systemBackgroundColor;
} else {
placeholder.backgroundColor = UIColor.whiteColor;
}
placeholder.autoresizesSubviews = YES;

// Only add the label when we know we have failed to enable tracing (and it was necessary).
Expand Down

0 comments on commit 8360b13

Please sign in to comment.