From 7c26a46448b89e28cc4f71cb87537b2a5b654b6c Mon Sep 17 00:00:00 2001 From: mac-user669 Date: Thu, 23 Jan 2020 20:59:07 -0500 Subject: [PATCH] Cephei for Prefs UI, still need to fix tint color --- Makefile | 3 +- Tweak.xm | 3 + control | 2 +- zenithdarkprefs/Makefile | 2 + zenithdarkprefs/Resources/Root.plist | 71 ++++++++++--------- .../ZNDarkPrefsRootListController.h | 4 ++ .../ZNDarkPrefsRootListController.m | 14 +++- 7 files changed, 61 insertions(+), 38 deletions(-) diff --git a/Makefile b/Makefile index 5b25f1e..9a0afea 100644 --- a/Makefile +++ b/Makefile @@ -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" \ No newline at end of file + install.exec "sbreload" diff --git a/Tweak.xm b/Tweak.xm index 7302a66..9747273 100644 --- a/Tweak.xm +++ b/Tweak.xm @@ -1,4 +1,7 @@ #import "ZenithDark.h" +#import +#import +#import /* diff --git a/control b/control index 53b2813..110a2fa 100644 --- a/control +++ b/control @@ -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 diff --git a/zenithdarkprefs/Makefile b/zenithdarkprefs/Makefile index 1c399e6..eb64ba2 100644 --- a/zenithdarkprefs/Makefile +++ b/zenithdarkprefs/Makefile @@ -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 diff --git a/zenithdarkprefs/Resources/Root.plist b/zenithdarkprefs/Resources/Root.plist index e32dd84..a740135 100644 --- a/zenithdarkprefs/Resources/Root.plist +++ b/zenithdarkprefs/Resources/Root.plist @@ -5,13 +5,22 @@ items - cell - PSGroupCell - label - Enable Tweak - footerText - Enable to give Zenith's pull tabs a dark look! - + cell + PSGroupCell + headerCellClass + HBPackageNameHeaderCell + packageIdentifier + com.mac-user669.zenithdark + backgroundGradientColors + + #D0A400 + #D0A400 + + titleColor + #111111 + subtitleColor + #444444 + PostNotification com.mac-user669.zenithdark.prefschanged @@ -51,15 +60,13 @@ Conceptualized by yours truly. - icon - mac-user669.png - cell - PSButtonCell - label - @mac_user669 - action - followMe - + cellClass + HBTwitterCell + label + mac-user669 + user + mac_user669 + cell PSGroupCell @@ -67,15 +74,13 @@ Coded most of the tweak. - icon - iKA.png - cell - PSButtonCell - label - @iKilledAppl3 - action - followiKA - + cellClass + HBTwitterCell + label + iKilledAppl3 + user + iKilledAppl3 + cell PSGroupCell @@ -83,15 +88,13 @@ Helped with some of our preferences code and amongst other things. - icon - skitty.png - cell - PSButtonCell - label - @Skittyblock - action - followSkitty - + cellClass + HBTwitterCell + label + Skittyblock + user + Skittyblock + title ZenithDark diff --git a/zenithdarkprefs/ZNDarkPrefsRootListController.h b/zenithdarkprefs/ZNDarkPrefsRootListController.h index bf77975..f2c2526 100644 --- a/zenithdarkprefs/ZNDarkPrefsRootListController.h +++ b/zenithdarkprefs/ZNDarkPrefsRootListController.h @@ -1,4 +1,8 @@ #import +#import +#import +#import + @import UIKit; // image for share button diff --git a/zenithdarkprefs/ZNDarkPrefsRootListController.m b/zenithdarkprefs/ZNDarkPrefsRootListController.m index 16a63af..db91466 100644 --- a/zenithdarkprefs/ZNDarkPrefsRootListController.m +++ b/zenithdarkprefs/ZNDarkPrefsRootListController.m @@ -1,14 +1,24 @@ #import "ZNDarkPrefsRootListController.h" +#import + +#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)]; - - }