[Android Themes] prithvee:
THE COLOR OF THE STATUS BAR DEPENDS ON THE APP SHOWN ON THE SCREEN... HENCE THE APPS AND THEIR COLORS HAVE TO BE DEFINED FIRST..

THEN...HOW TO ADD MORE APPS AND COLORS ????

Go to this code (from Step 6), observe the comments below and make changes accordingly :

NOTE : WHILE WRITING THE CODE IN YOUR .smali , REMOVE THE COMMENTS HIGHLIGHTED IN RED COLOR

[COLOR="Red"]
# virtual methods[/COLOR]
.method updatecolor(Ljava/lang/String;)V
.locals 1
.parameter "apn"

.prologue
.line 34
:try_start_0
const-string v0, "com.android.contacts" [COLOR="Red"]//this one is for contacts[/COLOR]

invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_0

.line 35
const-string v0, "#ff185984" [COLOR="Red"]//this color is for contacts[/COLOR]

invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

move-result v0

invoke-virtual {p0, v0}, [COLOR="Orange"]Lcom/android/systemui/statusbar/StatusBarView[/COLOR];->setBackgroundColor(I)V [COLOR="Red"]//JB USERS DON'T FORGET TO CHANGE THE LINES IN [COLOR="Orange"]ORANGE[/COLOR] TO[/COLOR] '[COLOR="DarkOrchid"]Lcom/android/systemui/statusbar/phone/PhoneStatusBarView[/COLOR]' [COLOR="Red"]WHERE REQUIRED [/COLOR]

.line 91
:goto_0
return-void

.line 38
:cond_0
const-string v0, "com.android.settings" [COLOR="Red"]//similarly this one is for settings[/COLOR]

invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_1

.line 40
const-string v0, "#FF000000" [COLOR="Red"]//this color is for settings[/COLOR]

invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

move-result v0

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/StatusBarView;->setBackgroundColor(I)V

goto :goto_0

.line 88
:catch_0
move-exception v0

goto :goto_0

.line 42
:cond_1
const-string v0, "com.android.mms"

invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_2

.line 44
const-string v0, "#ff394963"

invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

move-result v0

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/StatusBarView;->setBackgroundColor(I)V

goto :goto_0

.line 46
:cond_2
const-string v0, "com.opera.mini.android.Browser"

invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_3

.line 48
const-string v0, "#ff9d372c"

invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

move-result v0

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/StatusBarView;->setBackgroundColor(I)V

goto :goto_0

.line 50
:cond_3
const-string v0, "com.tencent.mm"

invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_4

.line 52
const-string v0, "#ff3c3c3c"

invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

move-result v0

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/StatusBarView;->setBackgroundColor(I)V

goto :goto_0

.line 54
:cond_4
const-string v0, "com.google.android.finsky"

invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_5

.line 56
const-string v0, "#ff666666"

invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

move-result v0

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/StatusBarView;->setBackgroundColor(I)V

goto :goto_0

.line 58
:cond_5
const-string v0, "com.estrongs.android.pop"

invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-nez v0, :cond_6

const-string v0, "com.estrongs.android"

invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_7

.line 60
:cond_6
const-string v0, "#ff66cae5"

invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

move-result v0

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/StatusBarView;->setBackgroundColor(I)V

goto :goto_0

.line 62
:cond_7
const-string v0, "com.google.android.gms"

invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_8

.line 64
const-string v0, "#ff96aa39"

invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

move-result v0

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/StatusBarView;->setBackgroundColor(I)V

goto/16 :goto_0

.line 66
:cond_8
const-string v0, "com.facebook.katana"

invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_9

.line 68
const-string v0, "#ff5978b0"

invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

move-result v0

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/StatusBarView;->setBackgroundColor(I)V

goto/16 :goto_0

.line 70
:cond_9
const-string v0, "com.whatsapp"

invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_a

.line 72
const-string v0, "#ff2f4444"

invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

move-result v0

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/StatusBarView;->setBackgroundColor(I)V

goto/16 :goto_0

.line 74
:cond_a
const-string v0, "com.mgeek.android.DolphinBrowser.Browser"

invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_b

.line 76
const-string v0, "#ff389d00"

invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

move-result v0

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/StatusBarView;->setBackgroundColor(I)V

goto/16 :goto_0

.line 79
:cond_b
const-string v0, "com.uc.browser.en"

invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_c

.line 81
const-string v0, "#ff31639c"

invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

move-result v0

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/StatusBarView;->setBackgroundColor(I)V

goto/16 :goto_0

.line 85
:cond_c
const-string v0, "#FF000000" [COLOR="Red"]// THIS PART IS FOR THE DEFAULT COLOR FOR THE APPS THAT ARE NOT MENTIONED ABOVE [/COLOR]

invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

move-result v0

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/StatusBarView;->setBackgroundColor(I)V
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

goto/16 :goto_0
.end method

Now if u want to add different apps then the follow this :

1. Find this part at the near end of the above code

.line 79
:cond_b
const-string v0,[COLOR="YellowGreen"] "com.uc.browser.en"[/COLOR] [COLOR="Red"]//this one is for UC browser[/COLOR]

invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_c

.line 81
const-string v0, [COLOR="YellowGreen"]"#ff31639c"[/COLOR] [COLOR="Red"]//this color is for UC browser[/COLOR]

invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

move-result v0

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/StatusBarView;->setBackgroundColor(I)V

goto/16 :goto_0

.line 85
:cond_c
...........................................
...........................................

2. Now to add your app just paste this segment below ... just as shown below :

.line 79
:cond_b
const-string v0,[COLOR="YellowGreen"] "com.uc.browser.en"[/COLOR] [COLOR="Red"]//this one is for UC browser[/COLOR]

invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_c

.line 81
const-string v0, [COLOR="YellowGreen"]"#ff31639c"[/COLOR] [COLOR="Red"]//this color is for UC browser[/COLOR]

invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

move-result v0

invoke-virtual {p0, v0}, Lcom/android/systemui/statusbar/StatusBarView;->setBackgroundColor(I)V

goto/16 :goto_0

[COLOR="Purple"] .line 79
:cond_b
const-string v0,[COLOR="YellowGreen"] "Your app's package name "[/COLOR] [COLOR="Red"]//this one is for your app[/COLOR]

invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

move-result v0

if-eqz v0, :cond_c

.line 81
const-string v0, [COLOR="YellowGreen"]"Color that you want to be set when this app is on the screen "[/COLOR] [COLOR="Red"]//this color is for your app[/COLOR]

invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

move-result v0

invoke-virtual {p0, v0}, [COLOR="Orange"]Lcom/android/systemui/statusbar/StatusBarView[/COLOR];->setBackgroundColor(I)V [COLOR="Red"]//JB USERS DON'T FORGET TO CHANGE THE LINES IN [COLOR="Orange"]ORANGE[/COLOR] TO[/COLOR] '[COLOR="DarkOrchid"]Lcom/android/systemui/statusbar/phone/PhoneStatusBarView[/COLOR]' [COLOR="Red"]WHERE REQUIRED [/COLOR]

goto/16 :goto_0[/COLOR]

.line 85
:cond_c [COLOR="Red"]// THIS PART IS FOR THE DEFAULT COLOR FOR THE APPS THAT ARE NOT MENTIONED ABOVE [/COLOR]
...........................................
...........................................[/COLOR]

YOU CAN ADD AS MANY APPS YOU WISH BUT FOLLOW THE SAME PATTERN AS SHOWN ABOVE. ALSO TAKE CARE THAT YOU ADD THE CODE BETWEEN UC BROWSER'S CODE AND THE DEFAULT COLOR CODE.