Modifying a Theme for Winterboard - LockBackground

Discussion in 'Jailbreaks and iOS Hacks' started by ZmyDust, Feb 20, 2011.

  1. ZmyDust, Feb 20, 2011
    Last edited: Feb 21, 2011

    ZmyDust macrumors regular

    ZmyDust

    Joined:
    Feb 20, 2011
    #1
    So I'm brand new to Jailbreaking iOS, just did it for the first time earlier today on my new iPhone4.. but I am computer literate and picked up the basics quickly. I've done a search but haven't been able to find this answer. Im working with winterboard, Lockinfo, and various other things to make life easier.

    I found a theme I like that is simple... just includes some changes to the lock/unlock bar and the theme included a home screen wallpaper.png image that I didn't like, and deleted in iFile. This initially did come up and apply itself to the homescreen background

    However in /var/stash/Themes it does have a LockBackground.png wallpaper that I do like and would like to keep as default on this theme. But I cannot get it to automatically change to this particular background for the lock screen when I switch from this theme to another and back again. I've read that I should have this theme on the top of the list in winterboard to keep others from overriding it, which I do.

    I just want to be able to switch easy between themes and have the lock screen background change with the theme upon doing so.. and not have to switch it manually under the native wallpaper menu in settings.

    There has to be something very simple I'm missing, what is it?
     
  2. 1976Hoosiers macrumors newbie

    Joined:
    Dec 2, 2010
    Location:
    Austin, TX
    #2
    Built Theme- Everything works except LockBackground

    I am having the same issues. I have built a theme from scratch with new battery images, slider, carrier logo, slider text, wallpaper, and lockbackground. Everything works but the lockbackground. My file structure is in Theme/LockBackground.png but I can't for the life of me figure out what is going on! Apple's settings are overriding my theme, but only for the lockscreen! Any help would be much appreciated :) I have uploaded my file structure and screenshots:confused:
     

    Attached Files:

  3. Xhita macrumors member

    Joined:
    Nov 2, 2010
    Location:
    Switzerland
  4. 1976Hoosiers macrumors newbie

    Joined:
    Dec 2, 2010
    Location:
    Austin, TX
  5. ZmyDust thread starter macrumors regular

    ZmyDust

    Joined:
    Feb 20, 2011
  6. Xhita macrumors member

    Joined:
    Nov 2, 2010
    Location:
    Switzerland
    #6
    OK, please note that I'm NOT an expert on this. Whatever advice I can give, I took it from this and other forums. If the following can not help, I would suggest you post a request for help in the "Post your Jailbroken Home Screen (Part 2)" topic, which is always in the first page of the iPhone Hacks.

    As far as I understand, Apple change the dynamic of theming with iOS 4.2.1
    You can find more info here: http://forums.macrumors.com/showthread.php?t=1092235

    There are basically two scenarios that I'm aware of:

    1-) Theme was designed to use the wallpaper defined by the Camera Roll
    You need to edit the respective HTML file within the theme.

    <img src="/var/mobile/Library/SpringBoard/LockBackground.jpg"
    and change it to:
    <img src="/Library/Themes/"THEME NAME"/LockBackground.png"
    If you don't see the above in your html file try adding <img src="LockBackground.png" into your html file.

    Then just copy the image you want to have as wallpaper, paste it into the theme folder and name it as LockBackground.jpg
    Note that you can actually name it as you like, as long as the path is correct in the HTML.

    2-) Theme was designed with and includes it's own wallpaper
    That's easier. Just go into the respective theme folder, see what is the name of the image file (for example: Wallpaper.jpg), delete / rename it, copy the image you want to have as wallpaper and rename it accordingly.

    NOTE: for either scenario, if you even want to replace the wallpaper, you will ALWAYS need to do so manually, as explained above.


    I hope this helps you both. I'm actually using two different themes for the Lock and SpringBoard, but if you are still stuck, upload or give me a link to the theme you want to use and I'll try to see if I can tweak it. This change in 4.2.1 is very annoying, I hope someone will come up with a proper solution for this... :(
     
  7. 1976Hoosiers macrumors newbie

    Joined:
    Dec 2, 2010
    Location:
    Austin, TX
    #7
    the wallpaper image renders correctly, it is just the lockbackground.png that doesn't override the springboard.app I guess I could change it in the actual springboard.app, but I want the theme to do it and then relinquish control back to springboard it if is disabled. Thanks for the info!
     

Share This Page