[Q][ICS] Color statusbar clock - Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A

Can i change color my clock in statusbar on my LWW ? I have CyanogenTimeScape

streetu said:
Can i change color my clock in statusbar on my LWW ? I have CyanogenTimeScape
Click to expand...
Click to collapse
Yes and quite easily too. I'll explain how later when I get a chance but I will say now that you'll need to decompile your SystemUI.apk

Ticklefish said:
Yes and quite easily too. I'll explain how later when I get a chance but I will say now that you'll need to decompile your SystemUI.apk
Click to expand...
Click to collapse
why not add tha tutorial to yur thread?

I now it's systemui.apk but i don't know which files in this apk is responsible for this. Who's know it ?

Decompile systemui.apk with apktool 1.4.3.. I use xDA AutoTool
Open res/values/styles.xml
u will find this and change last line to @android:color/holo_blue_light as below
Code:
<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">[B]@android:color/holo_blue_light[/B] </item>
</style>
do same for Date
Code:
<style name="TextAppearance.StatusBar.Date" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/holo_blue_light</item>
</style>
have fun...:fingers-crossed:

I thanks for help but i didn't have values
I have only:
-anim
-some drawable
-some layout
-menu
-raw

jjdoctor said:
Decompile systemui.apk with apktool 1.4.3.. I use xDA AutoTool
Open res/values/styles.xml
u will find this and change last line to @android:color/holo_blue_light as below
Code:
<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">[B]@android:color/holo_blue_light[/B] </item>
</style>
do same for Date
Code:
<style name="TextAppearance.StatusBar.Date" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@android:color/holo_blue_light</item>
</style>
have fun...:fingers-crossed:
Click to expand...
Click to collapse
If you just want to change the clock colour, you could make a new style specifically for it.
streetu said:
I thanks for help but i didn't have values
I have only:
-anim
-some drawable
-some layout
-menu
-raw
Click to expand...
Click to collapse
Yes, you do. Your app won't work without it. Did it fully decompile?

Ticklefish said:
If you just want to change the clock colour, you could make a new style specifically for it.
Click to expand...
Click to collapse
tha above code wont work??

Will change color as the status bar? I would like to help me,
I'm using CM9, thanks.
Now color is black

Okay, I'm finally in a position to answer this properly.
First, you need to decompile SystemUI.apk. The best tool I can recommend for this is Tickle My Android. Partially because I made it, but also because I know it works for our devices. I'm always messing around with my SystemUI.apk and I never have any issues.
Next, edit res\layout\status_bar.xml
This is the code that describes how your status bar is put together and in there will a line of code similar to:
Code:
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="left|center" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" />
Exactly what you'll have, I don't know, but there'll be mention of the clock somewhere.
Now you just need to add one extra parameter, 'android:textColor':
Code:
<com.android.systemui.statusbar.policy.Clock android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:gravity="left|center" android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:singleLine="true" android:textColor="#ff33b5e5"/>
Here, the 'ff33b5e5' is an ARGB code for a particular colour and transparency. Work out what the code for the colour you want is and change the line to fit.
Now, recompile the apk, get the compression and signing right and put it back on your phone.
Simple.
I have mentioned making a new style to do this. This is possible and will help if you're changing the colour of a lot of strings of text, but it's not needed just to this one thing.
---------- Post added at 09:52 AM ---------- Previous post was at 09:49 AM ----------
whalesplaho said:
tha above code wont work??
Click to expand...
Click to collapse
Oh, it will. But it will change the colour of everything that uses that style. Nothing wrong with that at all..if that's what you want to do.
---------- Post added at 09:52 AM ---------- Previous post was at 09:52 AM ----------
cholopo said:
Will change color as the status bar? I would like to help me,
I'm using CM9, thanks.
Now color is black
Click to expand...
Click to collapse
Do you want the clock the same colour as the status bar?

In which program you do it ? Because i have it:

streetu said:
In which program you do it ? Because i have it:
Click to expand...
Click to collapse
I just use Notepad. Sometimes Notepad++ if I'm working on xml that's very busy.
Did you decompile the apk?

I do all but color is same like before :/

streetu said:
I do all but color is same like before :/
Click to expand...
Click to collapse
Hmm..what colour did you try to change it to?
Are you using a theme at all?

From cyan to violet

streetu said:
From cyan to violet
Click to expand...
Click to collapse
Simple enough, I did the same sort of thing to my tablet (although I got my colour code wrong and made it pink instead..lol)
Can you share your status_bar.xml and I'll see what's gone wrong?

This is my status_bar.xml

streetu said:
This is my status_bar.xml
Click to expand...
Click to collapse
I think I know what the problem is. You've got your clock colour as a RGB code but it needs to be ARPG. If you're not too worried about having transparency, try putting 'ff' in front of the colour code.

ARGB color picker?
Ticklefish said:
Here, the 'ff33b5e5' is an ARGB code for a particular colour and transparency. Work out what the code for the colour you want is and change the line to fit.
[QUOTE/]
is this a hex color code..? i could really use some help finding a way to get color values. In the process of re-themeing my entire z902 systemUI..
Click to expand...
Click to collapse

Related

Font

Is there a way to change the color of the font on your phone? Also what do i need to click in font installer to change all my fonts not just some fonts? Tia
Sent from my EVO using xda premium
wileout said:
Is there a way to change the color of the font on your phone? Also what do i need to click in font installer to change all my fonts not just some fonts? Tia
Sent from my EVO using xda premium
Click to expand...
Click to collapse
I don't know about the color part, but if you hit menu on the main screen of font installer then preferences, you can choose which fonts to overwrite/ replace. Hope that helps. Make a backup I guess in case you don't like the way something looks when you're done.
ducky1131 said:
I don't know about the color part, but if you hit menu on the main screen of font installer then preferences, you can choose which fonts to overwrite/ replace. Hope that helps. Make a backup I guess in case you don't like the way something looks when you're done.
Click to expand...
Click to collapse
Yea figured that part about changing fonts right I typed this up...still wanna know if I change colors tho lol
Sent from my EVO using xda premium
Well you will first need to decompile the framework apk's and edit the text color on those as many apps call to framework-res.apk/com.htc.resources.apk for text color then where you don't see changes you will need to decompile the particular apk associated with the place you like to change it. For example, statusbar related text is found in SystemUI.apk. Once you decompile it go to the color folder and you will see list_item_primary_text.xml, open it and you will see
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="[COLOR="red"]@color/primary_text_disable"[/COLOR] />
<item android:color="[COLOR="Red"]@android:color/primary_text_dark[/COLOR]" />
</selector>
notice the sections marked in red.
The first one @color/primary_text_disable tells you that the color code is coming from within the app so go to /res/values/colors.xml and open it. you will see the following code
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="status_bar_recents_app_label_color">#ffffffff</color>
<color name="notification_list_shadow_top">#80000000</color>
<color name="white">#ffffffff</color>
<color name="black">#ff000000</color>
<color name="half_white">#7fffffff</color>
<color name="half_black">#7f000000</color>
[COLOR="red"]<color name="primary_text_disable">#ff4c4c4c</color>[/COLOR]
<color name="secondary_text_disable">#ff4c4c4c</color>
<color name="multiply_color">#ffbdff67</color>
</resources>
here is the color code its referring to. Now you can either change the color code here or you can just change android:color="@color/primary_text_disable" to android:color="colorcodehere" (example ff000000)
Now notice the <item android:color="@android:color/primary_text_dark" /> on the first code...this tells us that the code is being called upon from the framework.
You can also change "@android:color/primary_text_dark" to "colorcodehere" or to "@color/primary_text_disable" to make the color reference internal in the app.
There are many different ways to get the changes you want...some changes are a bit harder as they are coded through smali.
I suggest you start with a non-framework apk and make the color references internal.
Hope this helps
eg1122 said:
Well you will first need to decompile the framework apk's and edit the text color on those as many apps call to framework-res.apk/com.htc.resources.apk for text color then where you don't see changes you will need to decompile the particular apk associated with the place you like to change it. For example, statusbar related text is found in SystemUI.apk. Once you decompile it go to the color folder and you will see list_item_primary_text.xml, open it and you will see
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="[COLOR="red"]@color/primary_text_disable"[/COLOR] />
<item android:color="[COLOR="Red"]@android:color/primary_text_dark[/COLOR]" />
</selector>
notice the sections marked in red.
The first one @color/primary_text_disable tells you that the color code is coming from within the app so go to /res/values/colors.xml and open it. you will see the following code
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="status_bar_recents_app_label_color">#ffffffff</color>
<color name="notification_list_shadow_top">#80000000</color>
<color name="white">#ffffffff</color>
<color name="black">#ff000000</color>
<color name="half_white">#7fffffff</color>
<color name="half_black">#7f000000</color>
[COLOR="red"]<color name="primary_text_disable">#ff4c4c4c</color>[/COLOR]
<color name="secondary_text_disable">#ff4c4c4c</color>
<color name="multiply_color">#ffbdff67</color>
</resources>
here is the color code its referring to. Now you can either change the color code here or you can just change android:color="@color/primary_text_disable" to android:color="colorcodehere" (example ff000000)
Now notice the <item android:color="@android:color/primary_text_dark" /> on the first code...this tells us that the code is being called upon from the framework.
You can also change "@android:color/primary_text_dark" to "colorcodehere" or to "@color/primary_text_disable" to make the color reference internal in the app.
There are many different ways to get the changes you want...some changes are a bit harder as they are coded through smali.
I suggest you start with a non-framework apk and make the color references internal.
Hope this helps
Click to expand...
Click to collapse
Thanks bro that helps a ton now to just go thru and do it to each one of my 100 apps lmao
Sent from my EVO using xda premium

[HELP] Change Status Bar Clock Color Samsung ICS Leak

Hi,
I'm trying to change the status bar clock color in the Glide ICS leak. I decompile SystemUI.apk, navigate to /res/values/styles.xml and change to:
Code:
<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">#ff33b5e5</item>
</style>
<style name="TextAppearance.StatusBar.Date" parent="@android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ff33b5e5</item>
Recompiling, deleting resources.arsc in keep folder and replacing the the resources from the new apk to the old apk, I flash the systemui.apk and the status bar clock stays the same color...The strange thing is before this the lines of code above were already like android_holo_blue or whatever.
I've also tried editing status_bar.xml. That's attached, I'm not sure if I did it correctly but when I compiled everything was the same.
statusbar.xml
Thanks
This is a Samsung Captivate Glide running 4.0.4 Touchwiz 4
Tw_status_bar.xml
Sent from my SGH-T989 using xda app-developers app

THEMES (Updated) (xu, xsola) #3D theme + jellywhite

FOR THE PEOPLE HOW LOVE CUSTOMIZATION I AM PRESENTING MY 2 THEMES
1) 3D THEME(real 3d effects)
2) JELLYWHITE(nearly white background in apps like settings and phone)
...........3D THEME................................
3D 3D 3D 3D
A new generation of themes is just began for android Xperias
You have 3d glasses?
If your answer is yes, there is good news for you
I have created a 3d theme
Just put on the glasses and enjoy
Download the attachments
3dtheme and the wallpaper
Requirements: 3d glasses
CAUTION: IT may take 3 to 4 seconds to your eyes to see 3d images with glasses
There may be pain in your eyes after testing
Note : 3d theme is only a test release not final one but you must try it out
.....................JELLYWHITE..................
Many people wants a white background in apps like settings and phone
So I decided to make this
However it is not complete white but grey due to the white font present in these apps but it looks really cool
This theme is best combined with white theme of Xperia keyboard
..............................................................
REQUIREMENTS
A rooted device(obviously a Xperia)
Root explorer(or a similar app)
The attachment
A working brain
PHONES TESTED
Xperia u
Xperia sola
May work on s,p,go and other firmware versions
But try on your risk
METHOD TO INSTALL
Push in system/vendor/overlay/framework/
and fix permissions
reboot
For jellywhite select silk theme in theme manager
For 3d theme select turquoise in theme manager and apply the attached wallpaper
please comment here and provide feedback for future development
Any screenshot or something ?
Hello any screenshot?
Re: Theme (xu)(b.10) jellywhite
Here are screen shots
This should be noted that this is my first thread and first post
droidzeus said:
Here are screen shots
This should be noted that this is my first thread
Click to expand...
Click to collapse
ok :good:
but its not white but grey
screen shot please??
Re: Theme (xu)(b.10) jellywhite
I cannot make this complete white because of the white font
U guys know any method to turn these font to black
patokaz said:
screen shot please??
Click to expand...
Click to collapse
its already added over here, look better:silly:
Re: Theme (xu)(b.10) jellywhite
So anyone tried it
from where its white
on topic its look cool anyway, good work I will try it.
Re: Theme (xu)(b.10) jellywhite
Dude I already posted that it cannot be made completely white due to white fonts but yay it looks way cooler than those stock theme
I've tried, and it's nice
here's a bigger screenshot
I hate to be rude, but it's not white all. It's grey mostly.
Re: Theme (xu)(b.10) jellywhite
If you develop a way to change font color to black I will surely provide a complete white theme
Customizing a theme to white is not hard. The point is to make the font black. It requires heavy modifications of framework images and programing too.
Hope some dev can do that.
Re: Theme (xu)(b.10) jellywhite
Very true but for now try this cool theme
This is something we need.
Re: Theme (xu)(b.10) jellywhite
Where you get these
Pls provide link
Re
Link please.
This should Help
res\values\colors.xml
res\values\styles.xml
this is what i found
First off is the text on buttons.
Do a ctrl+f to bring up the find button.
Type widget.button and click find next. (hit find next 6 times)
You should now be at this portion of the .xml
Code:
<style name="Widget.Button" parent="@style/Widget">
<item name="textAppearance">?textAppearanceSmallInverse</item>
<item name="textColor">@color/primary_text_light</item>
<item name="gravity">center</item>
<item name="background">@drawable/btn_default</item>
<item name="focusable">true</item>
<item name="clickable">true</item>
</style>
Where it says primary_text_light (black) change to primary_text_dark (white).
Also you could delete the whole @color/primary_text_light and just put #ffff00ae as an example for the color code you desire.
If that is all you need save and look down for the completing instructions.
Next is the menu text (when you hit he soft key for menu)
Do ctrl + f and put in TextAppearance.Widget.IconMenu.Item and click find next.
You should now be at this area
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimary</item>
</style>
Change textColorPrimaryInverse (black) to textColorPrimary (white and then black when pressed)
Also you could delete the whole ?textColorPrimary and just put #ffff00ae as an example for the color code you desire.
If that is all you need save and look down for the completing instructions.
Keyboard text (the actually text on the soft keyboard keys)
Do ctrl + f and put in Widget.KeyboardView and click find next twice
You should now be at this section
Code:
<style name="Widget.KeyboardView" parent="@style/Widget">
<item name="background">@drawable/keyboard_background</item>
<item name="shadowColor">#bb000000</item>
<item name="shadowRadius">2.75</item>
<item name="keyBackground">@drawable/btn_keyboard_key</item>
<item name="keyTextSize">22.0sp</item>
<item name="labelTextSize">14.0sp</item>
<item name="keyTextColor">#ffffffff</item>
<item name="keyPreviewLayout">@layout/keyboard_key_preview</item>
<item name="keyPreviewOffset">-12.0dip</item>
<item name="keyPreviewHeight">80.0dip</item>
<item name="verticalCorrection">-10.0dip</item>
<item name="popupLayout">@layout/keyboard_popup_keyboard</item>
</style>
Pretty simple, where it says keyTextColor, change that to whatever you want.
If you want to change the key text on the pop up or preview, that is located in /res/layout/keyboard_key_preview.
If that is all you need save and look down for the completing instructions.
Text highlight color
Do crtl + f and put (style name="TextAppearance") in the find box and click find next.
You should now be at this section.
Code:
<style name="TextAppearance">
<item name="textSize">16.0sp</item>
<item name="textStyle">normal</item>
<item name="textColor">?textColorPrimary</item>
<item name="textColorHighlight">#ffc0c0c0</item>
<item name="textColorHint">?textColorHint</item>
<item name="textColorLink">#ff5c5cff</item>
</style>
Just change the textColorHighlight to whatever color you desire.
If that is all you need save and look down for the completing instructions.
Edit Text (what shows when you type in any textfield like talk, facebook, twitter, and such)
Do crtl+F for Widget.EditText and hit find next twice.
You should now be at this area.
Code:
<style name="Widget.EditText" parent="@style/Widget">
<item name="textAppearance">?textAppearanceMediumInverse</item>
<item name="textColor">@color/primary_text_light</item>
<item name="gravity">center_vertical</item>
<item name="background">@drawable/edit_text</item>
<item name="focusable">true</item>
<item name="focusableInTouchMode">true</item>
<item name="clickable">true</item>
</style>
Where is says primary_text_light, you can change it to primary_text_dark for white text. Otherwise just do this "textColor">#ffff0000< that code is for red. Just replace with what color you want.
If you are done save and continue to finishing instructions
Lockscreen Text
This is located in the /res/layout folder as keyguard_screen_tab_unlock.xml and keyguard_screen_tab_unlock_land.xml.
To help out I have added a color values string to the text areas (they don't have them by default)
Grab the Lockscreen Text xmls.zip found at the bottom. Unzip
Open these files in a Hex editor like HxD.
Do a hex-string search of 08 00 00 1c. The first one is for a background color skip it.
The next eight are for the text on the screen. By default I have them set at FF FF FF FF for white.
Just remember in hex editing the color values are backwards. Save the files and add to your framework-res.apk.
I will add more later. Just wanted to get these out right now.
Statusbar for Music.apk
Change the .zip to .xml.
Open with hex editor like HxD.
Do a search for 08 00 00 1c, there will be two in this file.
Right now the default is for white FF FF FF FF. change to desired hex color and save.
Then place in /res/layout folder of Music.apk and push to phone.
Click to expand...
Click to collapse

[Q] change Apk Background Problem

Hello to all of you
First, I want to say my English sucks... sor....
I want to ask you some problem
I want change my settings's background.
it's style.xml backgrounds reference framework-res Theme
but I don't want change theme default background
because other apk also reference this theme
I want only change settings background
who can help me...
and can i do this? I edit settings style.xml Red lines are my edits
</style>
<style name="Theme.Holo" parent="@*android:style/Theme.DeviceDefault.Light" />
<item name="windowbackground">@*android:drawable/senc_myimg</item>
<style name="Theme.Holo.NoActionBar" parent="@*android:style/Theme.DeviceDefault.Light.NoActionBar" />
<style name="Theme.Holo.Dialog" parent="@*android:style/Theme.DeviceDefault.Light.Dialog" />
<style name="Theme.Holo.DialogWhenLarge" parent="@*android:style/Theme.DeviceDefault.Light.DialogWhenLarge">
<item name="android:directionality">true</item>
The last question @drawable/XXXXX AND @*drawable/xxxxx OR @*/@android:drawble/xxxx Difference

change Apk Background Problem.. HELP!

Hello to all of you
First, I want to say my English sucks... sor....
I want to ask you some problem
I want change my settings's background.
it's style.xml backgrounds reference framework-res Theme
but I don't want change theme default background
because other apk also reference this theme
I want only change settings background
who can help me...
and can i do this? I edit settings style.xml Red lines are my edits
</style>
<style name="Theme.Holo" parent="@*android:style/Theme.DeviceDefault.Light" />
<item name="windowbackground">@*android:drawable/senc_myimg</item>
<style name="Theme.Holo.NoActionBar" parent="@*android:style/Theme.DeviceDefault.Light.NoActionBar" />
<style name="Theme.Holo.Dialog" parent="@*android:style/Theme.DeviceDefault.Light.Dialog" />
<style name="Theme.Holo.DialogWhenLarge" parent="@*android:style/Theme.DeviceDefault.Light.DialogWhenLarge">
<item name="android:directionality">true</item>
The last question @drawable/XXXXX AND @*drawable/xxxxx OR @*/@android:drawble/xxxx Difference

Categories

Resources