[THEME][CM9][AOKP][Slim] ICS with Gingerbread colours

Search This thread

Deciare

Senior Member
Apr 22, 2012
55
42
Mississauga
thats what error i get after decompilling with command
PHP:
apktool b C:\trebuchet.apk C:\trebuchet

PHP:
C:\Users\Gašper>apktool b c:\trebuchet
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: c:\trebuchet\res/drawable-sw600dp-hdpi
invalid resource directory name: c:\trebuchet\res/drawable-sw600dp-nodpi
invalid resource directory name: c:\trebuchet\res/layout-sw600dp
invalid resource directory name: c:\trebuchet\res/layout-sw600dp-land
invalid resource directory name: c:\trebuchet\res/layout-sw600dp-port
invalid resource directory name: c:\trebuchet\res/values-af-sw600dp
invalid resource directory name: c:\trebuchet\res/values-am-sw600dp
invalid resource directory name: c:\trebuchet\res/values-ar-sw600dp
invalid resource directory name: c:\trebuchet\res/values-bg-sw600dp
invalid resource directory name: c:\trebuchet\res/values-ca-sw600dp
invalid resource directory name: c:\trebuchet\res/values-cs-sw600dp
invalid resource directory name: c:\trebuchet\res/values-da-sw600dp
invalid resource directory name: c:\trebuchet\res/values-de-sw600dp
invalid resource directory name: c:\trebuchet\res/values-el-sw600dp
invalid resource directory name: c:\trebuchet\res/values-en-rGB-sw600dp
invalid resource directory name: c:\trebuchet\res/values-es-rUS-sw600dp
invalid resource directory name: c:\trebuchet\res/values-es-sw600dp
invalid resource directory name: c:\trebuchet\res/values-fa-sw600dp
invalid resource directory name: c:\trebuchet\res/values-fi-sw600dp
invalid resource directory name: c:\trebuchet\res/values-fr-sw600dp
invalid resource directory name: c:\trebuchet\res/values-hi-sw600dp
invalid resource directory name: c:\trebuchet\res/values-hr-sw600dp
invalid resource directory name: c:\trebuchet\res/values-hu-sw600dp
invalid resource directory name: c:\trebuchet\res/values-in-sw600dp
invalid resource directory name: c:\trebuchet\res/values-it-sw600dp
invalid resource directory name: c:\trebuchet\res/values-iw-sw600dp
invalid resource directory name: c:\trebuchet\res/values-ja-sw600dp
invalid resource directory name: c:\trebuchet\res/values-ko-sw600dp
invalid resource directory name: c:\trebuchet\res/values-lt-sw600dp
invalid resource directory name: c:\trebuchet\res/values-lv-sw600dp
invalid resource directory name: c:\trebuchet\res/values-ms-sw600dp
invalid resource directory name: c:\trebuchet\res/values-nb-sw600dp
invalid resource directory name: c:\trebuchet\res/values-nl-sw600dp
invalid resource directory name: c:\trebuchet\res/values-pl-sw600dp
invalid resource directory name: c:\trebuchet\res/values-pt-rPT-sw600dp
invalid resource directory name: c:\trebuchet\res/values-pt-sw600dp
invalid resource directory name: c:\trebuchet\res/values-ro-sw600dp
invalid resource directory name: c:\trebuchet\res/values-ru-sw600dp
invalid resource directory name: c:\trebuchet\res/values-sk-sw600dp
invalid resource directory name: c:\trebuchet\res/values-sl-sw600dp
invalid resource directory name: c:\trebuchet\res/values-sr-sw600dp
invalid resource directory name: c:\trebuchet\res/values-sv-sw600dp
invalid resource directory name: c:\trebuchet\res/values-sw-sw600dp
invalid resource directory name: c:\trebuchet\res/values-sw340dp
invalid resource directory name: c:\trebuchet\res/values-sw340dp-land
invalid resource directory name: c:\trebuchet\res/values-sw340dp-port
invalid resource directory name: c:\trebuchet\res/values-sw600dp
invalid resource directory name: c:\trebuchet\res/values-sw600dp-land
invalid resource directory name: c:\trebuchet\res/values-sw600dp-port
invalid resource directory name: c:\trebuchet\res/values-sw720dp
invalid resource directory name: c:\trebuchet\res/values-sw720dp-land
invalid resource directory name: c:\trebuchet\res/values-sw720dp-port
invalid resource directory name: c:\trebuchet\res/values-th-sw600dp
invalid resource directory name: c:\trebuchet\res/values-tl-sw600dp
invalid resource directory name: c:\trebuchet\res/values-tr-sw600dp
invalid resource directory name: c:\trebuchet\res/values-uk-sw600dp
invalid resource directory name: c:\trebuchet\res/values-vi-sw600dp
invalid resource directory name: c:\trebuchet\res/values-zh-rCN-sw600dp
invalid resource directory name: c:\trebuchet\res/values-zh-rTW-sw600dp
invalid resource directory name: c:\trebuchet\res/values-zu-sw600dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\GAPER~1\AppData\Local\Temp
\APKTOOL1328495451113697476.tmp, -I, C:\Users\GaÜper\apktool\framework\1.apk, -S
, c:\trebuchet\res, -M, c:\trebuchet\AndroidManifest.xml]
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
        at brut.androlib.Androlib.buildResources(Androlib.java:248)
        at brut.androlib.Androlib.build(Androlib.java:171)
        at brut.androlib.Androlib.build(Androlib.java:154)
        at brut.apktool.Main.cmdBuild(Main.java:182)
        at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\GAPER~1\AppData\Local\Temp\APKTOOL1328495451113697476.tmp, -I, C:\Users\GaÜ
per\apktool\framework\1.apk, -S, c:\trebuchet\res, -M, c:\trebuchet\AndroidManif
est.xml]
        at brut.util.OS.exec(OS.java:83)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
        ... 6 more

ill try again....and again...but even on my sisters labtop wont work :/
i think ill grab CM7 or stock sammy app to see if im doing it wrong or something is wront with an app
Hmm. I don't have any trouble rebuilding Trebuchet with apktool, so I'm not sure what to recommend. You have run
Code:
apktool if framework-res.apk
with CM9's own framework-res.apk before you tried to decompile, right?
 
  • Like
Reactions: gaspernemec

Deciare

Senior Member
Apr 22, 2012
55
42
Mississauga
is there a "How to..." on using this script so i can update my themes to newer ROMs and/or porting them?? i learn fast but i don't have much time to figure this out on my own... so any help is appreciated!

btw, i just got a computer setup to theme... so i can do the basics right now of that...
I tried to make those READMEs rather specific... ^^; What else can I offer?

I did start on HCS, but didn't get very far. I can summarise what I've done so far. You've already seen the scripts I put on github? So what I did went something like this...

Modify extracttheme.sh to put all the packages from your theme in the $PACKAGES array:
Code:
PACKAGES=(
        'system/framework/framework-res.apk'
        'system/app/SystemUI.apk'
        'system/app/Camera.apk'
        'system/app/Contacts.apk'
        'system/app/Gmail.apk'
        'system/app/Launcher2.apk'
        'system/app/Mms.apk'
        'system/app/PhaseBeam.apk'
        'system/app/Phone.apk'
        'system/app/Settings.apk'
        'system/app/Talk.apk'
)

Create a new git repo:
Code:
mkdir -p theme/dcs/codename
cd theme/dcs/codename
git init

Extract the Codename ROM:
Code:
../extracttheme.sh ../../../Codename-Android-(MOD)-1.5.5-NS4G.zip

Tell git to make note of every directory that will contain theme changes, then make an initial commit:
Code:
git add framework-res SystemUI Camera Contacts Gmail Launcher2 Mms PhaseBeam Phone Settings Talk
git commit -m 'Initial commit'

That extracts every package referenced in the $PACKAGES array from the Codename ROM, and creates a basic unthemed state for us to work with. Next, we want to see what you changed in HCS. So create a new branch for HCS:
Code:
git branch hcs
git checkout hcs

Extract your theme:
Code:
../extracttheme.sh ../../../dy-NASTY_HCS_b3.0_CNA-1.5.5_complete.zip

And now you can type
Code:
git diff
to see what changed between your theme and Codename. There about 8500 unstaged changes. -_- Too much to process on the command line. We can use git gui to view the differences graphically, but git gui only shows 5000 unstaged changes by default, which doesn't help us. So do this:
Code:
git config --add gui.maxfilesdisplayed 65535
git gui

Now you're looking at a list of every unstaged change! The top left shows every modified or untracked file. Modified files have a blue icon; untracked files have a white icon. You only need to worry about the modified files.

Scroll waaaaay down to where you see modified files in framework-res. Click on any one. If it's an image (anything ending in *.png), you probably want to include it. You can do that by selecting Commit -> Stage To Commit from the menu. Files staged for commit will appear in the lower-left corner.

You have several hundred modified images in framework-res alone, so go ahead and select them all (click the first image, then shift-click the last image) and stage them for commit.

What's left over are XML files, and these are trickier. There are some changes that are useful, like colour changes:
git-gui-useful-change.png


And some changes that are "useless", such as stuff that should be left up to the ROM to decide, like resource names or language translations:
git-gui-useless-change.png


You'll have to decide for yourself what's useful and useless, and stage only the useful changes for commit.

Some XML files may have some lines that are useful, and some lines that are useless! You can stage individual lines for commit by highlighting the line(s) in the upper-right box, right-clicking, then selecting Stage Line for Commit from the context menu.

Once you have staged every useful change in framework-res for commit, type a description into the lower-right box, then click the Commit button.

I recommend doing a separate commit for each package (i.e. one for framework-res, one for SystemUI, one for Settings, etc.) to keep things simple. The more complex a commit is, the harder it will be to resolve conflicts when you try to cherry-pick them to another ROM! (For more on cherry-picking, refer to my README for gingercream_cm9.)
 
Last edited:
  • Like
Reactions: the1dynasty

Icecoldmeat

Senior Member
Oct 24, 2011
725
107
Almelo
Nice theme man.. but not everything is green.. like clicking.. etc. Good luck with the rest

Sent from my Nexus S using XDA app
 

the1dynasty

Senior Member
Dec 16, 2011
4,336
3,164
Wow, thanks for that example... I'm new to using git and commit stuff... And i understand the process better now... But i still don't know how to set this up on the computer lol... Once that is done, I'll be able to try this process... Can i do this on windows 7?

Sent from my Nexus S 4G using Tapatalk 2
 

the1dynasty

Senior Member
Dec 16, 2011
4,336
3,164
after glancing over your post again... i definitely do not know how to do all of that lol... also appears it has to be done on Linux which i do not have right now...

since i do have access to a PC that i can theme on right now (running Windows7)... what would I need to do to port my themes over to other ROMs?? or would u suggest i port them over manually like i was doing before?? i'd really like to learn this process but lets face it, we don't get paid for this stuff lol...
 

the1dynasty

Senior Member
Dec 16, 2011
4,336
3,164
just watched a video on that git stuff... apparently i CAN install it on windows... with some learning... i might be able to get this one day lol
 
Hmm. I don't have any trouble rebuilding Trebuchet with apktool, so I'm not sure what to recommend. You have run
Code:
apktool if framework-res.apk
with CM9's own framework-res.apk before you tried to decompile, right?

thanx for tip :) ill give it a try

EDIT: Still not working.....ima try on other comp again or ill rename maybe š in my name is bothering it....
EDIT2: Managed to compile/decompile CM7 contacts w/o problem...CM9 up now....btw, what do you use to sign apps
EDIT3: still no luck, cm9 seems screwed :/, ill try with nexus S apps tho, should work on galaxy S as well :)
 
Last edited:

Deciare

Senior Member
Apr 22, 2012
55
42
Mississauga
For great SCIENCE, there is now a package for the T-Mobile Theme Engine, newly accessible in CM9 from Settings -> Theme.

It's not complete, there are bits that I can't seem to theme, and I don't know if that's because of bugs in my work, in CM9, in the theme engine itself, or any combination of the foregoing. But most importantly, it's NEW! :D

At some point, this theme engine will theoretically make it possible to touch bits that are too much trouble to bother with now. Anyway, there you have it, have fun. ;) Also, it will unset your ringtone, notification sound, and wallpaper. I don't know how to make it stop doing that.

just watched a video on that git stuff... apparently i CAN install it on windows... with some learning... i might be able to get this one day lol
That's great, I hope it works out for you! There is certainly demand for the sort of complete theme that you make. I'd like to be able to point people at you for their all-green and all-red fixes.
 
Last edited:
  • Like
Reactions: the1dynasty

Deciare

Senior Member
Apr 22, 2012
55
42
Mississauga
Green dialpad and toggle buttons (the kind that looks like a button with a state indicator)! Now available on CM9 2012-05-09, AOKP M5 and build 35, and SlimICS 3.6.

The T-Mobile theme engine package also includes these updates and no longer blows away your wallpaper and sounds.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    Latest compatible ROMs: CyanogenMod 9 nightly 2012-07-08, AOKP build 40, SlimICS 3.6
    -------

    This is a modified version of ICS's standard theme to use Gingerbread colours in various places.

    Specifically, adjustments have been made to:
    • Status bar icons and text
    • Notification pull-down title and icons
    • Recent Apps list
    • Dialogue titles
    • Checkboxes
    • Radio buttons
    • Scrubbers
    • Toggle buttons
    • Text fields
    • Selected text
    • Translucent menus and volume pop-up
    • Dialpad

    Anything that wasn't mentioned in the above list is probably still blue. Applications that embed their own themes, such as the Browser, Camera, Contacts or Phone, are still blue.


    Why?

    Earlier this month, I finally made the leap from Gingerbread to ICS, and found the blue-on-everything-everywhere aesthetic very difficult to get used to. I like the variation in colour and contrast of the standard Gingerbread theme.

    There are other, much more complete makeovers for ICS out there, but I also wanted as much of the standard ICS look and feel as possible; just with a touch of Gingerbread where I felt it was appropriate.

    This is the result. I don't know if anyone would want to use this, but I'm throwing it out here so you get to decide for yourself. :)


    Download

    There are historical packages for CM9, AOKP, and SlimICS, but the recommended version is the T-Mobile Theme Engine variant. Strangely, the same APK can't be installed on both CM9 and AOKP; atempting to do so results in a crash. I think this has to do with a layout XML file modified by this theme, and the way XML files depend on the compiled framework. Anyway, that being the case, I've built separate versions for each.

    T-Mobile Theme Engine
    CyanogenMod 9
    AOKP
    • Build 35 (md5sum: 9d1462e615c3d1c75a6515c3717a4505)
    • Milestone 5 (md5sum: f08c06e39d99d54a9ade0d13a371a261)
    • Build 34 (md5sum: fcf17e719c60fbb2fecb74908416ddca)
    • Build 33 (md5sum: 6d7836434cc085b28f4fda6503417a85)
    SlimICS
    • 3.6 (md5sum: 246d447465ab798f079ac9b6854f4a58)
    • 3.5 (md5sum: 104803c587eca98c94cb05a0f9305131)
    • 3.4 (md5sum: fe1b192f7f6027fcc61ec1eefb7c3e7e)

    Other

    Source

    Want to make changes to this theme, port it to another ROM, or see exactly what was modified? You are invited to see the details at github:
    https://github.com/deciare/gingercream_cm9

    A number of scripts I use to simplify the theme extraction and build process are also available:
    https://github.com/deciare/theme_tools

    Known Issues

    CyanogenMod 9
    • Notification power widget indicators are blue. It doesn't look like I'll be able to change this without editing source code. If anyone knows otherwise, please let me know.
    AOKP
    • Alternate power widget toggles are blue again. The image from before is no longer used.
    SlimICS
    • Clock font is blue. Nothing I can do about this; SlimICS sets clock font colour the same way as AOKP, but doesn't include the control panel for it.
    3
    Haha, AOKP sure is popular. :D

    I'm working on porting the changes now, though it may take a little while since I haven't tried AOKP before. Hang tight and I'll hope to have good news soon!
    3
    Porting to SlimICS was a pain. x.x So much manual conflict resolution and redrawing... Here it is anyway, I hope that makes a few people happy.

    An updated build for AOKP (translucent menus and volume pop-up, alternate power widget toggles) is also available!

    CM9 nightly 2012-04-27 build coming soon...
    3
    Milestone 5 Today

    †††
    Updated. Thank you for the notice.
    2
    hi i just want to share my Modified aokp33 with green circle mod and green cm9 percentage battery. :)

    batterygreen.jpg