Browse Source

Cephei for Prefs UI, still need to fix tint color

master
mac-user669 4 years ago
parent
commit
7c26a46448
7 changed files with 61 additions and 38 deletions
  1. +2
    -1
      Makefile
  2. +3
    -0
      Tweak.xm
  3. +1
    -1
      control
  4. +2
    -0
      zenithdarkprefs/Makefile
  5. +37
    -34
      zenithdarkprefs/Resources/Root.plist
  6. +4
    -0
      zenithdarkprefs/ZNDarkPrefsRootListController.h
  7. +12
    -2
      zenithdarkprefs/ZNDarkPrefsRootListController.m

+ 2
- 1
Makefile View File



ZenithDark_FILES = Tweak.xm ZenithDark_FILES = Tweak.xm
ZenithDark_FRAMEWORKS = UIKit CoreGraphics ZenithDark_FRAMEWORKS = UIKit CoreGraphics
ZenithDark_EXTRA_FRAMEWORKS += Cephei


include $(THEOS_MAKE_PATH)/tweak.mk include $(THEOS_MAKE_PATH)/tweak.mk


include $(THEOS_MAKE_PATH)/aggregate.mk include $(THEOS_MAKE_PATH)/aggregate.mk


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

+ 3
- 0
Tweak.xm View File

#import "ZenithDark.h" #import "ZenithDark.h"
#import <Cephei/HBPreferences.h>
#import <CepheiPrefs/HBRootListController.h>
#import <CepheiPrefs/HBAppearanceSettings.h>


/* /*



+ 1
- 1
control View File

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

+ 2
- 0
zenithdarkprefs/Makefile View File

ZenithDarkPrefs_INSTALL_PATH = /Library/PreferenceBundles ZenithDarkPrefs_INSTALL_PATH = /Library/PreferenceBundles
ZenithDarkPrefs_FRAMEWORKS = UIKit ZenithDarkPrefs_FRAMEWORKS = UIKit
ZenithDarkPrefs_PRIVATE_FRAMEWORKS = Preferences ZenithDarkPrefs_PRIVATE_FRAMEWORKS = Preferences
ZenithDarkPrefs_EXTRA_FRAMEWORKS = Cephei CepheiPrefs



include $(THEOS_MAKE_PATH)/bundle.mk include $(THEOS_MAKE_PATH)/bundle.mk



+ 37
- 34
zenithdarkprefs/Resources/Root.plist View File

<key>items</key> <key>items</key>
<array> <array>
<dict> <dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>label</key>
<string>Enable Tweak</string>
<key>footerText</key>
<string>Enable to give Zenith&apos;s pull tabs a dark look!</string>
</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> <dict>
<key>PostNotification</key> <key>PostNotification</key>
<string>com.mac-user669.zenithdark.prefschanged</string> <string>com.mac-user669.zenithdark.prefschanged</string>
<string>Conceptualized by yours truly.</string> <string>Conceptualized by yours truly.</string>
</dict> </dict>
<dict> <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>
<key>cellClass</key>
<string>HBTwitterCell</string>
<key>label</key>
<string>mac-user669</string>
<key>user</key>
<string>mac_user669</string>
</dict>
<dict> <dict>
<key>cell</key> <key>cell</key>
<string>PSGroupCell</string> <string>PSGroupCell</string>
<string>Coded most of the tweak.</string> <string>Coded most of the tweak.</string>
</dict> </dict>
<dict> <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>
<key>cellClass</key>
<string>HBTwitterCell</string>
<key>label</key>
<string>iKilledAppl3</string>
<key>user</key>
<string>iKilledAppl3</string>
</dict>
<dict> <dict>
<key>cell</key> <key>cell</key>
<string>PSGroupCell</string> <string>PSGroupCell</string>
<string>Helped with some of our preferences code and amongst other things.</string> <string>Helped with some of our preferences code and amongst other things.</string>
</dict> </dict>
<dict> <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>
<key>cellClass</key>
<string>HBTwitterCell</string>
<key>label</key>
<string>Skittyblock</string>
<key>user</key>
<string>Skittyblock</string>
</dict>
</array> </array>
<key>title</key> <key>title</key>
<string>ZenithDark</string> <string>ZenithDark</string>

+ 4
- 0
zenithdarkprefs/ZNDarkPrefsRootListController.h View File

#import <Preferences/PSListController.h> #import <Preferences/PSListController.h>
#import <CepheiPrefs/HBRootListController.h>
#import <CepheiPrefs/HBAppearanceSettings.h>
#import <Cephei/HBPreferences.h>

@import UIKit; @import UIKit;


// image for share button // image for share button

+ 12
- 2
zenithdarkprefs/ZNDarkPrefsRootListController.m View File

#import "ZNDarkPrefsRootListController.h" #import "ZNDarkPrefsRootListController.h"
#import <CepheiPrefs/HBAppearanceSettings.h>

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



@implementation ZNDarkPrefsRootListController @implementation ZNDarkPrefsRootListController


+ (UIColor *)hb_tintColor {
return THEME_COLOR;
}

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


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


} }





Loading…
Cancel
Save