Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
kab0b0
Old
(Last edited by kab0b0; 21st October 2010 at 06:45 PM.)
#1  
Member - OP
Thanks Meter 4
Posts: 53
Join Date: Feb 2010
Location: Portland, OR
Default Need to change clock color for a theme

Working on my first theme here and I cannot change the color of the clock in the notification bar. Can anyone give me a tip? I've tried smali/baksmaling the services.jar and editing the relevant lines (or so I thought) but to no avail. Also colorChanger didn't work. :/
 
kab0b0
Old
#2  
Member - OP
Thanks Meter 4
Posts: 53
Join Date: Feb 2010
Location: Portland, OR
Nevermind, figured it out.
 
rhyme187
Old
#3  
rhyme187's Avatar
Senior Member
Thanks Meter 43
Posts: 416
Join Date: Oct 2008
Location: UTaH
what color will this theme be?
 
lviv73
Old
#4  
lviv73's Avatar
Senior Member
Thanks Meter 89
Posts: 1,522
Join Date: Mar 2010
Location: Buffalo NY
Quote:
Originally Posted by kab0b0 View Post
Nevermind, figured it out.
How you do it?
 
kab0b0
Old
#5  
Member - OP
Thanks Meter 4
Posts: 53
Join Date: Feb 2010
Location: Portland, OR
Quote:
Originally Posted by lviv73 View Post
How you do it?
You need to edit StatusBarIcon.smali in services.jar

Look for the line:
Code:
invoke-virtual {v4, v7}, Landroid/widget/TextView;->setTextColor(I)V
go above it and add the line:

Code:
const/high16 v7, -0x100
where "-0x100" is whatever color you want it to be. (In this case, black)
 
kab0b0
Old
#6  
Member - OP
Thanks Meter 4
Posts: 53
Join Date: Feb 2010
Location: Portland, OR
Quote:
Originally Posted by rhyme187 View Post
what color will this theme be?
Was gonna leave it a surprise, but it's what I've attached here. It's not quite done yet.
Attached Thumbnails
Click image for larger version

Name:	snap20101023_045714.jpg
Views:	86
Size:	17.3 KB
ID:	425041   Click image for larger version

Name:	snap20101023_045710.jpg
Views:	61
Size:	17.6 KB
ID:	425042   Click image for larger version

Name:	snap20101023_045647.jpg
Views:	61
Size:	19.1 KB
ID:	425043   Click image for larger version

Name:	snap20101023_045635.jpg
Views:	74
Size:	26.3 KB
ID:	425044  
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Xposed Framework Module for the AT&T Galaxy S 4

Got yourself a brand new Galaxy S 4? Are you looking for some fun mods to make it truly your … more

Job Interview Prep: Phone Screen Part 1 – XDA Developer TV

XDA Developer TV Producer Jayce has been very busy creating videos to help … more

Auto Test Your Android Apps with Robotium

You’ve just finished coding your very first app, but before you release it to the wild, you … more

Open Source CPU Info App for Windows

So you’re playing with your shiny new Windows 8 tablet PC, when one of your like-minded geeky … more