From d86d43273d43b483202f3aa7345a5eb620b9aa1c Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 19 Nov 2009 21:52:33 +0000 Subject: [PATCH] I forgot to commit the weekend's testing release. --- Icon-Small.png | Bin 2515 -> 2115 bytes PhotoExample.cydget/Info.plist | 6 +++--- Tweak.mm | 23 ++++++++++++++++++++--- Welcome.plist | 6 +++--- control | 2 +- 5 files changed, 27 insertions(+), 10 deletions(-) diff --git a/Icon-Small.png b/Icon-Small.png index 2c69f11bafcb02a59feb86e7e3cf314863d806f2..5813bb3bb34003b70445b488dab8c40f7f2c66b2 100644 GIT binary patch literal 2115 zcmV-J2)y@+P)Ls!x?FRh5;Rs&%NKRi&n}8iWgp zi*alRgTcf*#vaeU+_mSwcWjRn2UY4X9nW}X?m7QC-}3)lU;p1wUL3^_DZWP$NsPf~f`}%)||5f|OrAz4SJPOzKXu0ea^oD{xPOp9v&;Q(ZU6`f~+jh=#7vgZE$I1Y(|pA!L>@bGc*WIuyFddGe~EW=y~N;gmu;L zk`?lVV5k%0WBAiRKNZVD(W6u>0$GxfFBEWh^d2V1MsfUWJveggB&HYKE3D{cL2d9y zvjwh;#CihHW+!ptXb0YU>)W&;h83tFz;mA8q33a!o_>ILfBzeTL`K_zV=!GAc^a`r z^Hz*7+NsmU#Rc3P`Ui@|61uxj9%Myz7d$v`t7xfIL}GOroLj(=!-uFy8Ft>Qpa9`m zD&g9n2mIm(JA06{RdBq9u)+Iq6bP2(L<$X!yXogV?%uhHcw>wUFl8)c^C~afDIk|x zgG_{qRmEsa6}2}10jBPcV}9-lS`T+ajJBapF(AoQnB$3H7K-@{5>Mxl%`76`+=B6y zWsHrE_(lEEp<=v+q6v|+2{RG>{r!0KXd36worj`oeuu2EM?08)I7OX_*ngx8IaGtE z5p$eB7KqRwDIo}wg7sw{GExXdYp}Yq66~81s4|Kq6Vozj@Nq0WUB~TJ9ggN-#a5NcF6bVn8fMGOteUg1~al~lSIU@dsS#G~mrYYBTH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Z>;2*VKP97&Sk`#!BRt;85pF7Kx<1aR%O*LpYJcw;y| zK0dT_=gxa?{fpaf_B?N-R% zllvUkbJ=B= zeR$KRO_4DMC4$zPr=EI>ty{OUrr9J-Qy%}?kwRTY{_3MKN5Bf=x1ns3I>-)hu5rVQT zy&XGuMrT?rnK*HRxYKb%m8h-T%UgrfYqh|WsDhj&NY=%4WQm?wJJdn z1dT>R4=$;$EXx=$&bcKKSt!eLac*vIK}5Ry_wP?1e)wT~;o|>q9T<3J^|L(Z29M=! duc&Wt{|AO}&1E6eZs`C3002ovPDHLkV1kTG=%)Yx 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 -- 2.45.2