Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
coderZsq committed Jul 31, 2019
1 parent 5a50df9 commit 3d3acc0
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Binary file added SQMagnet/SQMagnet-01.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added SQMagnet/SQMagnet-02.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added SQMagnet/SQMagnet-03.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added SQMagnet/SQMagnet-04.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 9 additions & 9 deletions SQMagnet/SQMagnet/UI/SQConnectViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ - (void)viewDidLoad {

- (void)hookApplicationWillEnterForeground {
self.view.backgroundColor = [UIColor colorWithHexString:@"#f8f8f8"];
// if (@available(iOS 13.0, *)) {
// self.view.backgroundColor = [UIColor colorWithDynamicProvider:^UIColor * _Nonnull(UITraitCollection * _Nonnull trait) {
// if (trait.userInterfaceStyle == UIUserInterfaceStyleDark) {
// return [UIColor colorWithHexString:@"#1c1c1e"];
// } else {
// return [UIColor colorWithHexString:@"#f8f8f8"];
// }
// }];
// }
if (@available(iOS 13.0, *)) {
self.view.backgroundColor = [UIColor colorWithDynamicProvider:^UIColor * _Nonnull(UITraitCollection * _Nonnull trait) {
if (trait.userInterfaceStyle == UIUserInterfaceStyleDark) {
return [UIColor colorWithHexString:@"#1c1c1e"];
} else {
return [UIColor colorWithHexString:@"#f8f8f8"];
}
}];
}
}

@end

0 comments on commit 3d3acc0

Please sign in to comment.