From: Jay Freeman (saurik) Date: Thu, 19 Nov 2009 21:52:33 +0000 (+0000) Subject: I forgot to commit the weekend's testing release. X-Git-Tag: v0.9.4000~47 X-Git-Url: https://git.saurik.com/cydget.git/commitdiff_plain/d86d43273d43b483202f3aa7345a5eb620b9aa1c I forgot to commit the weekend's testing release. --- diff --git a/Icon-Small.png b/Icon-Small.png index 2c69f11..5813bb3 100644 Binary files a/Icon-Small.png and b/Icon-Small.png differ diff --git a/PhotoExample.cydget/Info.plist b/PhotoExample.cydget/Info.plist index 700b552..e6ff261 100644 --- a/PhotoExample.cydget/Info.plist +++ b/PhotoExample.cydget/Info.plist @@ -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"; diff --git a/Tweak.mm b/Tweak.mm index c85d3fb..d0f12d9 100644 --- a/Tweak.mm +++ b/Tweak.mm @@ -42,6 +42,7 @@ #include #import +#import #import #import @@ -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]; +} diff --git a/Welcome.plist b/Welcome.plist index 96020d2..f0fbfd0 100644 --- a/Welcome.plist +++ b/Welcome.plist @@ -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 a0b2e39..b2ccff2 100644 --- a/control +++ b/control @@ -3,7 +3,7 @@ Priority: optional Section: Development Maintainer: Jay Freeman (saurik) 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