Quellcode durchsuchen

Add files via upload

beta-future-time
Gil Shahar vor 6 Jahren
Ursprung
Commit
614a82eb96
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
4 geänderte Dateien mit 107 neuen und 2 gelöschten Zeilen
  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 Datei anzeigen

@@ -1,8 +1,9 @@
ARCHS = armv7 arm64
export ARCHS = armv7 arm64
export TARGET = iphone:clang:9.1:9.1
include $(THEOS)/makefiles/common.mk

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

+ 82
- 0
exacttimeprefs/Resources/Root.plist Datei anzeigen

@@ -0,0 +1,82 @@
<?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 Datei anzeigen

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

@interface RootListController : PSListController

@end

+ 17
- 0
exacttimeprefs/RootListController.m Datei anzeigen

@@ -0,0 +1,17 @@
#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

Laden…
Abbrechen
Speichern