Bläddra i källkod

Cephei for Prefs UI, still need to fix tint color

master
mac-user669 4 år sedan
förälder
incheckning
7c26a46448
7 ändrade filer med 61 tillägg och 38 borttagningar
  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 Visa fil

@@ -8,6 +8,7 @@ TWEAK_NAME = ZenithDark

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

include $(THEOS_MAKE_PATH)/tweak.mk

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

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

+ 3
- 0
Tweak.xm Visa fil

@@ -1,4 +1,7 @@
#import "ZenithDark.h"
#import <Cephei/HBPreferences.h>
#import <CepheiPrefs/HBRootListController.h>
#import <CepheiPrefs/HBAppearanceSettings.h>

/*


+ 1
- 1
control Visa fil

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

+ 2
- 0
zenithdarkprefs/Makefile Visa fil

@@ -11,6 +11,8 @@ 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


+ 37
- 34
zenithdarkprefs/Resources/Root.plist Visa fil

@@ -5,13 +5,22 @@
<key>items</key>
<array>
<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>
<key>PostNotification</key>
<string>com.mac-user669.zenithdark.prefschanged</string>
@@ -51,15 +60,13 @@
<string>Conceptualized by yours truly.</string>
</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>
<key>cell</key>
<string>PSGroupCell</string>
@@ -67,15 +74,13 @@
<string>Coded most of the tweak.</string>
</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>
<key>cell</key>
<string>PSGroupCell</string>
@@ -83,15 +88,13 @@
<string>Helped with some of our preferences code and amongst other things.</string>
</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>
<key>title</key>
<string>ZenithDark</string>

+ 4
- 0
zenithdarkprefs/ZNDarkPrefsRootListController.h Visa fil

@@ -1,4 +1,8 @@
#import <Preferences/PSListController.h>
#import <CepheiPrefs/HBRootListController.h>
#import <CepheiPrefs/HBAppearanceSettings.h>
#import <Cephei/HBPreferences.h>

@import UIKit;

// image for share button

+ 12
- 2
zenithdarkprefs/ZNDarkPrefsRootListController.m Visa fil

@@ -1,14 +1,24 @@
#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

+ (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)];


}



Laddar…
Avbryt
Spara