Przeglądaj źródła

Revert "Use Cephei"

This reverts commit 8a2e4afc14.
master
mac-user669 4 lat temu
rodzic
commit
3c42b97e9b
13 zmienionych plików z 61 dodań i 102 usunięć
  1. +3
    -4
      Makefile
  2. +0
    -1
      Tweak.xm
  3. +1
    -1
      control
  4. +0
    -1
      zenithdarkprefs/Makefile
  5. +27
    -58
      zenithdarkprefs/Resources/Root.plist
  6. BIN
      zenithdarkprefs/Resources/iKA@2x.png
  7. BIN
      zenithdarkprefs/Resources/iKA@3x.png
  8. BIN
      zenithdarkprefs/Resources/mac-user669@2x.png
  9. BIN
      zenithdarkprefs/Resources/mac-user669@3x.png
  10. BIN
      zenithdarkprefs/Resources/skitty@2x.png
  11. BIN
      zenithdarkprefs/Resources/skitty@3x.png
  12. +1
    -6
      zenithdarkprefs/ZNDarkPrefsRootListController.h
  13. +29
    -31
      zenithdarkprefs/ZNDarkPrefsRootListController.m

+ 3
- 4
Makefile Wyświetl plik

@@ -6,9 +6,8 @@ include $(THEOS)/makefiles/common.mk

TWEAK_NAME = ZenithDark

$(TWEAK_NAME)_FILES = Tweak.xm
$(TWEAK_NAME)_FRAMEWORKS = UIKit CoreGraphics
$(TWEAK_NAME)_EXTRA_FRAMEWORKS += Cephei CepheiPrefs
ZenithDark_FILES = Tweak.xm
ZenithDark_FRAMEWORKS = UIKit CoreGraphics

include $(THEOS_MAKE_PATH)/tweak.mk

@@ -16,4 +15,4 @@ SUBPROJECTS += zenithdarkprefs
include $(THEOS_MAKE_PATH)/aggregate.mk

after-install::
install.exec "sbreload"
install.exec "sbreload"

+ 0
- 1
Tweak.xm Wyświetl plik

@@ -1,5 +1,4 @@
#import "ZenithDark.h"
#import <Cephei/HBPreferences.h>

/*


+ 1
- 1
control Wyświetl plik

@@ -2,7 +2,7 @@ Package: com.mac-user669.zenithdark
Version: 1.2
Architecture: iphoneos-arm
Maintainer: mac-user669
Depends: mobilesubstrate, preferenceloader, com.muirey03.zenith, ws.hbang.common (>= 1.14)
Depends: mobilesubstrate, preferenceloader, com.muirey03.zenith
Section: Tweaks
Description: Changes Zeniths tabs to a dark blur
Author: mac-user669

+ 0
- 1
zenithdarkprefs/Makefile Wyświetl plik

@@ -11,7 +11,6 @@ ZenithDarkPrefs_FILES = ZNDarkPrefsRootListController.m
ZenithDarkPrefs_INSTALL_PATH = /Library/PreferenceBundles
ZenithDarkPrefs_FRAMEWORKS = UIKit
ZenithDarkPrefs_PRIVATE_FRAMEWORKS = Preferences
ZenithDarkPrefs_EXTRA_FRAMEWORKS += Cephei CepheiPrefs

include $(THEOS_MAKE_PATH)/bundle.mk


+ 27
- 58
zenithdarkprefs/Resources/Root.plist Wyświetl plik

@@ -4,25 +4,6 @@
<dict>
<key>items</key>
<array>

<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>headerCellClass</key>
<string>HBPackageNameHeaderCell</string>
<key>packageIdentifier</key>
<string>com.mac-user669.zenithdark</string>
<key>backgroundGradientColors</key>
<array>
<string>#D0A400</string>
<string>#D0A400</string>
</array>
<key>titleColor</key>
<string>#111111</string>
<key>subtitleColor</key>
<string>#444444</string>
</dict>

<dict>
<key>cell</key>
<string>PSGroupCell</string>
@@ -58,8 +39,6 @@
<string>PSButtonCell</string>
<key>label</key>
<string>Respring</string>
<key>cellClass</key>
<string>HBTintedTableCell</string>
<key>action</key>
<string>doAFancyRespring</string>
</dict>
@@ -72,21 +51,15 @@
<string>Conceptualized by yours truly.</string>
</dict>
<dict>
<key>cellClass</key>
<string>HBTwitterCell</string>
<key>label</key>
<string>mac-user669</string>
<key>user</key>
<string>mac_user669</string>
</dict>
<dict>
<key>cellClass</key>
<string>HBLinkTableCell</string>
<key>label</key>
<string>Donate</string>
<key>url</key>
<string>https://paypal.me/macuser669</string>
</dict>
<key>icon</key>
<string>mac-user669.png</string>
<key>cell</key>
<string>PSButtonCell</string>
<key>label</key>
<string>@mac_user669</string>
<key>action</key>
<string>followMe</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
@@ -94,21 +67,15 @@
<string>Coded most of the tweak.</string>
</dict>
<dict>
<key>cellClass</key>
<string>HBTwitterCell</string>
<key>label</key>
<string>iKilledAppl3</string>
<key>user</key>
<string>iKilledAppl3</string>
</dict>
<dict>
<key>cellClass</key>
<string>HBLinkTableCell</string>
<key>label</key>
<string>Donate</string>
<key>url</key>
<string>https://paypal.me/iKilledAppl3</string>
</dict>
<key>icon</key>
<string>iKA.png</string>
<key>cell</key>
<string>PSButtonCell</string>
<key>label</key>
<string>@iKilledAppl3</string>
<key>action</key>
<string>followiKA</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
@@ -116,13 +83,15 @@
<string>Helped with some of our preferences code and amongst other things.</string>
</dict>
<dict>
<key>cellClass</key>
<string>HBTwitterCell</string>
<key>label</key>
<string>Skittyblock</string>
<key>user</key>
<string>Skittyblock</string>
</dict>
<key>icon</key>
<string>skitty.png</string>
<key>cell</key>
<string>PSButtonCell</string>
<key>label</key>
<string>@Skittyblock</string>
<key>action</key>
<string>followSkitty</string>
</dict>
</array>
<key>title</key>
<string>ZenithDark</string>

BIN
zenithdarkprefs/Resources/iKA@2x.png Wyświetl plik

Before After
Width: 59  |  Height: 59  |  Size: 8.1KB

BIN
zenithdarkprefs/Resources/iKA@3x.png Wyświetl plik

Before After
Width: 80  |  Height: 80  |  Size: 13KB

BIN
zenithdarkprefs/Resources/mac-user669@2x.png Wyświetl plik

Before After
Width: 59  |  Height: 59  |  Size: 6.5KB

BIN
zenithdarkprefs/Resources/mac-user669@3x.png Wyświetl plik

Before After
Width: 80  |  Height: 80  |  Size: 10KB

BIN
zenithdarkprefs/Resources/skitty@2x.png Wyświetl plik

Before After
Width: 59  |  Height: 59  |  Size: 3.9KB

BIN
zenithdarkprefs/Resources/skitty@3x.png Wyświetl plik

Before After
Width: 80  |  Height: 80  |  Size: 5.4KB

+ 1
- 6
zenithdarkprefs/ZNDarkPrefsRootListController.h Wyświetl plik

@@ -1,15 +1,11 @@
#import <Preferences/PSListController.h>
#import <CepheiPrefs/HBRootListController.h>

@import UIKit;

// image for share button

#define kImagePath @"/Library/Application Support/ZenithDark/ZNDark.png"

// @interface ZNDarkPrefsRootListController : PSListController

@interface ZNDarkPrefsRootListController : HBRootListController
@interface ZNDarkPrefsRootListController : PSListController
@property (nonatomic, strong) UIBlurEffect *respringBlur;
@property (nonatomic, strong) UIVisualEffectView *respringEffectView;
@property (nonatomic, strong) UIWindow *mainAppRootWindow;
@@ -37,4 +33,3 @@
- (bool)suspend;
- (void)terminate;
@end


+ 29
- 31
zenithdarkprefs/ZNDarkPrefsRootListController.m Wyświetl plik

@@ -1,44 +1,14 @@
#import "ZNDarkPrefsRootListController.h"
#import <CepheiPrefs/HBAppearanceSettings.h>

#define THEME_COLOR \
[UIColor colorWithRed:0.82 \
green:0.64 \
blue:0.00 \
alpha:1.0];

@implementation ZNDarkPrefsRootListController

+ (UIColor *)hb_tintColor {
return THEME_COLOR;
}

-(void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];

// share button for our tweak :P
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCompose target:self action:@selector(shareTapped)];
}


- (void)viewDidLoad {
[super viewDidLoad];

if (@available(iOS 11, *)) {
self.navigationController.navigationBar.prefersLargeTitles = false;
self.navigationController.navigationItem.largeTitleDisplayMode =
UINavigationItemLargeTitleDisplayModeNever;
}
}

- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];

if (@available(iOS 11, *)) {
self.navigationController.navigationBar.prefersLargeTitles = false;
self.navigationController.navigationItem.largeTitleDisplayMode =
UINavigationItemLargeTitleDisplayModeNever;
}
}


@@ -75,6 +45,23 @@
return _specifiers;
}


-(void)followMe {
NSURL *twitter = [NSURL URLWithString:@"https://twitter.com/mac_user669"];
[[UIApplication sharedApplication] openURL:twitter options:@{} completionHandler:nil];
}

-(void)followiKA {
NSURL *twitter = [NSURL URLWithString:@"https://twitter.com/iKilledAppl3"];
[[UIApplication sharedApplication] openURL:twitter options:@{} completionHandler:nil];
}

-(void)followSkitty {
NSURL *twitter = [NSURL URLWithString:@"https://twitter.com/SkittyBlock"];
[[UIApplication sharedApplication] openURL:twitter options:@{} completionHandler:nil];
}


-(void)respring {
NSTask *task = [[[NSTask alloc] init] autorelease];
[task setLaunchPath:@"/usr/bin/killall"];
@@ -88,7 +75,18 @@
UIAlertController *confirmRespringAlert = [UIAlertController alertControllerWithTitle:@"Apply Settings?" message:@"This will respring your device." preferredStyle:UIAlertControllerStyleActionSheet];
UIAlertAction *confirm = [UIAlertAction actionWithTitle:@"Respring" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * _Nonnull action) {

[self performSelector:@selector(respring) withObject:nil afterDelay:0.0];
// blur then respring our device!
self.mainAppRootWindow = [UIApplication sharedApplication].keyWindow;
self.respringBlur = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark];
self.respringEffectView = [[UIVisualEffectView alloc] initWithEffect:self.respringBlur];
self.respringEffectView.frame = [[UIScreen mainScreen] bounds];
[self.mainAppRootWindow addSubview:self.respringEffectView];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:5.0];
[self.respringEffectView setAlpha:0];
[UIView commitAnimations];

[self performSelector:@selector(respring) withObject:nil afterDelay:3.0];

}];


Ładowanie…
Anuluj
Zapisz