forked from Burrit0z/Dockify_Source
Dockify
Dockify source
This commit is contained in:
BIN
dockifyprefs/.DS_Store
vendored
Normal file
BIN
dockifyprefs/.DS_Store
vendored
Normal file
Binary file not shown.
16
dockifyprefs/Makefile
Normal file
16
dockifyprefs/Makefile
Normal file
@ -0,0 +1,16 @@
|
||||
include /Users/carsonzielinski/Documents/theos/makefiles/common.mk
|
||||
|
||||
BUNDLE_NAME = dockifyprefs
|
||||
|
||||
dockifyprefs_FILES = burRootListController.m
|
||||
dockifyprefs_INSTALL_PATH = /Library/PreferenceBundles
|
||||
dockifyprefs_FRAMEWORKS = UIKit
|
||||
dockifyprefs_PRIVATE_FRAMEWORKS = Preferences
|
||||
dockifyprefs_CFLAGS = -fobjc-arc
|
||||
dockifyprefs_EXTRA_FRAMEWORKS +=CepheiPrefs Cephei
|
||||
|
||||
include /Users/carsonzielinski/Documents/theos/makefiles/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/dockifyprefs.plist$(ECHO_END)
|
24
dockifyprefs/Resources/Info.plist
Normal file
24
dockifyprefs/Resources/Info.plist
Normal file
@ -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>dockifyprefs</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>com.burritoz.dockifyprefs</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>burRootListController</string>
|
||||
</dict>
|
||||
</plist>
|
105
dockifyprefs/Resources/Root.plist
Normal file
105
dockifyprefs/Resources/Root.plist
Normal file
@ -0,0 +1,105 @@
|
||||
<?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>PSStaticTextCell</string>
|
||||
<key>label</key>
|
||||
<string>Dockify by Burrit0z</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>label</key>
|
||||
<string>Transparent Toggle (overrides custom opcaity):</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSSwitchCell</string>
|
||||
<key>default</key>
|
||||
<true/>
|
||||
<key>defaults</key>
|
||||
<string>com.burritoz.dockifyprefs</string>
|
||||
<key>key</key>
|
||||
<string>transparent</string>
|
||||
<key>label</key>
|
||||
<string>Transparent Dock</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>label</key>
|
||||
<string>Hide Dock (overrides custom height):</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSSwitchCell</string>
|
||||
<key>default</key>
|
||||
<false/>
|
||||
<key>defaults</key>
|
||||
<string>com.burritoz.dockifyprefs</string>
|
||||
<key>key</key>
|
||||
<string>hidden</string>
|
||||
<key>label</key>
|
||||
<string>Hide (kinda)</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>label</key>
|
||||
<string>Dock Height Multiplier (1 default):</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSEditTextCell</string>
|
||||
<key>default</key>
|
||||
<string>1</string>
|
||||
<key>defaults</key>
|
||||
<string>com.burritoz.dockifyprefs</string>
|
||||
<key>key</key>
|
||||
<string>setHeight</string>
|
||||
<key>placeholder</key>
|
||||
<string>Enter value greater than 0</string>
|
||||
<key>isDecimalPad</key>
|
||||
<true/>
|
||||
<key>keyboard</key>
|
||||
<string>numbers</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>label</key>
|
||||
<string>Custom Opacity Multiplier (0-1):</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSEditTextCell</string>
|
||||
<key>default</key>
|
||||
<string>1</string>
|
||||
<key>defaults</key>
|
||||
<string>com.burritoz.dockifyprefs</string>
|
||||
<key>key</key>
|
||||
<string>customOpacity</string>
|
||||
<key>placeholder</key>
|
||||
<string>Will not be set if transparent is on</string>
|
||||
<key>isDecimalPad</key>
|
||||
<true/>
|
||||
<key>keyboard</key>
|
||||
<string>numbers</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSButtonCell</string>
|
||||
<key>label</key>
|
||||
<string>Respring</string>
|
||||
<key>action</key>
|
||||
<string>respring:</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>title</key>
|
||||
<string>Dockify</string>
|
||||
</dict>
|
||||
</plist>
|
BIN
dockifyprefs/Resources/icon.png
Normal file
BIN
dockifyprefs/Resources/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 418 B |
12
dockifyprefs/burRootListController.h
Normal file
12
dockifyprefs/burRootListController.h
Normal file
@ -0,0 +1,12 @@
|
||||
#import <Preferences/PSListController.h>
|
||||
#import <Preferences/PSListController.h>
|
||||
#import <Preferences/PSTableCell.h>
|
||||
#import <Preferences/PSSpecifier.h>
|
||||
#import <CepheiPrefs/HBRootListController.h>
|
||||
#import <CepheiPrefs/HBAppearanceSettings.h>
|
||||
#import <CepheiPrefs/HBPackageNameHeaderCell.h>
|
||||
#import <Cephei/HBRespringController.h>
|
||||
#import <Cephei/HBPreferences.h>
|
||||
|
||||
@interface burRootListController : PSListController
|
||||
@end
|
21
dockifyprefs/burRootListController.m
Normal file
21
dockifyprefs/burRootListController.m
Normal file
@ -0,0 +1,21 @@
|
||||
#include "burRootListController.h"
|
||||
|
||||
@implementation burRootListController
|
||||
|
||||
- (NSArray *)specifiers {
|
||||
if (!_specifiers) {
|
||||
_specifiers = [self loadSpecifiersFromPlistName:@"Root" target:self];
|
||||
}
|
||||
|
||||
return _specifiers;
|
||||
}
|
||||
|
||||
-(void)respring:(PSSpecifier *)specifier {
|
||||
PSTableCell *cell = [self cachedCellForSpecifier:specifier];
|
||||
cell.cellEnabled = NO;
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
[HBRespringController respring];
|
||||
});
|
||||
}
|
||||
|
||||
@end
|
21
dockifyprefs/entry.plist
Normal file
21
dockifyprefs/entry.plist
Normal file
@ -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>dockifyprefs</string>
|
||||
<key>cell</key>
|
||||
<string>PSLinkCell</string>
|
||||
<key>detail</key>
|
||||
<string>burRootListController</string>
|
||||
<key>icon</key>
|
||||
<string>icon.png</string>
|
||||
<key>isController</key>
|
||||
<true/>
|
||||
<key>label</key>
|
||||
<string>Dockify</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
Reference in New Issue
Block a user