Skip to content

Commit

Permalink
improve old downloading menu UI
Browse files Browse the repository at this point in the history
Improved the old downloading menu’s ui, this is subject to change in addition for the new one but still haven’t made that one work yet.
  • Loading branch information
arichornlover authored Apr 2, 2024
1 parent 9fb4418 commit c9503d1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Controllers/YouTubeDownloadController.m
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,12 @@ - (void)shortsDownloader {
}

- (void)coloursView {
if (self.traitCollection.userInterfaceStyle == UIUserInterfaceStyleLight) {
self.view.backgroundColor = [UIColor colorWithRed:0.949 green:0.949 blue:0.969 alpha:1.0];
} else {
self.view.backgroundColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
}
self.view.backgroundColor = [UIColor clearColor];
UIBlurEffect *blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark];
UIVisualEffectView *blurEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect];
blurEffectView.frame = self.view.bounds;
[self.view addSubview:blurEffectView];
[self.view sendSubviewToBack:blurEffectView];
}

- (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection {
Expand Down

0 comments on commit c9503d1

Please sign in to comment.