SafariPlus
SafariPlus copied to clipboard
Bookmarks/Favorites themeing
trafficstars
I have this code to do so
@interface BookmarkFavoritesCollectionView : UICollectionView
@end
@interface VibrantLabelView: UIView
@property (nonatomic, retain) UIColor* nonVibrantColor;
@end
/*
@interface BookmarkFavoriteView : UIView
//MSHookIvar<VibrantLabelView*>(self, "_titleLabel")
@end
*/
%hook BookmarkFavoritesCollectionView
- (void)layoutSubviews {
%orig;
self.backgroundColor = [UIColor blackColor];
}
%end
%hook VibrantLabelView
- (void)layoutSubviews {
%orig;
self.nonVibrantColor = [UIColor colorWithRed:1 green:0 blue:0.17 alpha:1];
}
%end
I've tried to add it but it seems to fail and all the preferences fail to load
Might add this in version 1.7, will have to see.