From 7d392ade29dfb733eebe88d2da668b1f949608d7 Mon Sep 17 00:00:00 2001 From: Lorenzo Blasa Date: Thu, 28 Apr 2022 14:42:50 -0700 Subject: [PATCH] Diagnostics UI (Dark mode) Summary: ^ In dark mode, the logs were not visible as font color is white, same as the background color of the label explicitly set to white. Don't set it to white (unless the text color is changed as well). Reviewed By: antonk52 Differential Revision: D36015027 fbshipit-source-id: bf37546a13e4a2153f7307ddeebddb23f27f4403 --- iOS/FlipperKit/FlipperDiagnosticsViewController.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/iOS/FlipperKit/FlipperDiagnosticsViewController.m b/iOS/FlipperKit/FlipperDiagnosticsViewController.m index aea45cf14..c394a2b72 100644 --- a/iOS/FlipperKit/FlipperDiagnosticsViewController.m +++ b/iOS/FlipperKit/FlipperDiagnosticsViewController.m @@ -63,7 +63,7 @@ static NSString* const kSKCellIdentifier = self.view.frame.size.width, self.scrollView.frame.size.height)]; self.logLabel.numberOfLines = 0; - self.logLabel.font = [UIFont fontWithName:@"Arial" size:10]; + self.logLabel.font = [UIFont systemFontOfSize:10.0f]; [self.scrollView addSubview:self.logLabel]; self.stateTable = [[UITableView alloc] @@ -80,7 +80,6 @@ static NSString* const kSKCellIdentifier = [self.view addSubview:self.stateTable]; [self.view addSubview:self.scrollView]; - self.view.backgroundColor = [UIColor whiteColor]; } - (void)onUpdate {