[Galaxy Ace S5830 Themes and Apps] devilsking:
==============================

FOR ANDROID 4.1

===============================

Credit for Moscow Desire

For Acer JB 4.1, there's three edits; (thanks AChep)

You have to do....

Change text color in Styles.xml

<style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>

In Status_Bar.xml, add (I used #FFF the white short version)(long version is #FFFFFFFF)

<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:textColor="#FFF" android:singleLine="true" />

And in system_bar_notification_area.xml (again I used the short version for white)

<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="8.0dip" android:textColor="#FFF" android:singleLine="true" />

================================

FOR ANDROID 4.0

================================

Credit for NimeniAltu

Go to SystemUI/res/values/styles.xml

open it and search for TextAppearance.StatusBar.Clock

then change @*android:color/holo_blue_light</item>

to the desired color code

=================================

FOR ANDROID 2.3.x

=================================

Now I will show you the way to change color of clock. Here is the guide for stock rom (I dont use cm7 so cannot confirm that it works on cm7 :D )

* What you need:

- Tools for decompilie/compilie (of course, u need to know how to use)

- notepad ++

- table of color code (color code for this is different from normal so I will provide in the bottom of this guide)

* Which file to edit:

- only systemUI.apk

* How to do:

- step 1: decompilie systemUI.apk

- step 2: use notepad++ to open file "Clock.smali" in \smali\com\android\systemui\statusbar\Clock.smali

- step 3: Search for the following code:

.line 108
const/4 v1, [COLOR="Red"]-0x1[/COLOR]

invoke-virtual {p0, v1}, Lcom/android/systemui/statusbar/Clock;->setTextColor(I)V

As u can see, the text in red is code of color here. "-0x1" means white color and we need to change that code to create color for clock.

- step 4: use table of color code below to convert normal color code to the one which is used in color of clock

example

: if I choose color of blue with code "2785a9", according to table, the real code which should be applied in smali file is "d87a56"

so in smali file, what we should fill in is "-0xd87a56" and change "const/4 v1" to "const v1":

.line 108
const v1, [COLOR="Red"]-0xd87a56[/COLOR]

invoke-virtual {p0, v1}, Lcom/android/systemui/statusbar/Clock;->setTextColor(I)V

Here is table of color code:

- Step 5: Save file and compilie systemUI.apk. Put it in /system/app and set permission rw-r-r

Note: After u compilie u need to include class.dex to your apk. If not, there is no changes.

Thank to Neva for table of color code

Hope my guide can be useful for u :D.

Example of result (my old image is dead so I borrow from others' in this topic - thank to tamingsari2k)