julianpaul

Mod/Extract specific components from a theme

6 posts in this topic

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?

0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

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

0

Share this post


Link to post
Share on other sites

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)

0

Share this post


Link to post
Share on other sites

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.

0

Share this post


Link to post
Share on other sites

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!

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2016. MoDaCo uses IntelliTxt technology.