Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: [Tweak] iWidgets
is a discussion within theiPhone 4|4S New Skins / Themes Launches
forums, a part of theNew Skins / Themes Launches
section;This tweak is based on the awesome PerPageHTML, with some changes to address my personal preferences. Credits to WyndWarrior for the great work and code snippet which helped me get
...-
05-17-2012, 11:49 AM #1
[Tweak] iWidgets
This tweak is based on the awesome PerPageHTML, with some changes to address my personal preferences. Credits to WyndWarrior for the great work and code snippet which helped me get started (http://modmyi.com/forums/iphone-4-ne...rpagehtml.html). The concept is mostly similar to PPH, for differences in usage and creation of widgets, see sections below.
I only own an iPhone 4 ( iOS 4.2.1 ), help with testing on various devices on iOS 4 or 5 would be much appreciated. I will not be supporting iPad actively as I do not own one. Feel free to donate your rusting first-gen iPads
Installation
Search and install iWidgets from Cydia, tweak is available in ModMyi repo, which should be in the sources by default. To find more widgets, search "iWidget" in Cydia.
Here are some sample widgets. Please do not ask me to update them as I do not own or maintain any widgets. I've merely converted them into iWidgets as samples for widget developers to learn from. All credits go to their original creators.
HTC - https://dl.dropbox.com/u/3992850/iWidgets/HTC.zip
ASUS - https://dl.dropbox.com/u/3992850/iWidgets/ASUS.zip
Usage
Place widgets in /var/mobile/Library/iWidgets
Preference file is /var/mobile/Library/Preferences/iWidgets.plist
Long press on blank areas on SpringBoard to bring up menu for adding widgets.
Long press on any icons or widgets to trigger edit mode, then drag and drop to arrange widgets.
Screenshots
![[Tweak] iWidgets-1.png](http://modmyi.com/attachments/forums/iphone-4-4s-new-skins-themes-launches/585922d1337502667t-tweak-iwidgets-1.png)
![[Tweak] iWidgets-2.png](http://modmyi.com/attachments/forums/iphone-4-4s-new-skins-themes-launches/587677d1338370510t-tweak-iwidgets-2.png)
![[Tweak] iWidgets-3.png](http://modmyi.com/attachments/forums/iphone-4-4s-new-skins-themes-launches/585351d1337273369t-tweak-iwidgets-3.png)
Widget Developers
Widget's css top & left properties should be zeroed.
Widgets can have simple user interaction such as button presses.
A new file which defines the widget's dimensions, Widget.plist, must be created in the same directory as Widget.html.
An optional options file, Options.plist can also be provided to create custom options.
Each option is represented by a dictionary, where the key name refers to the name of the variable to be defined in JavaScript.
Widget.plist:
Options.plist (Optional, corresponds to 2nd screenshot with long list of options removed, find full file in HTC/ASUS widgets below ):Code:<?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>size</key> <dict> <key>width</key> <integer>300</integer> <key>height</key> <integer>150</integer> </dict> </dict> </plist>
New 'edit' option type in v 1.0.1:Code:<?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"> <array> <dict> <key>name</key> <string>showForecast</string> <key>type</key> <string>switch</string> <key>label</key> <string>Show forecast</string> <key>default</key> <true/> </dict> <dict> <key>name</key> <string>showWeatherAni</string> <key>type</key> <string>switch</string> <key>label</key> <string>Show Animation</string> <key>default</key> <true/> </dict> <dict> <key>name</key> <string>isCelsius</string> <key>type</key> <string>select</string> <key>label</key> <string>Temperature Unit</string> <key>default</key> <string>Celsius</string> <key>options</key> <dict> <key>Celsius</key> <true/> <key>Fahrenheit</key> <false/> </dict> </dict> <dict> <key>name</key> <string>locale</string> <key>type</key> <string>select</string> <key>label</key> <string>Locale</string> <key>indexed</key> <true/> <key>default</key> <string>Singapore - Singapore</string> <key>options</key> <dict> <key>Afghanistan - Ghurian</key> <string>AFXX0001</string> <key>Afghanistan - Herat</key> <string>AFXX0002</string> <key>Afghanistan - Kabul</key> <string>AFXX0003</string> <key>Afghanistan - Qandahar</key> <string>AFXX0004</string> <key>Afghanistan - Bost/Laskar</key> <string>AFXX0005</string> </dict> </dict> </array> </plist>
Code:<?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"> <array> <dict> <key>name</key> <string>scrollingText</string> <key>type</key> <string>edit</string> <key>label</key> <string>Scrolling Text</string> <key>default</key> <string>insert favorite quote</string> </dict> </array> </plist>Last edited by eldwin; 03-08-2013 at 09:22 PM.
-
The Following 122 Users Say Thank You to eldwin For This Useful Post:
.:JimmyL:. (05-18-2012), 8lias (10-05-2012), alon799 (10-18-2012), azaleea (08-28-2012), bennlloyd (08-28-2012), BOGMAT (05-18-2012), caniac61906 (03-08-2013), catstide (02-11-2013), chevymusclecar (08-28-2012), Chuck1969 (08-28-2012), Cloud2Ground (10-19-2012), CrazyChester (07-10-2012), cukhiem (06-14-2012), cuongbk_135 (09-10-2012), dakkota (08-28-2012), DannyZ83 (08-03-2012), dark.knight (08-24-2012), Darrenrooster (05-18-2012), Destan (09-28-2012), Dirtstep (05-21-2012), Dkaramazov (05-17-2012), doctorvik (08-24-2012), doomsday116 (07-19-2012), dwizurd (09-02-2012), ElderRoco (07-30-2012), elilab (06-16-2012), EventHorizn (02-08-2013), faisalz (07-09-2012), fallenzx (06-06-2012), FIF7Y (05-21-2012), flybritn (01-20-2013), ftb32 (07-09-2012), G0NGKiNG (06-03-2012), gadezu (05-18-2012), grd069 (10-02-2012), grzegorz10 (05-24-2012), GUNNY29 (05-18-2012), hawkfrost (06-14-2012), hemptation (05-17-2012), Hip5 (07-14-2012), Hosko817 (05-23-2012), iAdamir (03-08-2013), Ian Nicoll (12-18-2012), indyzzzz (05-18-2012), iRevival (04-06-2013), iryankgt (08-31-2012), iskariotA (07-05-2012), It's Mi (05-20-2012), iZangetsu (07-15-2012), jaco01 (02-18-2013), James424 (02-15-2013), Jazzman UK (01-19-2013), jima6636 (08-28-2012), jjk454ss (05-17-2012), joshlogic (03-27-2013), kifkif (05-06-2013), kimvy (02-15-2013), kingtyce (09-23-2012), King_O_Hill (05-21-2012), Kr0NiK (09-04-2012), KraXik (05-26-2012), kristatos (10-24-2012), kruzzit (08-26-2012), larke (08-29-2012), Laxu (06-10-2012), Lkkwus (05-17-2012), lostinthemes (01-10-2013), Lucys (08-26-2012), LurkerStatus (04-11-2013), Maarten16 (08-28-2012), markotak (06-14-2012), Max_Pa1n (05-20-2012), metaserph (05-18-2012), mikelikesanime (07-11-2012), mmcneil (10-03-2012), mrsmickey (05-21-2012), Muddl (10-31-2012), nateD (05-20-2012), neildradford (03-24-2013), nik1975 (05-29-2012), NJ Devils Fan 4 Ever (03-30-2013), nnfdcane (09-11-2012), nonor (08-27-2012), Nsomnia34 (07-23-2012), Nvr2nd2ne1 (06-04-2012), P0R7ER (05-22-2012), phrekaru (05-18-2012), Pocyahtstu Santana (06-04-2012), Richard (09-27-2012), rion_j (05-20-2012), RKO1195 (11-26-2012), RobbyJ (11-24-2012), Roberto1000 (01-19-2013), Schnedi (08-23-2012), SHARON1O (11-24-2012), sickchris714 (05-17-2012), Simon (02-17-2013), Sk37cH (10-07-2012), SkyGuy5 (08-30-2012), Slate004 (08-28-2012), stratnik (05-18-2012), sunny102 (08-18-2012), Svink (08-31-2012), TaJr12 (07-12-2012), The.Drifter (09-06-2012), ThelostMC (10-07-2012), Them3this (08-25-2012), thesilentone (09-28-2012), The_Durben (05-18-2012), thisusedtobemyplaground (05-18-2012), Toproaster (08-26-2012), tsatryan (07-11-2012), UNLOCKZ (07-29-2012), wildenweb (02-27-2013), Wildfowler (08-30-2012), winfis (08-26-2012), xtrememan (05-23-2012), Yugo (05-18-2012), ZFrost (08-25-2012), Zooropalg (05-19-2012), zplit (05-21-2012), Z_rock (08-29-2012)
-
05-17-2012, 03:49 PM #2Delirious
- Join Date
- Feb 2011
- Location
- New Zealand
- Posts
- 620
- Thanks
- 125
- Thanked 1,250 Times in 186 Posts
-
The Following 2 Users Say Thank You to kooris For This Useful Post:
.:JimmyL:. (05-18-2012), eldwin (05-21-2012)
-
05-17-2012, 05:11 PM #3The One and the Only (retired secret moderator)
- Join Date
- Aug 2010
- Location
- Planet Earth
- Posts
- 2,122
- Thanks
- 53
- Thanked 94 Times in 88 Posts
You should post it to cydia. Make sure you give credits to wyndwarrior though.

secret moderator... Please hit that THANKS button over there if I helped you in any single way
-
The Following 3 Users Say Thank You to iPod For This Useful Post:
.:JimmyL:. (05-18-2012), eldwin (05-21-2012), Hip5 (07-15-2012)
-
05-17-2012, 05:20 PM #4
I just downloaded on 4s 5.0.1 how do I get the menu up to add a widget to home screen? Nice work man
Ignore my stupid question sorry completely missed it lol seems to be working fine on my device stated above. Thanks for sharing
Just found a small bug when widget is in wiggle mode if you press it device goes into safe mode
-
The Following 2 Users Say Thank You to GUNNY29 For This Useful Post:
.:JimmyL:. (05-18-2012), eldwin (05-21-2012)
-
05-17-2012, 06:21 PM #5
@kooris: Thanks!
@ipodtouchman77: Thanks for the suggestion. I apologize for being unclear but this is really a beta version since I haven't gotten it tested on many devices besides my own. Release never occurred to me until a couple of friends expressed interest. I may have been sloppy with the package information but I'll be sure to credit wyndwarrior when I submit an official package.
@GUNNY29: Thanks! I can't seem to reproduce the bug on my own device so I may have to wait till my dad returns with his phone assuming the bug is iOS5-related. Did you mean long press or a normal tap? Are you unable to arrange the widgets since you can't press them?
-
The Following 2 Users Say Thank You to eldwin For This Useful Post:
.:JimmyL:. (05-18-2012), GUNNY29 (05-18-2012)
-
05-17-2012, 06:57 PM #6
This is what innovation all about
gna try it later 
Thanks for sharing with us
JimJ1HD | iRaident | iLUCiFiED | LUST | YUKI | SiGMA | SE7EN | SE7EN iPAD | SENSES | SENSES iPAD | Destiny | Destiny iPad | [x]iro | [x]iro iPad--->DropBox---
***My Paypal & Email is [email protected]***
***Follow me @JimmyLe8888*** Instagram _JimmyL_***
***www.JimmyL-Designs.com*** => Under Construction =)
-
The Following 3 Users Say Thank You to .:JimmyL:. For This Useful Post:
eldwin (05-21-2012), fido08 (06-09-2013), The_Durben (05-18-2012)
-
05-17-2012, 07:59 PM #7Alliance
- Join Date
- Feb 2011
- Location
- Madison,MS
- Posts
- 2,459
- Thanks
- 26,232
- Thanked 8,978 Times in 2,128 Posts
Hmm. This seems interesting. So multiple widgets on same page. And can add whatever widgets, are in the widgets folder that you gave us the path to ? On any page, at any place.
So let me ask ou this, if you want he same widget running on 3 different screens, is it running the same mod, or does it see the mod as 3 different mods?
-
The Following 3 Users Say Thank You to hemptation For This Useful Post:
.:JimmyL:. (05-18-2012), eldwin (05-21-2012), The_Durben (05-18-2012)
-
05-17-2012, 08:05 PM #8
@GUNNY29
Thanks for trying this out! I tried replying earlier but was apparently under some sort of moderation. Could you clarify if you meant long press or a tap? Also, does this mean you're unable to move the widgets? I'm not able to reproduce this on my side so I suspect it may be related to iOS 5. Will check this out when I get hold of my dad's phone.Last edited by eldwin; 05-17-2012 at 08:10 PM.
-
-
05-18-2012, 12:56 AM #9
-
The Following 2 Users Say Thank You to GUNNY29 For This Useful Post:
.:JimmyL:. (05-18-2012), eldwin (05-21-2012)
-
05-18-2012, 04:19 AM #10The One and the Only (retired secret moderator)
- Join Date
- Aug 2010
- Location
- Planet Earth
- Posts
- 2,122
- Thanks
- 53
- Thanked 94 Times in 88 Posts
-
The Following User Says Thank You to iPod For This Useful Post:
eldwin (05-21-2012)
-
05-18-2012, 05:05 AM #11
-
The Following User Says Thank You to GUNNY29 For This Useful Post:
eldwin (05-21-2012)
-
05-18-2012, 05:05 AM #12
-
The Following User Says Thank You to eldwin For This Useful Post:
GUNNY29 (05-18-2012)
-
05-18-2012, 05:28 AM #13
-
The Following 2 Users Say Thank You to GUNNY29 For This Useful Post:
eldwin (05-21-2012), The_Durben (05-18-2012)
-
05-18-2012, 05:47 AM #14
-
-
05-18-2012, 05:54 AM #15
Glad you like it and thanks for the confirmation =)
EDIT: Nice screenshot, your phone is really beautifully themed
Last edited by eldwin; 05-18-2012 at 06:05 AM.
-
-
05-18-2012, 05:56 AM #16
-
The Following User Says Thank You to GUNNY29 For This Useful Post:
eldwin (05-21-2012)
-
05-18-2012, 06:01 AM #17
Sure, do list them, via PM if you prefer. I'm guessing it's a tweak which modifies springboard icons.
-
The Following User Says Thank You to eldwin For This Useful Post:
King_O_Hill (10-16-2012)
-
05-18-2012, 06:11 AM #18
-
The Following 4 Users Say Thank You to GUNNY29 For This Useful Post:
eldwin (05-21-2012), indyzzzz (06-06-2012), nateD (05-20-2012), The_Durben (05-18-2012)
-
05-18-2012, 07:06 AM #19
EDIT: Sorry. Fix caused other problems instead. BRB
Last edited by eldwin; 05-18-2012 at 07:10 AM.
-
The Following User Says Thank You to eldwin For This Useful Post:
GUNNY29 (05-18-2012)
-
05-18-2012, 07:56 AM #20
Nice tweak. Thanks eldwin!
Has anyone had an issue moving a widget to a new screen that has no icons on it. Basically dragging the widget to a new screen. It does not seem to work for me on an iPhone 4s 5.0.1.
Thanks again!
-
The Following User Says Thank You to Illmatic636 For This Useful Post:
eldwin (05-21-2012)
LinkBacks (?)
-
04-20-2013, 12:34 AM
-
04-15-2013, 10:39 AM
-
04-08-2013, 06:20 AM
-
&#63743;iDevice help us&#63743;: Add HTML Widgets to the Home Screen With 'iWidgets'
Refback This thread10-29-2012, 07:45 AM




LinkBack URL
About LinkBacks
Reply With Quote


![[Tweak] iWidgets-img_0070.png](http://modmyi.com/attachments/forums/iphone-4-4s-new-skins-themes-launches/585485d1337342167t-tweak-iwidgets-img_0070.png)
