From a5cc76d5271d8750d6679809f9e7ac234cbf38da Mon Sep 17 00:00:00 2001 From: mac-user669 Date: Fri, 24 Jan 2020 16:13:03 -0500 Subject: [PATCH] Add about page, but no color picker yet! --- zenithdarkprefs/Makefile | 2 +- zenithdarkprefs/Resources/About.plist | 90 +++++++++++++++++++ zenithdarkprefs/Resources/Root.plist | 54 +++-------- .../ZNDarkPrefsAboutListController.h | 5 ++ .../ZNDarkPrefsAboutListController.m | 9 ++ 5 files changed, 117 insertions(+), 43 deletions(-) create mode 100755 zenithdarkprefs/Resources/About.plist create mode 100755 zenithdarkprefs/ZNDarkPrefsAboutListController.h create mode 100755 zenithdarkprefs/ZNDarkPrefsAboutListController.m diff --git a/zenithdarkprefs/Makefile b/zenithdarkprefs/Makefile index eb64ba2..62b8566 100644 --- a/zenithdarkprefs/Makefile +++ b/zenithdarkprefs/Makefile @@ -7,7 +7,7 @@ TARGET = iphone:12.2:13.0 include $(THEOS)/makefiles/common.mk BUNDLE_NAME = ZenithDarkPrefs -ZenithDarkPrefs_FILES = ZNDarkPrefsRootListController.m +ZenithDarkPrefs_FILES = ZNDarkPrefsRootListController.m ZNDarkPrefsAboutListController.m ZenithDarkPrefs_INSTALL_PATH = /Library/PreferenceBundles ZenithDarkPrefs_FRAMEWORKS = UIKit ZenithDarkPrefs_PRIVATE_FRAMEWORKS = Preferences diff --git a/zenithdarkprefs/Resources/About.plist b/zenithdarkprefs/Resources/About.plist new file mode 100755 index 0000000..d7f16e0 --- /dev/null +++ b/zenithdarkprefs/Resources/About.plist @@ -0,0 +1,90 @@ + + + + + items + + + cell + PSGroupCell + condensed + + headerCellClass + HBPackageNameHeaderCell + icon + icon.png + packageIdentifier + com.mac-user669.zenithdark + titleColor + #D0A400 + subtitleColor + #D0A400 + + + cell + PSGroupCell + label + Credits + footerText + Conceptualized by yours truly. + + + cellClass + HBTwitterCell + label + mac-user669 + user + mac_user669 + + + cell + PSGroupCell + footerText + Coded most of the tweak. + + + cellClass + HBTwitterCell + label + iKilledAppl3 + user + iKilledAppl3 + + + cell + PSGroupCell + footerText + Helped with some of our preferences code and amongst other things. + + + cellClass + HBTwitterCell + label + Skittyblock + user + Skittyblock + + + + cell + PSGroupCell + label + Open Source! + footerText + + + + cellClass + HBLinkTableCell + label + Source Code + subtitle + View on GitHub + url + https://github.com/mac-user669/ZenithDark + + + title + About + + diff --git a/zenithdarkprefs/Resources/Root.plist b/zenithdarkprefs/Resources/Root.plist index 102ee8a..c818d1a 100644 --- a/zenithdarkprefs/Resources/Root.plist +++ b/zenithdarkprefs/Resources/Root.plist @@ -11,15 +11,10 @@ HBPackageNameHeaderCell packageIdentifier com.mac-user669.zenithdark - backgroundGradientColors - - #D0A400 - #D0A400 - titleColor - #111111 + #D0A400 subtitleColor - #444444 + #D0A400 @@ -60,46 +55,21 @@ cell PSGroupCell label - Credits + footerText - Conceptualized by yours truly. + - - cellClass - HBTwitterCell - label - mac-user669 - user - mac_user669 - + cell - PSGroupCell - footerText - Coded most of the tweak. + PSLinkCell + detail + ZNDarkPrefsAboutListController + isController + + label + About - - cellClass - HBTwitterCell - label - iKilledAppl3 - user - iKilledAppl3 - - - cell - PSGroupCell - footerText - Helped with some of our preferences code and amongst other things. - - - cellClass - HBTwitterCell - label - Skittyblock - user - Skittyblock - title ZenithDark diff --git a/zenithdarkprefs/ZNDarkPrefsAboutListController.h b/zenithdarkprefs/ZNDarkPrefsAboutListController.h new file mode 100755 index 0000000..5ec36bf --- /dev/null +++ b/zenithdarkprefs/ZNDarkPrefsAboutListController.h @@ -0,0 +1,5 @@ +#import + +@interface ZNDarkPrefsAboutListController : HBAboutListController + +@end diff --git a/zenithdarkprefs/ZNDarkPrefsAboutListController.m b/zenithdarkprefs/ZNDarkPrefsAboutListController.m new file mode 100755 index 0000000..33a5b6d --- /dev/null +++ b/zenithdarkprefs/ZNDarkPrefsAboutListController.m @@ -0,0 +1,9 @@ +#include "ZNDarkPrefsAboutListController.h" + +@implementation ZNDarkPrefsAboutListController + ++ (NSString *)hb_specifierPlist { + return @"About"; +} + +@end