Jump to content

Mod/Extract specific components from a theme


Guest julianpaul

Recommended Posts

Guest julianpaul

I'm running CM7 213 and kinda like the GingerBlur Trans theme the most, except for the music widget appearance. yes, the stock music widget. The XperiaArc theme has a very nice transparent music widget. My question is, how do i port just that one component over to the gingerblur theme?

Link to comment
Share on other sites

Guest Chris Banks

Decompile both themes, find the relevant images for the music players in the res/drawable-hdpi folders and replace them with the ones you want from the other theme, making sure they are named the same. Compile then sign.

Hopefully it should install OK, and you should be able to select your theme in theme manager.

Personally I use apk manager4.9 for modding: http://forum.xda-developers.com/showthread.php?t=695701, mainly because I like the graphical interface. But there are other methods available.

You can upload CM7 themes to the UOT kitchen: http://uot.dakra.lt/kitchen/ but I'm not sure if there is an option to theme the music player. Could be worth a look for you.

Link to comment
Share on other sites

Guest julianpaul

I check the files, found files for most buttons, but can't figure out what's the background for the widget. As you probably already know, every theme seems to have differing non-standard file naming conventions.

Checking out apkmanager now. Is it generally for apks or is there some gui based wysiwyg editor for themes?

Thanks

Link to comment
Share on other sites

Guest Chris Banks

I check the files, found files for most buttons, but can't figure out what's the background for the widget. As you probably already know, every theme seems to have differing non-standard file naming conventions.

Checking out apkmanager now. Is it generally for apks or is there some gui based wysiwyg editor for themes?

Thanks

It's just for APK's in general. I didn't know what previous knowledge you may have, so was coving all bases with the recommendation :)

Yea, authors of themes seem to use whatever name they like for images. But if you look in res / xml / android.xml the images are defined to their item.

Example:

<item name="drawable/btn_default_small_selected">@drawable/frameworks_res_btn_default_small_selected</item>

I assume the item name stays the same, so you might be able to find all the right images through that.

(Maybe a search for music or player or something along them lines might point you in the right direction)

Link to comment
Share on other sites

Guest julianpaul

The music player buttons appear to be in drawable-hdpi-finger but the source theme doesn't seem to have buttons for repeat and shuffle, so i can't just replace those.

Also, the drawable-land-hdpi-finger folder has a couple files called audio_player_background.xml which the target theme doesn't have so i guess i'll have to start digging around files like the res/xml/android.xml you pointed out.

Thanks again.

Link to comment
Share on other sites

Guest julianpaul

Spent a few hours trying to move the music widget to the other theme, no luck. Just overwriting or even modding the existing pngs to be more transparent/lucent just messed up the widget alignment. Then tried copying over the music xml and every single png mentioned in it. that didn't work either. about given up. theming is too much for me!

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.