mirror of
https://github.com/SoPat712/YTLitePlus.git
synced 2025-08-21 18:28:47 -04:00
Live Chat OLED dark mode
This commit is contained in:
@@ -96,6 +96,14 @@
|
|||||||
@property (nonatomic, assign, readwrite) BOOL enableSnapToChapter;
|
@property (nonatomic, assign, readwrite) BOOL enableSnapToChapter;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
// Hide Autoplay Mini Preview - @bhackel
|
||||||
|
@interface YTAutonavPreviewView : UIView
|
||||||
|
@end
|
||||||
|
|
||||||
|
// OLED Live Chat - @bhackel
|
||||||
|
@interface YTLUserDefaults : NSUserDefaults
|
||||||
|
@end
|
||||||
|
|
||||||
// Hide Home Tab - @bhackel
|
// Hide Home Tab - @bhackel
|
||||||
@interface YTPivotBarViewController : UIViewController
|
@interface YTPivotBarViewController : UIViewController
|
||||||
@property NSString *selectedPivotIdentifier;
|
@property NSString *selectedPivotIdentifier;
|
||||||
|
@@ -542,11 +542,10 @@ BOOL isTabSelected = NO;
|
|||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
|
||||||
// Hide the Comment Section Previews under the Video Player - @arichornlover
|
|
||||||
%hook _ASDisplayView
|
%hook _ASDisplayView
|
||||||
- (void)didMoveToWindow {
|
- (void)didMoveToWindow {
|
||||||
%orig;
|
%orig;
|
||||||
|
// Hide the Comment Section Previews under the Video Player - @arichornlover
|
||||||
if ((IsEnabled(@"hidePreviewCommentSection_enabled")) && ([self.accessibilityIdentifier isEqualToString:@"id.ui.comments_entry_point_teaser"])) {
|
if ((IsEnabled(@"hidePreviewCommentSection_enabled")) && ([self.accessibilityIdentifier isEqualToString:@"id.ui.comments_entry_point_teaser"])) {
|
||||||
self.hidden = YES;
|
self.hidden = YES;
|
||||||
self.opaque = YES;
|
self.opaque = YES;
|
||||||
@@ -558,6 +557,12 @@ BOOL isTabSelected = NO;
|
|||||||
[self setNeedsLayout];
|
[self setNeedsLayout];
|
||||||
[self removeFromSuperview];
|
[self removeFromSuperview];
|
||||||
}
|
}
|
||||||
|
// Live chat OLED dark mode - @bhackel
|
||||||
|
if (([[YTLUserDefaults standardUserDefaults] boolForKey:@"oledTheme"] // YTLite OLED Theme
|
||||||
|
|| [[NSUserDefaults standardUserDefaults] integerForKey:@"appTheme"] == 1 // YTLitePlus OLED Theme
|
||||||
|
) && [self.accessibilityIdentifier isEqualToString:@"eml.live_chat_text_message"]) {
|
||||||
|
self.backgroundColor = [UIColor blackColor];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user