[Xposed Framework Modules] Namoi:
Hi, i answered your PM, but i couldn't put an attachement, so as i said i will do it here and also write the little Tuto for all of the other guys who could benefit from it.

Thanks To Rycon and is ported LunarUI which helped me at first.

**************

1. First I tried it only on a GS2 on XWLSN Stock deodexed Rom (and another guy tried it on OMEGA Roms with stock toggles). It must be adapted for other Samsung model.

2. I tested for the moment only Systemui : i didn't try the framework, so maybe the framework isn't themable, but i don't think so (but lidroid is not themable, this i know : i couldn't make it work - i asked here if someone could do it but no answer so far).

EDIT: Framework is themable, but most of the changes must be done in twframework-res.apk.

3. You asked me about the Status bar : its appearance is controled by XMLs located in the Res/layout folder. You have to redirect them also.

For instance : the main look of the statusbar is defined in tw_status_bar.xml (not satus_bar.xml).

Just copy this tw_status_bar.xml in a layout subfolder in Res and rename it com_android_systemui_tw_status_bar.xml

Modify what you want ...

After just redirect like this :

No try to compile aaaaaannnd : Bam bunches of errors.

If you open com_android_systemui_tw_status_bar you will see that it uses a bunch of assets : ids, colors, drawables and even other layouts xmls. You have to provide them to the compiler (but no need to redirect them and you can't rename them com_system_ui.... .xml, because the original com_android_systemui_tw_status_bar refer to them not using com_android_systemui... I call this "nested" assets - if you wan't to rename them you also have to change their names in the com_android_systemui_tw_status_bars.XML).

So painfully, copy the ids, the colors, the style, the drawables... missing in their couterpart subfolder or Xmls. For example, if the compiler complain about a missing id, just open the ids.xml of your theme and add the missing line from systemui Ids.xml.

Now another tricky one (i posted this trick a few page back): attributes (you won't find theme in tw_status_bar.xml, but if you want to theme the expanded status bar, it has that kind of assets). Attributes are custom assets defined in the values/attrs.xml.

For a reason i don't understand, even copying this xml in the Res/values of the theme doesn't work : the compiler doesn't find them.

The trick is to "redirect" those attributes to the package of the theme. Just modify the top of the concerned XML like this:

The red line is the one added : it kind of tell the compiler that those assets are part of your theme package.

You should change sg.ruqqq.theme.SampleTheme by the name of you package theme define in the Manifest.

You see the lib in bold ? This one must be added in front of each missing attributes. For instance in tw_status_bar_expanded_header.xml you have amPmSmall as custom attribute, so you change in the code :

by

And so on.

Here in attachement is an example : it just moves the standard Toggles and brightness bar at the bottom, but if you have a look you will understand how it works and be able to change other things as well.

WARNING : it won't work with Lidroid Toggles, you will get FCs... I have another version working with Lidroid if you want.

********************

Cheers guys