option to enable iPhone Layout
This commit is contained in:
+10
@@ -398,6 +398,16 @@ extern NSBundle *uYouPlusBundle();
|
|||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
settingItemId:0],
|
settingItemId:0],
|
||||||
|
|
||||||
|
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"IPHONE_LAYOUT")
|
||||||
|
titleDescription:LOC(@"IPHONE_LAYOUT_DESC")
|
||||||
|
accessibilityIdentifier:nil
|
||||||
|
switchOn:IsEnabled(@"iPhoneLayout_enabled")
|
||||||
|
switchBlock:^BOOL (YTSettingsCell *cell, BOOL enabled) {
|
||||||
|
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"iPhoneLayout_enabled"];
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
settingItemId:0],
|
||||||
|
|
||||||
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"NEW_MINIPLAYER_STYLE")
|
[YTSettingsSectionItemClass switchItemWithTitle:LOC(@"NEW_MINIPLAYER_STYLE")
|
||||||
titleDescription:LOC(@"NEW_MINIPLAYER_STYLE_DESC")
|
titleDescription:LOC(@"NEW_MINIPLAYER_STYLE_DESC")
|
||||||
|
|||||||
+26
@@ -1300,6 +1300,29 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
|
|||||||
// %end
|
// %end
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
%group giPhoneLayout
|
||||||
|
%hook UIDevice
|
||||||
|
- (long long)userInterfaceIdiom {
|
||||||
|
return NO;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
%hook UIStatusBarStyleAttributes
|
||||||
|
- (long long)idiom {
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
%hook UIKBTree
|
||||||
|
- (long long)nativeIdiom {
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
%hook UIKBRenderer
|
||||||
|
- (long long)assetIdiom {
|
||||||
|
return YES;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
%end
|
||||||
|
|
||||||
# pragma mark - ctor
|
# pragma mark - ctor
|
||||||
%ctor {
|
%ctor {
|
||||||
// Load uYou first so its functions are available for hooks.
|
// Load uYou first so its functions are available for hooks.
|
||||||
@@ -1342,6 +1365,9 @@ UIColor* raisedColor = [UIColor colorWithRed:0.035 green:0.035 blue:0.035 alpha:
|
|||||||
if (IsEnabled(@"hideChipBar_enabled")) {
|
if (IsEnabled(@"hideChipBar_enabled")) {
|
||||||
%init(gHideChipBar);
|
%init(gHideChipBar);
|
||||||
}
|
}
|
||||||
|
if (IsEnabled(@"iPhoneLayout_enabled")) {
|
||||||
|
%init(giPhoneLayout);
|
||||||
|
}
|
||||||
|
|
||||||
// Disable updates
|
// Disable updates
|
||||||
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"automaticallyCheckForUpdates"];
|
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"automaticallyCheckForUpdates"];
|
||||||
|
|||||||
Reference in New Issue
Block a user