Explorar el Código

kage

tags/v1.0.0
Viggo Lekdorf hace 4 años
commit
a7005799f4
Se han modificado 48 ficheros con 767 adiciones y 0 borrados
  1. +12
    -0
      .theos/_/DEBIAN/control
  2. BIN
      .theos/_/Library/MobileSubstrate/DynamicLibraries/Kage.dylib
  3. +1
    -0
      .theos/_/Library/MobileSubstrate/DynamicLibraries/Kage.plist
  4. +24
    -0
      .theos/_/Library/PreferenceBundles/kageprefs.bundle/Info.plist
  5. +87
    -0
      .theos/_/Library/PreferenceBundles/kageprefs.bundle/Root.plist
  6. BIN
      .theos/_/Library/PreferenceBundles/kageprefs.bundle/kageprefs
  7. +21
    -0
      .theos/_/Library/PreferenceLoader/Preferences/kageprefs.plist
  8. +0
    -0
      .theos/build_session
  9. +0
    -0
      .theos/fakeroot
  10. +1
    -0
      .theos/last_package
  11. +0
    -0
      .theos/obj/debug/.stamp
  12. BIN
      .theos/obj/debug/Kage.dylib
  13. BIN
      .theos/obj/debug/arm64/Kage.dylib
  14. +20
    -0
      .theos/obj/debug/arm64/Kage.dylib.dSYM/Contents/Info.plist
  15. BIN
      .theos/obj/debug/arm64/Kage.dylib.dSYM/Contents/Resources/DWARF/Kage.dylib
  16. +21
    -0
      .theos/obj/debug/arm64/KgeRootListController.m.6665583a.Td
  17. BIN
      .theos/obj/debug/arm64/KgeRootListController.m.6665583a.o
  18. +17
    -0
      .theos/obj/debug/arm64/Tweak.x.cb862df1.Td
  19. BIN
      .theos/obj/debug/arm64/Tweak.x.cb862df1.o
  20. BIN
      .theos/obj/debug/arm64/kageprefs.bundle/kageprefs
  21. +20
    -0
      .theos/obj/debug/arm64/kageprefs.bundle/kageprefs.dSYM/Contents/Info.plist
  22. BIN
      .theos/obj/debug/arm64/kageprefs.bundle/kageprefs.dSYM/Contents/Resources/DWARF/kageprefs
  23. BIN
      .theos/obj/debug/arm64e/Kage.dylib
  24. +20
    -0
      .theos/obj/debug/arm64e/Kage.dylib.dSYM/Contents/Info.plist
  25. BIN
      .theos/obj/debug/arm64e/Kage.dylib.dSYM/Contents/Resources/DWARF/Kage.dylib
  26. +21
    -0
      .theos/obj/debug/arm64e/KgeRootListController.m.7e6d29a3.Td
  27. BIN
      .theos/obj/debug/arm64e/KgeRootListController.m.7e6d29a3.o
  28. +17
    -0
      .theos/obj/debug/arm64e/Tweak.x.fc246e88.Td
  29. BIN
      .theos/obj/debug/arm64e/Tweak.x.fc246e88.o
  30. BIN
      .theos/obj/debug/arm64e/kageprefs.bundle/kageprefs
  31. +20
    -0
      .theos/obj/debug/arm64e/kageprefs.bundle/kageprefs.dSYM/Contents/Info.plist
  32. BIN
      .theos/obj/debug/arm64e/kageprefs.bundle/kageprefs.dSYM/Contents/Resources/DWARF/kageprefs
  33. +24
    -0
      .theos/obj/debug/kageprefs.bundle/Info.plist
  34. +87
    -0
      .theos/obj/debug/kageprefs.bundle/Root.plist
  35. BIN
      .theos/obj/debug/kageprefs.bundle/kageprefs
  36. +1
    -0
      .theos/packages/com.yaypixxo.kage-1.0.0
  37. +1
    -0
      Kage.plist
  38. +15
    -0
      Makefile
  39. +5
    -0
      README.md
  40. +144
    -0
      Tweak.x
  41. +11
    -0
      control
  42. +5
    -0
      kageprefs/KgeRootListController.h
  43. +22
    -0
      kageprefs/KgeRootListController.m
  44. +18
    -0
      kageprefs/Makefile
  45. +24
    -0
      kageprefs/Resources/Info.plist
  46. +87
    -0
      kageprefs/Resources/Root.plist
  47. +21
    -0
      kageprefs/entry.plist
  48. BIN
      packages/com.yaypixxo.kage_1.0.0-1+debug_iphoneos-arm.deb

+ 12
- 0
.theos/_/DEBIAN/control Ver fichero

@@ -0,0 +1,12 @@
Package: com.yaypixxo.kage
Name: Kage
Depends: mobilesubstrate, preferenceloader
Architecture: iphoneos-arm
Description: show/hide/change ls and hs stuff!
Depiction: https://yaypixxo.com/depictions?p=com.yaypixxo.kage
SileoDepiction: https://yaypixxo.com/sileo/com.yaypixxo.kage
Maintainer: YaYPIXXO <viggo@lekdorf.com>
Author: YaYPIXXO <viggo@lekdorf.com>
Section: Tweaks
Version: 1.0.0-1+debug
Installed-Size: 284

BIN
.theos/_/Library/MobileSubstrate/DynamicLibraries/Kage.dylib Ver fichero


+ 1
- 0
.theos/_/Library/MobileSubstrate/DynamicLibraries/Kage.plist Ver fichero

@@ -0,0 +1 @@
{ Filter = { Bundles = ( "com.apple.springboard" ); }; }

+ 24
- 0
.theos/_/Library/PreferenceBundles/kageprefs.bundle/Info.plist Ver fichero

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>kageprefs</string>
<key>CFBundleIdentifier</key>
<string>com.yaypixxo.kageprefs</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>NSPrincipalClass</key>
<string>KgeRootListController</string>
</dict>
</plist>

+ 87
- 0
.theos/_/Library/PreferenceBundles/kageprefs.bundle/Root.plist Ver fichero

@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>label</key>
<string>Kage - by YaYPIXXO</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.yaypixxo.kage</string>
<key>key</key>
<string>enabled</string>
<key>label</key>
<string>Enable Tweak</string>
<key>PostNotification</key>
<string>com.yaypixxo.kage/preferences.changed</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.yaypixxo.kage</string>
<key>key</key>
<string>hide3dDivs</string>
<key>label</key>
<string>Hide 3D Touch Dividers</string>
<key>PostNotification</key>
<string>com.yaypixxo.kage/preferences.changed</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.yaypixxo.kage</string>
<key>key</key>
<string>gridSwitcher</string>
<key>label</key>
<string>Enable Grid Switcher</string>
<key>PostNotification</key>
<string>com.yaypixxo.kage/preferences.changed</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.yaypixxo.kage</string>
<key>key</key>
<string>hideLSBatt</string>
<key>label</key>
<string>Hide LS Battery</string>
<key>PostNotification</key>
<string>com.yaypixxo.kage/preferences.changed</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.yaypixxo.kage</string>
<key>key</key>
<string>statusBarShowTimeLS</string>
<key>label</key>
<string>Time in LS Status Bar</string>
<key>PostNotification</key>
<string>com.yaypixxo.kage/preferences.changed</string>
</dict>
</array>
<key>title</key>
<string>Kage</string>
</dict>
</plist>

BIN
.theos/_/Library/PreferenceBundles/kageprefs.bundle/kageprefs Ver fichero


+ 21
- 0
.theos/_/Library/PreferenceLoader/Preferences/kageprefs.plist Ver fichero

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>entry</key>
<dict>
<key>bundle</key>
<string>kageprefs</string>
<key>cell</key>
<string>PSLinkCell</string>
<key>detail</key>
<string>KgeRootListController</string>
<key>icon</key>
<string>icon.png</string>
<key>isController</key>
<true/>
<key>label</key>
<string>Kage</string>
</dict>
</dict>
</plist>

+ 0
- 0
.theos/build_session Ver fichero


+ 0
- 0
.theos/fakeroot Ver fichero


+ 1
- 0
.theos/last_package Ver fichero

@@ -0,0 +1 @@
./packages/com.yaypixxo.kage_1.0.0-1+debug_iphoneos-arm.deb

+ 0
- 0
.theos/obj/debug/.stamp Ver fichero


BIN
.theos/obj/debug/Kage.dylib Ver fichero


BIN
.theos/obj/debug/arm64/Kage.dylib Ver fichero


+ 20
- 0
.theos/obj/debug/arm64/Kage.dylib.dSYM/Contents/Info.plist Ver fichero

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.Kage.dylib</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

BIN
.theos/obj/debug/arm64/Kage.dylib.dSYM/Contents/Resources/DWARF/Kage.dylib Ver fichero


+ 21
- 0
.theos/obj/debug/arm64/KgeRootListController.m.6665583a.Td Ver fichero

@@ -0,0 +1,21 @@
/Users/yaypixxo/Documents/git/kage/.theos/obj/debug/arm64/KgeRootListController.m.6665583a.o: \
KgeRootListController.m /Users/yaypixxo/theos/Prefix.pch \
/Users/yaypixxo/theos/vendor/include/_Prefix/BackwardsCompat.h \
/Users/yaypixxo/theos/vendor/include/_Prefix/IOSMacros.h \
/Users/yaypixxo/theos/vendor/include/HBLog.h KgeRootListController.h \
/Users/yaypixxo/theos/vendor/include/Preferences/PSListController.h \
/Users/yaypixxo/theos/vendor/include/Preferences/PSViewController.h

/Users/yaypixxo/theos/Prefix.pch:

/Users/yaypixxo/theos/vendor/include/_Prefix/BackwardsCompat.h:

/Users/yaypixxo/theos/vendor/include/_Prefix/IOSMacros.h:

/Users/yaypixxo/theos/vendor/include/HBLog.h:

KgeRootListController.h:

/Users/yaypixxo/theos/vendor/include/Preferences/PSListController.h:

/Users/yaypixxo/theos/vendor/include/Preferences/PSViewController.h:

BIN
.theos/obj/debug/arm64/KgeRootListController.m.6665583a.o Ver fichero


+ 17
- 0
.theos/obj/debug/arm64/Tweak.x.cb862df1.Td Ver fichero

@@ -0,0 +1,17 @@
/Users/yaypixxo/Documents/git/kage/.theos/obj/debug/arm64/Tweak.x.cb862df1.o: \
/Users/yaypixxo/Documents/git/kage/.theos/obj/debug/arm64/Tweak.x.m \
/Users/yaypixxo/theos/Prefix.pch \
/Users/yaypixxo/theos/vendor/include/_Prefix/BackwardsCompat.h \
/Users/yaypixxo/theos/vendor/include/_Prefix/IOSMacros.h \
/Users/yaypixxo/theos/vendor/include/HBLog.h \
/Users/yaypixxo/theos/vendor/include/substrate.h

/Users/yaypixxo/theos/Prefix.pch:

/Users/yaypixxo/theos/vendor/include/_Prefix/BackwardsCompat.h:

/Users/yaypixxo/theos/vendor/include/_Prefix/IOSMacros.h:

/Users/yaypixxo/theos/vendor/include/HBLog.h:

/Users/yaypixxo/theos/vendor/include/substrate.h:

BIN
.theos/obj/debug/arm64/Tweak.x.cb862df1.o Ver fichero


BIN
.theos/obj/debug/arm64/kageprefs.bundle/kageprefs Ver fichero


+ 20
- 0
.theos/obj/debug/arm64/kageprefs.bundle/kageprefs.dSYM/Contents/Info.plist Ver fichero

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.kageprefs</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

BIN
.theos/obj/debug/arm64/kageprefs.bundle/kageprefs.dSYM/Contents/Resources/DWARF/kageprefs Ver fichero


BIN
.theos/obj/debug/arm64e/Kage.dylib Ver fichero


+ 20
- 0
.theos/obj/debug/arm64e/Kage.dylib.dSYM/Contents/Info.plist Ver fichero

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.Kage.dylib</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

BIN
.theos/obj/debug/arm64e/Kage.dylib.dSYM/Contents/Resources/DWARF/Kage.dylib Ver fichero


+ 21
- 0
.theos/obj/debug/arm64e/KgeRootListController.m.7e6d29a3.Td Ver fichero

@@ -0,0 +1,21 @@
/Users/yaypixxo/Documents/git/kage/.theos/obj/debug/arm64e/KgeRootListController.m.7e6d29a3.o: \
KgeRootListController.m /Users/yaypixxo/theos/Prefix.pch \
/Users/yaypixxo/theos/vendor/include/_Prefix/BackwardsCompat.h \
/Users/yaypixxo/theos/vendor/include/_Prefix/IOSMacros.h \
/Users/yaypixxo/theos/vendor/include/HBLog.h KgeRootListController.h \
/Users/yaypixxo/theos/vendor/include/Preferences/PSListController.h \
/Users/yaypixxo/theos/vendor/include/Preferences/PSViewController.h

/Users/yaypixxo/theos/Prefix.pch:

/Users/yaypixxo/theos/vendor/include/_Prefix/BackwardsCompat.h:

/Users/yaypixxo/theos/vendor/include/_Prefix/IOSMacros.h:

/Users/yaypixxo/theos/vendor/include/HBLog.h:

KgeRootListController.h:

/Users/yaypixxo/theos/vendor/include/Preferences/PSListController.h:

/Users/yaypixxo/theos/vendor/include/Preferences/PSViewController.h:

BIN
.theos/obj/debug/arm64e/KgeRootListController.m.7e6d29a3.o Ver fichero


+ 17
- 0
.theos/obj/debug/arm64e/Tweak.x.fc246e88.Td Ver fichero

@@ -0,0 +1,17 @@
/Users/yaypixxo/Documents/git/kage/.theos/obj/debug/arm64e/Tweak.x.fc246e88.o: \
/Users/yaypixxo/Documents/git/kage/.theos/obj/debug/arm64e/Tweak.x.m \
/Users/yaypixxo/theos/Prefix.pch \
/Users/yaypixxo/theos/vendor/include/_Prefix/BackwardsCompat.h \
/Users/yaypixxo/theos/vendor/include/_Prefix/IOSMacros.h \
/Users/yaypixxo/theos/vendor/include/HBLog.h \
/Users/yaypixxo/theos/vendor/include/substrate.h

/Users/yaypixxo/theos/Prefix.pch:

/Users/yaypixxo/theos/vendor/include/_Prefix/BackwardsCompat.h:

/Users/yaypixxo/theos/vendor/include/_Prefix/IOSMacros.h:

/Users/yaypixxo/theos/vendor/include/HBLog.h:

/Users/yaypixxo/theos/vendor/include/substrate.h:

BIN
.theos/obj/debug/arm64e/Tweak.x.fc246e88.o Ver fichero


BIN
.theos/obj/debug/arm64e/kageprefs.bundle/kageprefs Ver fichero


+ 20
- 0
.theos/obj/debug/arm64e/kageprefs.bundle/kageprefs.dSYM/Contents/Info.plist Ver fichero

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.kageprefs</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

BIN
.theos/obj/debug/arm64e/kageprefs.bundle/kageprefs.dSYM/Contents/Resources/DWARF/kageprefs Ver fichero


+ 24
- 0
.theos/obj/debug/kageprefs.bundle/Info.plist Ver fichero

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>kageprefs</string>
<key>CFBundleIdentifier</key>
<string>com.yaypixxo.kageprefs</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>NSPrincipalClass</key>
<string>KgeRootListController</string>
</dict>
</plist>

+ 87
- 0
.theos/obj/debug/kageprefs.bundle/Root.plist Ver fichero

@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>label</key>
<string>Kage - by YaYPIXXO</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.yaypixxo.kage</string>
<key>key</key>
<string>enabled</string>
<key>label</key>
<string>Enable Tweak</string>
<key>PostNotification</key>
<string>com.yaypixxo.kage/preferences.changed</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.yaypixxo.kage</string>
<key>key</key>
<string>hide3dDivs</string>
<key>label</key>
<string>Hide 3D Touch Dividers</string>
<key>PostNotification</key>
<string>com.yaypixxo.kage/preferences.changed</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.yaypixxo.kage</string>
<key>key</key>
<string>gridSwitcher</string>
<key>label</key>
<string>Enable Grid Switcher</string>
<key>PostNotification</key>
<string>com.yaypixxo.kage/preferences.changed</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.yaypixxo.kage</string>
<key>key</key>
<string>hideLSBatt</string>
<key>label</key>
<string>Hide LS Battery</string>
<key>PostNotification</key>
<string>com.yaypixxo.kage/preferences.changed</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.yaypixxo.kage</string>
<key>key</key>
<string>statusBarShowTimeLS</string>
<key>label</key>
<string>Time in LS Status Bar</string>
<key>PostNotification</key>
<string>com.yaypixxo.kage/preferences.changed</string>
</dict>
</array>
<key>title</key>
<string>Kage</string>
</dict>
</plist>

BIN
.theos/obj/debug/kageprefs.bundle/kageprefs Ver fichero


+ 1
- 0
.theos/packages/com.yaypixxo.kage-1.0.0 Ver fichero

@@ -0,0 +1 @@
1

+ 1
- 0
Kage.plist Ver fichero

@@ -0,0 +1 @@
{ Filter = { Bundles = ( "com.apple.springboard" ); }; }

+ 15
- 0
Makefile Ver fichero

@@ -0,0 +1,15 @@
ARCHS = arm64 arm64e
TARGET = iphone:clang:11.2:11.2

INSTALL_TARGET_PROCESSES = SpringBoard

include $(THEOS)/makefiles/common.mk

TWEAK_NAME = Kage

Kage_FILES = Tweak.x
Kage_CFLAGS = -fobjc-arc

include $(THEOS_MAKE_PATH)/tweak.mk
SUBPROJECTS += kageprefs
include $(THEOS_MAKE_PATH)/aggregate.mk

+ 5
- 0
README.md Ver fichero

@@ -0,0 +1,5 @@
# Kage

Kage means cake in Danish
I really like cake
anyway, this tweak has a bunch of settings for hiding and showing stuff on the LS and HS.

+ 144
- 0
Tweak.x Ver fichero

@@ -0,0 +1,144 @@
// respring function
@interface FBSystemService : NSObject
+(id)sharedInstance;
-(void)exitAndRelaunch:(bool)arg1;
@end

static void RespringDevice() {
[[%c(FBSystemService) sharedInstance] exitAndRelaunch:YES];
}

// prefs
@interface NSUserDefaults (KagePrefs)
-(id)objectForKey:(NSString *)key inDomain:(NSString *)domain;
-(void)setObject:(id)value forKey:(NSString *)key inDomain:(NSString *)domain;
@end

static NSString *nsDomainString = @"com.yaypixxo.kage";
static NSString *nsNotificationString = @"com.yaypixxo.kage/preferences.changed";

static BOOL enabled;
static BOOL hide3dDivs;
static BOOL gridSwitcher;
static BOOL hideLSBatt;
static BOOL statusBarShowTimeLS;

static void notificationCallback(CFNotificationCenterRef center, void *observer, CFStringRef name, const void *object, CFDictionaryRef userInfo) {
NSNumber *eEnabled = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"enabled" inDomain:nsDomainString];
NSNumber *eHide3dDivs = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hide3dDivs" inDomain:nsDomainString];
NSNumber *eGridSwitcher = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"gridSwitcher" inDomain:nsDomainString];
NSNumber *eHideLSBatt = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"hideLSBatt" inDomain:nsDomainString];
NSNumber *eStatusBarShowTimeLS = (NSNumber *)[[NSUserDefaults standardUserDefaults] objectForKey:@"statusBarShowTimeLS" inDomain:nsDomainString];

enabled = (eEnabled) ? [eEnabled boolValue]:NO;
hide3dDivs = (eHide3dDivs) ? [eHide3dDivs boolValue]:NO;
gridSwitcher = (eGridSwitcher) ? [eGridSwitcher boolValue]:NO;
hideLSBatt = (eHideLSBatt) ? [eHideLSBatt boolValue]:NO;
statusBarShowTimeLS = (eStatusBarShowTimeLS) ? [eStatusBarShowTimeLS boolValue]:NO;
}

// hooks and stuff
#import <UIKit/UIKit.h>

// 3D TOUCH DIVS START //
%hook SBUIActionKeylineView
- (void)didMoveToSuperview {
if (enabled && hide3dDivs) {

}
else {
%orig;
}
}
%end

%hook _UIInterfaceActionBlankSeparatorView
- (void)setConstantAxisDimension:(double)arg1 {
if (enabled && hide3dDivs) {

}
else {
%orig;
}
}
%end
// 3D TOUCH DIVS END //

// GRID SWITCHER START //
%hook SBAppSwitcherSettings
- (void)setGridSwitcherPageScale:(double)arg1 {
if (enabled && gridSwitcher) {
arg1 = 0.4;
}
%orig;
}

- (void)setGridSwitcherHorizontalInterpageSpacingPortrait:(double)arg1 {
if (enabled && gridSwitcher) {
arg1 = 25.5;
}
%orig;
}

- (void)setGridSwitcherHorizontalInterpageSpacingLandscape:(double)arg1 {
if (enabled && gridSwitcher) {
arg1 = 11.6;
}
%orig;
}

- (void)setGridSwitcherVerticalNaturalSpacingPortrait:(double)arg1 {
if (enabled && gridSwitcher) {
arg1 = 42;
}
%orig;
}

- (void)setGridSwitcherVerticalNaturalSpacingLandscape:(double)arg1 {
if (enabled && gridSwitcher) {
arg1 = 38;
}
%orig;
}

- (void)setSwitcherStyle:(long long)arg1 {
if (enabled && gridSwitcher) {
arg1 = 2;
}
%orig;
}
%end
// GRID SWITCHER END //

// NO LS BATTERY START //
%hook CSCoverSheetViewController
- (void)_transitionChargingViewToVisible:(bool)arg1 showBattery:(bool)arg2 animated:(bool)arg3 {
if (enabled && hideLSBatt) {
arg1 = 0;
}
%orig;
}
%end
// NO LS BATTERY END //

// SHOW TIME IN LS STATUSBAR START //
%hook CSCoverSheetViewController
- (bool)shouldShowLockStatusBarTime {
if (enabled && statusBarShowTimeLS) {
return 1;
}
else {
return %orig;
}
}
%end
// SHOW TIME IN LS STATUSBAR END //

%ctor {
// prefs changed listener
notificationCallback(NULL, NULL, NULL, NULL, NULL);
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, notificationCallback, (CFStringRef)nsNotificationString, NULL, CFNotificationSuspensionBehaviorCoalesce);

// respring listener
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)RespringDevice, CFSTR("com.yaypixxo.kage/respring"), NULL, CFNotificationSuspensionBehaviorDeliverImmediately);
}

+ 11
- 0
control Ver fichero

@@ -0,0 +1,11 @@
Package: com.yaypixxo.kage
Name: Kage
Depends: mobilesubstrate, preferenceloader
Version: 1.0.0
Architecture: iphoneos-arm
Description: show/hide/change ls and hs stuff!
Depiction: https://yaypixxo.com/depictions?p=com.yaypixxo.kage
SileoDepiction: https://yaypixxo.com/sileo/com.yaypixxo.kage
Maintainer: YaYPIXXO <viggo@lekdorf.com>
Author: YaYPIXXO <viggo@lekdorf.com>
Section: Tweaks

+ 5
- 0
kageprefs/KgeRootListController.h Ver fichero

@@ -0,0 +1,5 @@
#import <Preferences/PSListController.h>

@interface KgeRootListController : PSListController

@end

+ 22
- 0
kageprefs/KgeRootListController.m Ver fichero

@@ -0,0 +1,22 @@
#include "KgeRootListController.h"

@implementation KgeRootListController

- (NSArray *)specifiers {
if (!_specifiers) {
_specifiers = [self loadSpecifiersFromPlistName:@"Root" target:self];
}

return _specifiers;
}

-(void)voidView {
[super loadView];
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Respring" style:UIBarButtonItemStylePlain target:self action:@selector(saveTapped)];
}

-(void)saveTapped {
CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), CFSTR("com.yaypixxo.kage/respring"), NULL, NULL, YES);
}

@end

+ 18
- 0
kageprefs/Makefile Ver fichero

@@ -0,0 +1,18 @@
ARCHS = arm64 arm64e
TARGET = iphone:clang:11.2:11.2

include $(THEOS)/makefiles/common.mk

BUNDLE_NAME = kageprefs

kageprefs_FILES = KgeRootListController.m
kageprefs_INSTALL_PATH = /Library/PreferenceBundles
kageprefs_FRAMEWORKS = UIKit
kageprefs_PRIVATE_FRAMEWORKS = Preferences
kageprefs_CFLAGS = -fobjc-arc

include $(THEOS_MAKE_PATH)/bundle.mk

internal-stage::
$(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences$(ECHO_END)
$(ECHO_NOTHING)cp entry.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/kageprefs.plist$(ECHO_END)

+ 24
- 0
kageprefs/Resources/Info.plist Ver fichero

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>kageprefs</string>
<key>CFBundleIdentifier</key>
<string>com.yaypixxo.kageprefs</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>NSPrincipalClass</key>
<string>KgeRootListController</string>
</dict>
</plist>

+ 87
- 0
kageprefs/Resources/Root.plist Ver fichero

@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>label</key>
<string>Kage - by YaYPIXXO</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.yaypixxo.kage</string>
<key>key</key>
<string>enabled</string>
<key>label</key>
<string>Enable Tweak</string>
<key>PostNotification</key>
<string>com.yaypixxo.kage/preferences.changed</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.yaypixxo.kage</string>
<key>key</key>
<string>hide3dDivs</string>
<key>label</key>
<string>Hide 3D Touch Dividers</string>
<key>PostNotification</key>
<string>com.yaypixxo.kage/preferences.changed</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.yaypixxo.kage</string>
<key>key</key>
<string>gridSwitcher</string>
<key>label</key>
<string>Enable Grid Switcher</string>
<key>PostNotification</key>
<string>com.yaypixxo.kage/preferences.changed</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.yaypixxo.kage</string>
<key>key</key>
<string>hideLSBatt</string>
<key>label</key>
<string>Hide LS Battery</string>
<key>PostNotification</key>
<string>com.yaypixxo.kage/preferences.changed</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.yaypixxo.kage</string>
<key>key</key>
<string>statusBarShowTimeLS</string>
<key>label</key>
<string>Time in LS Status Bar</string>
<key>PostNotification</key>
<string>com.yaypixxo.kage/preferences.changed</string>
</dict>
</array>
<key>title</key>
<string>Kage</string>
</dict>
</plist>

+ 21
- 0
kageprefs/entry.plist Ver fichero

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>entry</key>
<dict>
<key>bundle</key>
<string>kageprefs</string>
<key>cell</key>
<string>PSLinkCell</string>
<key>detail</key>
<string>KgeRootListController</string>
<key>icon</key>
<string>icon.png</string>
<key>isController</key>
<true/>
<key>label</key>
<string>Kage</string>
</dict>
</dict>
</plist>

BIN
packages/com.yaypixxo.kage_1.0.0-1+debug_iphoneos-arm.deb Ver fichero


Cargando…
Cancelar
Guardar