Jump to content


Photo

Mod/Extract specific components from a theme

- - - - -

  • Please log in to reply
5 replies to this topic

#1
julianpaul

julianpaul

    Newbie

  • Members
  • Pip
  • 49 posts
  • Gender:Male
  • Devices:Orange San Francisco
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

#2
Chris Banks

Chris Banks

    Enthusiast

  • Members
  • PipPipPip
  • 255 posts
  • Gender:Male
  • Devices:Nexus 7, G300, ZTE Blade
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-dev...ad.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

#3
julianpaul

julianpaul

    Newbie

  • Members
  • Pip
  • 49 posts
  • Gender:Male
  • Devices:Orange San Francisco
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

#4
Chris Banks

Chris Banks

    Enthusiast

  • Members
  • PipPipPip
  • 255 posts
  • Gender:Male
  • Devices:Nexus 7, G300, ZTE Blade

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

#5
julianpaul

julianpaul

    Newbie

  • Members
  • Pip
  • 49 posts
  • Gender:Male
  • Devices:Orange San Francisco
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

#6
julianpaul

julianpaul

    Newbie

  • Members
  • Pip
  • 49 posts
  • Gender:Male
  • Devices:Orange San Francisco
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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users