mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-19 22:22:06 +00:00
improved OLED Darkmode
This commit is contained in:
parent
f029b9a372
commit
26b5912495
1 changed files with 10 additions and 1 deletions
11
uYouPlus.xm
11
uYouPlus.xm
|
|
@ -205,7 +205,7 @@ BOOL ytMiniPlayer() {
|
|||
- (void)showSurveyWithRenderer:(id)arg1 surveyParentResponder:(id)arg2 {}
|
||||
%end
|
||||
|
||||
// Enable Shorts scroll bar - level3tg - https://reddit.com/r/jailbreak/comments/v29yvk/_/iasl1l0/
|
||||
// Enable Shorts scroll bar - level3tjg - https://reddit.com/r/jailbreak/comments/v29yvk/_/iasl1l0/
|
||||
%hook YTReelPlayerViewControllerSub
|
||||
- (BOOL)shouldEnablePlayerBar { return YES; }
|
||||
%end
|
||||
|
|
@ -448,6 +448,15 @@ UIColor* oledColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1.0];
|
|||
}
|
||||
%end
|
||||
|
||||
%hook _ASDisplayView // comment reply under videos
|
||||
- (void)didMoveToWindow {
|
||||
if (isDarkMode() && [self.accessibilityIdentifier isEqualToString:@"id.elements.components.comment_composer"]) {
|
||||
%orig;
|
||||
self.backgroundColor = oledColor;
|
||||
}
|
||||
}
|
||||
%end
|
||||
|
||||
%hook YTFormattedStringLabel // YT is werid...
|
||||
- (void)setBackgroundColor:(UIColor *)color {
|
||||
if (isDarkMode()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue