]> git.saurik.com Git - cydget.git/commitdiff
I forgot to commit the weekend's testing release.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 19 Nov 2009 21:52:33 +0000 (21:52 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 19 Nov 2009 21:52:33 +0000 (21:52 +0000)
Icon-Small.png
PhotoExample.cydget/Info.plist
Tweak.mm
Welcome.plist
control

index 2c69f11bafcb02a59feb86e7e3cf314863d806f2..5813bb3bb34003b70445b488dab8c40f7f2c66b2 100644 (file)
Binary files a/Icon-Small.png and b/Icon-Small.png differ
index 700b5523ba9601f3c82c4cdebf04adbac9b1f0dd..e6ff261917bca8d3b6d8b404b3b294ca34dbfc2f 100644 (file)
@@ -1,7 +1,7 @@
-Tagline = "a lame example Cydget that renders Camera photos";
-Plugin = "WebCycriptLockScreen";
+CYTagline = "a lame example Cydget that renders Camera photos";
+CYPlugin = "WebCycriptLockScreen";
 
-Configuration = {
+CYConfiguration = {
     Homepage = "file:///System/Library/LockCydgets/PhotoExample.cydget/index.html";
     CycriptURLs = "^file:///System/Library/LockCydgets/PhotoExample\\.cydget/index\\.html$";
     Scrollable = "NO";
index c85d3fb06664ec0936a4f0321c11e5ef0b5adcf0..d0f12d9c4dbd7cec23d52bba2c1bf256c6512293 100644 (file)
--- a/Tweak.mm
+++ b/Tweak.mm
@@ -42,6 +42,7 @@
 #include <UIKit/UIKit.h>
 
 #import <SpringBoard/SBAwayController.h>
+#import <SpringBoard/SBAwayView.h>
 #import <SpringBoard/SBAwayWindow.h>
 #import <SpringBoard/SpringBoard.h>
 
@@ -73,7 +74,8 @@ static unsigned online_;
 @implementation CydgetController
 
 + (NSDictionary *) currentConfiguration {
-    return [[cydgets_ objectAtIndex:active_] objectForKey:@"Configuration"];
+    NSDictionary *cydget([cydgets_ objectAtIndex:active_]);
+    return [cydget objectForKey:@"CYConfiguration"] ?: [cydget objectForKey:@"Configuration"];
 }
 
 @end
@@ -86,14 +88,14 @@ static unsigned online_;
 @implementation NSDictionary (Cydgets)
 
 - (void) enableCydget:(SBAwayController *)away {
-    if (NSString *plugin = [self objectForKey:@"Plugin"]) {
+    if (NSString *plugin = [self objectForKey:@"CYPlugin"] ?: [self objectForKey:@"Plugin"]) {
         [away enableLockScreenBundleWithName:plugin];
         ++online_;
     }
 }
 
 - (void) disableCydget:(SBAwayController *)away {
-    if (NSString *plugin = [self objectForKey:@"Plugin"]) {
+    if (NSString *plugin = [self objectForKey:@"CYPlugin"] ?: [self objectForKey:@"Plugin"]) {
         [away disableLockScreenBundleWithName:plugin];
         --online_;
     }
@@ -198,3 +200,18 @@ MSInstanceMessageHook1(void, SBAwayController, _finishedUnlockAttemptWithStatus,
         Deactivate_(self);
     MSOldCall(status);
 }
+
+MSInstanceMessageHook0(void, SBAwayView, updateInterface) {
+    MSOldCall();
+
+    NSDictionary *cydget([cydgets_ objectAtIndex:active_]);
+
+    NSString *background([cydget objectForKey:@"CYBackground"]);
+    if ([background isEqualToString:@"Wallpaper"]) {
+        MSIvarHook(UIView *, _backgroundView);
+        [_backgroundView setAlpha:1.0f];
+    }
+
+    if ([[cydget objectForKey:@"CYShowDateTime"] boolValue])
+        [self addDateView];
+}
index 96020d2940e3e2ccb65de521fe812c60b37a0bc3..f0fbfd0215d883f915fe29c8b791ca32d9f1d352 100644 (file)
@@ -1,7 +1,7 @@
-Tagline = "a warm welcome to the new cydget experience";
-Plugin = "WebCycriptLockScreen";
+CYTagline = "a warm welcome to the new cydget experience";
+CYPlugin = "WebCycriptLockScreen";
 
-Configuration = {
+CYConfiguration = {
     Homepage = "file:///System/Library/LockCydgets/Welcome.cydget/Welcome.html";
     CycriptURLs = "^file:///System/Library/LockCydgets/Welcome\\.cydget/Welcome\\.html$";
     Scrollable = "NO";
diff --git a/control b/control
index a0b2e39a14ffdb37e4d449f4db7e6b754ba893b0..b2ccff2b345303160a7318b56a40711635494e63 100644 (file)
--- a/control
+++ b/control
@@ -3,7 +3,7 @@ Priority: optional
 Section: Development
 Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
 Architecture: iphoneos-arm
-Version: 0.9.3086-1
+Version: 0.9.3090-1
 Description: framework for managing lock screen plugins
 Name: Cydget
 Depends: mobilesubstrate (>= 0.9.2587-1), firmware (>= 2.2), preferenceloader, apr-lib, pcre