From 6c7eadc19d63de1d314f7f8a238f212725b42ab5 Mon Sep 17 00:00:00 2001 From: Balackburn <93828569+Balackburn@users.noreply.github.com> Date: Mon, 31 Jul 2023 15:00:20 +0200 Subject: [PATCH] added hide separators --- Source/Themes.xm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Source/Themes.xm b/Source/Themes.xm index a05e00c..8addb9c 100644 --- a/Source/Themes.xm +++ b/Source/Themes.xm @@ -103,6 +103,14 @@ UIColor *customColor = [UIColor colorWithRed:0.129 green:0.129 blue:0.129 alpha: } } %end + +// Hide separators +%hook YTCollectionSeparatorView +- (void)setHidden:(BOOL)arg1 { + %orig(YES); +} +%end + %hook YTPivotBarView - (void)setBackgroundColor:(UIColor *)color { return isDarkMode() ? %orig(customColor) : %orig; @@ -485,6 +493,14 @@ UIColor* raisedColor = [UIColor blackColor]; } } %end + +// Hide separators +%hook YTCollectionSeparatorView +- (void)setHidden:(BOOL)arg1 { + %orig(YES); +} +%end + %hook YTPivotBarView - (void)setBackgroundColor:(UIColor *)color { return isDarkMode() ? %orig([UIColor blackColor]) : %orig;