Skip to content

Commit

Permalink
Merge pull request #1385 from iiHorizon/master
Browse files Browse the repository at this point in the history
完善Dark Mode支持
  • Loading branch information
banchichen committed Sep 24, 2020
2 parents ce11549 + 16ce8d7 commit f332035
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
Expand Up @@ -51,7 +51,11 @@ - (instancetype)init {
- (void)viewDidLoad {
[super viewDidLoad];
self.needShowStatusBar = ![UIApplication sharedApplication].statusBarHidden;
self.view.backgroundColor = [UIColor whiteColor];
if (@available(iOS 13.0, *)) {
self.view.backgroundColor = UIColor.tertiarySystemBackgroundColor;
} else {
self.view.backgroundColor = [UIColor whiteColor];
}
self.navigationBar.barStyle = UIBarStyleBlack;
self.navigationBar.translucent = YES;
[TZImageManager manager].shouldFixOrientation = NO;
Expand Down Expand Up @@ -724,7 +728,11 @@ - (void)viewDidLoad {
[super viewDidLoad];
[[PHPhotoLibrary sharedPhotoLibrary] registerChangeObserver:self];
self.isFirstAppear = YES;
self.view.backgroundColor = [UIColor whiteColor];
if (@available(iOS 13.0, *)) {
self.view.backgroundColor = UIColor.tertiarySystemBackgroundColor;
} else {
self.view.backgroundColor = [UIColor whiteColor];
}

TZImagePickerController *imagePickerVc = (TZImagePickerController *)self.navigationController;
UIBarButtonItem *cancelItem = [[UIBarButtonItem alloc] initWithTitle:imagePickerVc.cancelBtnTitleStr style:UIBarButtonItemStylePlain target:imagePickerVc action:@selector(cancelButtonClick)];
Expand Down
Expand Up @@ -82,7 +82,11 @@ - (void)viewDidLoad {
TZImagePickerController *tzImagePickerVc = (TZImagePickerController *)self.navigationController;
_isSelectOriginalPhoto = tzImagePickerVc.isSelectOriginalPhoto;
_shouldScrollToBottom = YES;
self.view.backgroundColor = [UIColor whiteColor];
if (@available(iOS 13.0, *)) {
self.view.backgroundColor = UIColor.tertiarySystemBackgroundColor;
} else {
self.view.backgroundColor = [UIColor whiteColor];
}
self.navigationItem.title = _model.name;
UIBarButtonItem *cancelItem = [[UIBarButtonItem alloc] initWithTitle:tzImagePickerVc.cancelBtnTitleStr style:UIBarButtonItemStylePlain target:tzImagePickerVc action:@selector(cancelButtonClick)];
[TZCommonTools configBarButtonItem:cancelItem tzImagePickerVc:tzImagePickerVc];
Expand Down

0 comments on commit f332035

Please sign in to comment.