Browse Source

Add files via upload

beta-future-time
Gil Shahar 6 years ago
parent
commit
614a82eb96
No account linked to committer's email address
4 changed files with 107 additions and 2 deletions
  1. +3
    -2
      exacttimeprefs/Makefile
  2. +82
    -0
      exacttimeprefs/Resources/Root.plist
  3. +5
    -0
      exacttimeprefs/RootListController.h
  4. +17
    -0
      exacttimeprefs/RootListController.m

+ 3
- 2
exacttimeprefs/Makefile View File

ARCHS = armv7 arm64
export ARCHS = armv7 arm64
export TARGET = iphone:clang:9.1:9.1
include $(THEOS)/makefiles/common.mk include $(THEOS)/makefiles/common.mk


BUNDLE_NAME = ExactTimeprefs BUNDLE_NAME = ExactTimeprefs
ExactTimeprefs_FILES = ExactTimeprefs.mm
ExactTimeprefs_FILES = RootListController.m
ExactTimeprefs_INSTALL_PATH = /Library/PreferenceBundles ExactTimeprefs_INSTALL_PATH = /Library/PreferenceBundles
ExactTimeprefs_FRAMEWORKS = UIKit ExactTimeprefs_FRAMEWORKS = UIKit
ExactTimeprefs_PRIVATE_FRAMEWORKS = Preferences ExactTimeprefs_PRIVATE_FRAMEWORKS = Preferences

+ 82
- 0
exacttimeprefs/Resources/Root.plist View File

<?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>footerText</key>
<string>Only show the exact time for notifications older than this value (0~240). Default value for stock iOS is 240 minutes (4 hours)</string>
</dict>
<dict>
<key>cell</key>
<string>PSEditTextCell</string>
<key>defaults</key>
<string>com.gilshahar7.exacttimeprefs</string>
<key>key</key>
<string>affectTime</string>
<key>default</key>
<string>10</string>
<key>isNumeric</key>
<true/>
<key>label</key>
<string>Affect after (in minutes)</string>
</dict>
<dict>
<key>cell</key>
<string>PSButtonCell</string>
<key>defaults</key> <string>com.gilshahar7.exacttimeprefs</string>
<key>label</key>
<string>Apply</string>
<key>action</key>
<string>apply</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>footerText</key>
<string>This will add "Xh ago" where there is an exact time, separated by a ' • ' Note: this will override any language</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.gilshahar7.exacttimeprefs</string>
<key>key</key>
<string>addToCurrent</string>
<key>label</key>
<string>Add estimated time to exact time</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>footerText</key>
<string>This will add minutes to all "Xh ago" Note: this will override any language</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.gilshahar7.exacttimeprefs</string>
<key>key</key>
<string>addMinutes</string>
<key>label</key>
<string>Change "2h ago" to "2h 17m ago"</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>footerText</key>
<string>Made by: gilshahar7.</string>
</dict>
</array>
<key>title</key>
<string>ExactTime</string>
</dict>
</plist>

+ 5
- 0
exacttimeprefs/RootListController.h View File

#import <Preferences/PSListController.h>

@interface RootListController : PSListController

@end

+ 17
- 0
exacttimeprefs/RootListController.m View File

#include "RootListController.h"

@implementation RootListController

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

return _specifiers;
}

-(void)apply{
[self.view endEditing:YES];
}

@end

Loading…
Cancel
Save