]> git.saurik.com Git - winterboard.git/commitdiff
Add backwards compatibility mode for Icons/SMS.png, remove English_ in not SummerBoar...
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 1 Apr 2010 03:02:05 +0000 (03:02 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 1 Apr 2010 03:02:05 +0000 (03:02 +0000)
Dim Wallpaper.theme/Info.plist [new file with mode: 0644]
Dim Wallpaper.theme/Widget.html [deleted file]
Library.mm
control
makefile

diff --git a/Dim Wallpaper.theme/Info.plist b/Dim Wallpaper.theme/Info.plist
new file mode 100644 (file)
index 0000000..2518892
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0"><dict>
+
+<key>WallpaperAlpha</key>
+<real>0.7</real>
+
+</dict></plist>
diff --git a/Dim Wallpaper.theme/Widget.html b/Dim Wallpaper.theme/Widget.html
deleted file mode 100644 (file)
index 6acba2b..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-16"?>
-<html><head>
-    <!--meta name="viewport" content="width=320, minimum-scale=1.0, maximum-scale=1.0"/-->
-    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
-
-    <style>
-        body {
-            margin: 0;
-            padding: 0;
-        }
-
-        div {
-            background-color: black;
-            opacity: 0.3;
-            height: 480px;
-        }
-    </style>
-</head><body>
-    <div></div>
-</body></html>
index aa24ab84a6a4624d536a34cd47be179164ea2540..1d6ef72022ac5df433699967bd802778eb45d280 100644 (file)
@@ -274,9 +274,13 @@ static NSString *$pathForIcon$(SBApplication *self) {
 
     if (![didentifier isEqualToString:identifier])
         testForIcon(didentifier);
+
     testForIcon(identifier);
     testForIcon(dname);
 
+    if ([identifier isEqualToString:@"com.apple.MobileSMS"])
+        testForIcon(@"SMS");
+
     if (didentifier != nil) {
         testForIcon([English_ objectForKey:didentifier]);
 
@@ -288,6 +292,7 @@ static NSString *$pathForIcon$(SBApplication *self) {
 
     if (NSString *path = $getTheme$(names))
         return path;
+
     return nil;
 }
 
@@ -1619,7 +1624,9 @@ extern "C" void WBInitialize() {
         WBRename(SBStatusBarOperatorNameView, setOperatorName:fullSize:, setOperatorName$fullSize$);
         WBRename(SBStatusBarTimeView, drawRect:, drawRect$);
 
-        English_ = [[NSDictionary alloc] initWithContentsOfFile:@"/System/Library/CoreServices/SpringBoard.app/English.lproj/LocalizedApplicationNames.strings"];
+        if (SummerBoard_)
+            English_ = [[NSDictionary alloc] initWithContentsOfFile:@"/System/Library/CoreServices/SpringBoard.app/English.lproj/LocalizedApplicationNames.strings"];
+
         Cache_ = [[NSMutableDictionary alloc] initWithCapacity:64];
     }
 
diff --git a/control b/control
index c5bff7e8cd61c0a34408860fa32ae240ffaa8ba5..09e4f043ea4dd8ed2b147c39133cfb55a2595700 100644 (file)
--- a/control
+++ b/control
@@ -3,10 +3,10 @@ Priority: optional
 Section: System
 Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
 Architecture: iphoneos-arm
-Version: 0.9.3151-2
+Version: 0.9.3152-1
 Description: more powerful, open-source SummerBoard
 Name: WinterBoard
-Depends: mobilesubstrate (>= 0.9.2958-1), killall, preferenceloader, libhide (>= 2.0.4), findutils, net.howett.pincrush (>= 0.0.1-23)
+Depends: mobilesubstrate (>= 0.9.2958-1), killall, preferenceloader, libhide (>= 2.0.4), findutils, net.howett.pincrush (>= 0.0.1-23) | pincrush
 Provides: theme-manager
 Conflicts: com.modmyifone.winterboardicon, winterboardsettings, themesettings
 Replaces: com.modmyifone.winterboardicon, winterboardsettings, themesettings
index 75594fd265fe35b4a55291521ecf4592d0a067e0..9e4b07b08f89aee22d9c98703da6afc572d2bb05 100644 (file)
--- a/makefile
+++ b/makefile
@@ -4,6 +4,8 @@ else
 target := $(PKG_TARG)-
 endif
 
+substrate := -I../mobilesubstrate -L../mobilesubstrate -lsubstrate
+
 all: WinterBoard WinterBoard.dylib UIImages WinterBoardSettings Optimize
 
 clean:
@@ -14,11 +16,11 @@ WinterBoardSettings: Settings.mm makefile
        ldid -S $@
 
 WinterBoard.dylib: Library.mm makefile ../mobilesubstrate/substrate.h
-       $(target)g++ -dynamiclib -g0 -O2 -Wall -o $@ $(filter %.mm,$^) -framework CoreFoundation -framework Foundation -lobjc -init _WBInitialize -I/apl/inc/iPhoneOS-2.0 -framework CoreGraphics -framework GraphicsServices -framework Celestial -I../mobilesubstrate -L../mobilesubstrate -lsubstrate -framework UIKit -F$(PKG_ROOT)/System/Library/PrivateFrameworks
+       $(target)g++ -dynamiclib -g0 -O2 -Wall -o $@ $(filter %.mm,$^) -framework CoreFoundation -framework Foundation -lobjc -init _WBInitialize -I/apl/inc/iPhoneOS-2.0 -framework CoreGraphics -framework GraphicsServices -framework Celestial $(substrate) -framework UIKit -F$(PKG_ROOT)/System/Library/PrivateFrameworks
        ldid -S $@
 
 UIImages: UIImages.mm makefile
-       $(target)g++ -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -framework UIKit -framework Foundation -framework CoreFoundation -lobjc -I/apl/inc/iPhoneOS-2.0
+       $(target)g++ -g0 -O2 -Wall -Werror -o $@ $(filter %.mm,$^) -framework UIKit -framework Foundation -framework CoreFoundation -lobjc -I/apl/inc/iPhoneOS-2.0 $(substrate)
        ldid -S $@
 
 WinterBoard: Application.mm makefile