yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device Development Themes and Apps] jitz975:
[MENTION=5097981]abo hani[/MENTION]

You added that code without deleting :laugh: Bro, i fixed that analog clock in black visual bug. You need to edit smali files ;)

Here is the step..

Navigate to smali\cpm\sonyericson\orgaizer\components\AnalogClock.smali

Search for this line or code "0xc1c1c2"

iget-object v0, p0, Lcom/sonyericsson/organizer/components/AnalogClock;->strokePaint:Landroid/graphics/Paint;

and change this below line

const v1, -0xc1c1c2

to this

const v1, -0x3e3e3f

Search for this line

iget-object v0, p0, Lcom/sonyericsson/organizer/components/AnalogClock;->fillPaint:Landroid/graphics/Paint;

and change this below line

const v2, -0xcccccd

to this

const v2, -0x1

Search for this line

iget-object v2, p0, Lcom/sonyericsson/organizer/components/AnalogClock;->fillPaint:Landroid/graphics/Paint;

and change this below line

const v3, -0xcccccd

to this

const v3, -0x1

Search for this line(Again same code)

iget-object v2, p0, Lcom/sonyericsson/organizer/components/AnalogClock;->fillPaint:Landroid/graphics/Paint;

and change this below line

const v3, -0xcccccd

to this

const v3, -0x1

Navigate to smali\cpm\sonyericson\orgaizer\components\AnalogTimer.smali

Search for this

iget-object v0, p0, Lcom/sonyericsson/organizer/components/AnalogTimer;->fillPaint:Landroid/graphics/Paint;

and change this below line

const v2, -0xcccccd

to this

const v2, -0x1

Search for this

iget-object v5, p0, Lcom/sonyericsson/organizer/components/AnalogTimer;->fillPaint:Landroid/graphics/Paint;

and change this below line

const v6, -0xcccccd

to this

const v6, -0x1

Navigate to smali\cpm\sonyericson\orgaizer\components\StopwatchClock.smali

Search for this

iget-object v0, p0, Lcom/sonyericsson/organizer/components/StopwatchClock;->fillPaint:Landroid/graphics/Paint;

and change this below line

const v1, -0xcccccd

to this

const v1, -0x1

This will fix that analog black bug bro :D:good:
[Sony Cross-Device Development Themes and Apps] SXUsr:
Finally, hopefully more People can make their own apps dark from now on. Never had to edit smali to make any app dark though.
[Sony Cross-Device Development Themes and Apps] jitz975:
:laugh: ya..may be this time, no pngs for clock layout. So it should be smali only ;)
[Sony Cross-Device Development Themes and Apps] whalesplaho:
nice guide brov..... keep flying high brov!!!
[Sony Cross-Device Development Themes and Apps] Hamidreza2010:
[MENTION=5097981]abo hani[/MENTION] i pressed 4 thanks button.

thanks a lot for your great tut and hope bug will fixes soon

thanks
[Sony Cross-Device Development Themes and Apps] abo hani:
Analog bug is fixed now, thanks to [MENTION=5451607]jitz975[/MENTION] .

We still have the Email & Phonebook bugs, I'm working on Email bug now.
[Sony Cross-Device Development Themes and Apps] jitz975:
Fixed that email and phonebook bug too :D

For phonebook FIX,

Navigate to res\layout\dialpad_fragment.xml

Edit this line

<RelativeLayout android:background="@color/call_button_container_color" android:clickable="true" android:layout_width="fill_parent" android:layout_height="fill_parent">

To this

<RelativeLayout android:background="#ff303030" android:clickable="true" android:layout_width="fill_parent" android:layout_height="fill_parent">

Regarding that email, i will send you pm. No time.. :( working on PhoeniX v2.
[Sony Cross-Device Development Themes and Apps] SXUsr:
I've not had to for my clock ;), depends on the look you're going for I guess, and nice to know.

I've listed some code in my Xperia guide that might be of help for the Phonebook, and you can see how it looks HERE.
[Sony Cross-Device Development Themes and Apps] abo hani:
Phonebook bug is now fixed, I'm gonna try SemcEmail now, will see if the bug is fixed or not, thanks for the big help guys! :highfive:
[Sony Cross-Device Development Themes and Apps] Norup58:
Hi,

Very nice tutorial.

Being one of the target users :) wanted to try it by testing on the Calculator app - as this one only requires 5 inputs- but have run into a snag.

Have a rooted Z3C on LP 5.1.1 (.232) and when I go to /RES folder (using ES File Explorer) there is only one folder: images - nothing else??

Unable to find colors.xml via ES search at all??

Being the Newbie what am I missing/ doing wrong??
[Sony Cross-Device Development Themes and Apps] abo hani:
You need to decompile it, not view it :p

Use AdvancedApkTool, install your framework using the tool, then decompile the apk, modify it, compile it, sign it, finally push to system and replace the existing apk.
[Sony Cross-Device Development Themes and Apps] gamzekal:
unbelievable :eek:

Can`t read:D

I am joking bro.Thanks for your hard work.This is hammer of Guide that i have ever seen before:good::good::good:

6 thanks from me
[Sony Cross-Device Development Themes and Apps] Rajeev:
Hello bro [MENTION=5097981]abo hani[/MENTION]

One small bug in settings.apk tutorial. We can't read battery history texts. Its all black. I have made a fix for that. Simply copy the xml fies to res/layout folder and re compile..

Here is the fixed files

https://drive.google.com/file/d/0BzhU-xAQX1qTa2F0ODdfZXVxRG8/view?usp=sharing
[Sony Cross-Device Development Themes and Apps] abo hani:
Thanks bro, added to the main guide :D .
[Sony Cross-Device Development Themes and Apps] SXUsr:
Are you going to include the framework-res in this guide [MENTION=5097981]abo hani[/MENTION]?
[Sony Cross-Device Development Themes and Apps] abo hani:
Yeah, soon, if you want to Contribute to the guide, i don't have any problem :) .
[Sony Cross-Device Development Themes and Apps] SXUsr:
Ok no worries. For those confident enough to now mod their own xmls after reading this great guide I've started jotting stuff down for the framework in THIS post for where you need to look to change dialog boxes, text etc until a more thorough guide is written.
[Sony Cross-Device Development Themes and Apps] abo hani:
Update :

Added New Tutorials for Clock / Phonebook / SmallAppLauncher / SemcEmail, Now you can fully theme them.

SemcEmail Days Header Isn't themed, i can't find it anywhere .

DLNA Option In Connectivity & Dual Shock Aren't themed yet, i can't find the exact APKs.

SystemUI Notifications Theming is coming tonight or tomorrow maybe.
[Sony Cross-Device Development Themes and Apps] SXUsr:
I noticed you're using hex codes for backgrounds, don't forget you can point to images instead for backgrounds which achieves a much better look than a solid colour, depending on your tastes...

...for example this is my somc_cab_top_bg_dark.xml...

<?xml version="1.0" encoding="utf-8"?>
<nine-patch android:src="@drawable/cab_background_top_holo_dark"
xmlns:android="http://schemas.android.com/apk/res/android" />

...compared to stock...

<?xml version="1.0" encoding="utf-8"?>
<shape android:shape="rectangle"
xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="?colorControlActivated" />
</shape>

...you can get the apks I've modded HERE.
[Sony Cross-Device Development Themes and Apps] FourOne82:
Awesome work, maybe this is something we can have via Xposed so we dont have edit the files after every update.
[Sony Cross-Device Development Themes and Apps] lapuckire:
Exactly, maybe I'll start working on it.
[Sony Cross-Device Development Themes and Apps] abo hani:
New Update everyone!

Now you can theme DualShock3, And Theme Connectivity Option!

Next is SystemUI, I'm having a problem with theming the text.
[Sony Cross-Device Development Themes and Apps] SXUsr:
The notification text is controlled by the framework colors.xml and/or the values in the framework styles.xml.
[Sony Cross-Device Development Themes and Apps] abo hani:
by framework styles file, but i made the Styles local in the SystemUI, and changed " android:color/light " to dark, seems making and modding it locally isn't working, so i'm gonna charge up and mod framework-res and try again.
[Sony Cross-Device Development Themes and Apps] abo hani:
Update, Now you can theme your SystemUI Notifications to darky ! Yaaay :D
[Sony Cross-Device Development Themes and Apps] Hamidreza2010:
Excellent dear

Thanks a lot

jus SemcEmail, Days BG & Sender BG In White bug not fixed yet

yes?
[Sony Cross-Device Development Themes and Apps] abo hani:
Yeah, it's fixed already

Only on Bug in Notifications, Images or buttons like Messenger notifications got " send like - Mute ' these icons are in Black, i dunno the file to modify.
[Sony Cross-Device Development Themes and Apps] SXUsr:
Told ya.

I'm focusing on editing the framework at the moment as a few mods there can eliminate having to fully theme other apps, I've not even modded the sound picker apk this time round yet it is fully dark. I've still to find the remaining dark text in notifications.
[Sony Cross-Device Development Themes and Apps] abo hani:
Yeah, but i hate the fact that framework set Light by default without the ability to modify it without modding everything, But notifications still got some bugs :

Walkman Player in Notifications background in White . ( can be solved, but gonna take a lot of time ) .

Images like ( Press Like ..etc ) are in Black or ( mark as read ) image in black .

What i'm working on :

Theming Power Menu Fully .
[Sony Cross-Device Development Themes and Apps] SXUsr:
It really is annoying, you would think by now there would be a stock option for users to choose which they like best.

<style name="Theme.DeviceDefault.Light.Dialog" parent="@style/Theme.DeviceDefault">
<item name="colorBackground">@color/background_floating_material_dark</item>
<item name="textAppearance">@style/TextAppearance.DeviceDefault</item>
<item name="textAppearanceInverse">@style/TextAppearance.DeviceDefault.Inverse</item>
<item name="windowBackground">@drawable/somc_dialog_bg_dark</item>
<item name="windowFrame">@null</item>
<item name="windowIsFloating">true</item>
<item name="windowContentOverlay">@null</item>
<item name="windowTitleStyle">@style/DialogWindowTitle.DeviceDefault</item>
<item name="windowAnimationStyle">@style/Animation.DeviceDefault.Dialog</item>
<item name="listDivider">@null</item>
<item name="windowSoftInputMode">adjustPan</item>
<item name="colorBackgroundCacheHint">@null</item>
<item name="windowActionBar">false</item>
<item name="windowActionModeOverlay">true</item>
<item name="borderlessButtonStyle">@style/Widget.DeviceDefault.Light.Button.Borderless</item>
<item name="buttonBarStyle">@style/DeviceDefault.Light.ButtonBar.AlertDialog</item>
<item name="windowCloseOnTouchOutside">@bool/config_closeDialogWhenTouchOutside</item>
<item name="listPreferredItemPaddingLeft">16.0dip</item>
<item name="listPreferredItemPaddingRight">16.0dip</item>
<item name="listPreferredItemPaddingStart">16.0dip</item>
<item name="listPreferredItemPaddingEnd">16.0dip</item>
<item name="windowElevation">@dimen/floating_window_z</item>
<item name="preferencePanelStyle">@style/PreferencePanel.Dialog</item>

...then change your somc_dialog_bg_dark.xml and somc_dialog_bg_light.xml to point at images, this is how mine looks...

<?xml version="1.0" encoding="utf-8"?>
<nine-patch android:src="@drawable/panel_bg_holo_dark"
xmlns:android="http://schemas.android.com/apk/res/android" />

...and that should do it.
[Sony Cross-Device Development Themes and Apps] abo hani:
Beside that, go to layout folder and search " global " and open the global actions files, add android:text & android:background and you will theme it also, some parts like this need to be edited from layout folder also.
[Sony Cross-Device Development Themes and Apps] SXUsr:
I've not had to touch them this time round, I'm trying to make as little mods as possible to achieve the same look I've always had in the past.
[Sony Cross-Device Development Themes and Apps] abo hani:
Ok now, Updated .. No need to worry about visual bugs in SystemUI.. Now you can completely theme SystemUI :) .
[Sony Cross-Device Development Themes and Apps] abo hani:
Added some bugs fix on SmallAppLauncher ( Menu ) and Phonebook ( Contact details ) .
[Sony Cross-Device Development Themes and Apps] adolfovm:
Calculator Background White

Hey [MENTION=5097981]abo hani[/MENTION],

A little bug I found on the calculator editing, when it loads up for a quick moment you can see the white background before the UI loads, I found it's due to the calculator theme staying as Light under the styles.xml.

I changed the line to this:

<style name="CalculatorTheme" parent="@android:style/Theme.Material.NoActionBar">

And now the background for the calc loads same color as the UI.

;)
[Sony Cross-Device Development Themes and Apps] Fuzark:
Hey! Has a easy or a dificult way to edit all that stuffs without a pc? I haven't one. I try apk editor and apktool latest version. Error and error...

??
[Sony Cross-Device Development Themes and Apps] abo hani:
Install APKtool for phones, it's out there in the forums.
[Sony Cross-Device Development Themes and Apps] Fuzark:
Tried it too.

Tried every option on settings.

2.0.0

1.5.2

Other I forget

Some apk decompile but not recompile.

Almost even't decompile.

:confused::(
[Sony Cross-Device Development Themes and Apps] abo hani:
Well Apktool for phones is a bit old now, it's not updated anymore, So that's maybe the problem ?

Anyway, working on Deskop version is a lot better, for your files just provide me the files i requested and i'm gonna make it.
[Sony Cross-Device Development Themes and Apps] NFS_FM:
One of the best guides I have ever followed! But unfortunately there are some problems:

Messages v29.2.A.0.19:

1) The Xperia transfer window remains white, while its text inverts its colour (see screenshot). Also, is it possible to change the messages colour inside the blue bubbles? I just want to see if its more readable while it's white than grey.

2) 'Push settings' inside messaging app doesn't change its colour too, is it controlled by another app?

Calculator v5.1.1-1:

3) This line exists twice in your guide with different colour setting: name="display_background_color"

Calendar v20.0.C.5.28:

4) Some problems when on landcape, check screenshot please

5) 'Refresh' window isn't themed, too.

Clock v20.0.A.24:

6) <color name="reset_button_color">#212121</color> doesn't exist inside colors.xml

7-8) button_start.xml & button_stop.xml don't exist

...

I have also included the app versions I tried to edit, to help you find the problems.

I will update if I find anything else. I don't want to offend you (I know nothing about theming), I just hope that you will be able to fix these. Thank you!
[Sony Cross-Device Development Themes and Apps] DomusX10:
Hi,

I'm very excited to read these instructions for darken lollipop too white UI...thank you very much for your effort and time. You're great.

I was wondering, would be very nice if were released a flashable zip file, so you have all the changes at once: are you going to do it at some point? :confused::fingers-crossed::fingers-crossed::fingers-crossed:

To release a zip version with all the necessary changes, flashable?:fingers-crossed::fingers-crossed:

Or better yet, the original ROM version .236 with all these changes already included .... would be wonderful. Do you think about it?

(I hope so!! :fingers-crossed::fingers-crossed:)
[Sony Cross-Device Development Themes and Apps] abo hani:
*There are no screenshots in your reply .

1) * + Messages text color inside bubbles ? i couldn't find it in xml files, So it's in a smali file maybe .

2) * .

3) Can you please post those lines ? i can't see them in my post, the value must be #232323 .

4) * .

5) * .

6) If not, ignore it .

7-8) Ignore it too .

There's no offending, it's cool, just post the screenshots :p

EDIT :

1) This isn't related to Messages i think, you should find that app who pops up the dialog .

2) same .

4-5) Check the drawable folder (dpi one) for white bgs, they may add a new way, Check colors.xml / styles.xml for any "BG/ActionBar" reference .

It can happen via Overlay, but you can't modify a single color line using Overlay, you need to modify the whole colors.xml, which may case a problem for other versions .

I have made some Dark Apps to Z1/Z1c/Z3, check my threads :) .
[Sony Cross-Device Development Themes and Apps] NFS_FM:
-The screenshots are attached, please check again, or download them from Google Drive: Messages, Calendar

-These are the lines from OP:

<color name="display_background_color">#ffffffff</color>
<color name="pad_numeric_background_color">#303030</color>
<color name="pad_operator_background_color">#525252</color>
<color name="display_formula_text_color">#6cffffff</color>
<color name="display_result_text_color">#6cffffff</color>
<color name="display_background_color">#303030</color>

As you see, the first and the last line refer to the same object

-I will try again using your recommendations thank, you.

Edit: I'm making a list of some addtions, I will upload when ready.
[Sony Cross-Device Development Themes and Apps] Metallijim:
Maybe using this guide, you might be able to find out more information on which app is causing it

http://xdaforums.com/android/themes/guide-locating-hidden-values-random-t3240308
[Sony Cross-Device Development Themes and Apps] NFS_FM:
Post was moved and updated, check this post: link
[Sony Cross-Device Development Themes and Apps] abo hani:
[MENTION=5337462]NFS_FM[/MENTION] , Thanks a lot bro!

I fixed the OP, for the bugs, it's caused by different versions, every version has different way to modify it ( new files, deleted files ) and so on, for Navigation Slider text, it's related to a line in colors.xml i guess .
[Sony Cross-Device Development Themes and Apps] NFS_FM:
You are welcome. I have also included the app versions I have modified, maybe you have worked on earlier versions. I have made some changes to Phonebook, too, I will finish them tomorrow, before checking the other apps. What navigation slider text?

Oh, and the bugs list I include after every app, is just the problems that I could not solve after my edits, not the OP ones.
[Sony Cross-Device Development Themes and Apps] abo hani:
By Navigation text, i mean Calendar's Navigation text, the one in your screenshots .

For bugs, i know that, soon i will have a free time on doing more guides / updating this, and fix the bugs .

Thanks a lot for your help :highfive:
[Sony Cross-Device Development Themes and Apps] NFS_FM:
Added some Xperia Home changes, hope you like them! Yeah, calendar has very serious issues when on landscape, not much can be done, unfortunately, I have already searched the values, but they conflict with portrait mode. Take your time, I hope there will be more guides like this!

You are welcome! :highfive:
[Sony Cross-Device Development Themes and Apps] Emperor.dk:
Great guide bro

I was looking at stackoverflow to see if there was a simple way to invert colors of drawables with some kind of filter, instead of actually invert the PNG's, eg when making a dark theme.

Found this: http://stackoverflow.com/questions/17841787/invert-colors-of-drawable-android

But can it be done in the styres.xml or the layout-XMLs too?

Anyone got any idears? :good:
[Sony Cross-Device Development Themes and Apps] NFS_FM:
Hello again, I updated my post and added some new apps. I hope you will like them!
[Sony Cross-Device Development Themes and Apps] abo hani:
I need a 4th reserved post, lol :D .

I'm going to put your reply's link, the posts are almost at their limit .
[Sony Cross-Device Development Themes and Apps] NFS_FM:
Haha, I hope that's not a problem! Anyway, I'm making some final touchups and bugfixing, so expect another update soon! Oh, and please ceck your website, it seems it's down..:(
[Sony Cross-Device Development Themes and Apps] abo hani:
Stupid domain company switched it to WWW when i renewed it, just add "www" and it will work, I will modify the domain and fix it .
[Sony Cross-Device Development Themes and Apps] Dzepar:
You can try with this

https://tapatalk.com/shareLink?url=...share_tid=3237955&share_fid=3793&share_type=t

[GUIDE][Ultimate]Theme Apps To Dark Theme | Theme Whole System | Newbies Here! 16/11

It's from these thread post no. 36 ;)

Good Luck!
[Sony Cross-Device Development Themes and Apps] litlnicky:
hi bro, awesome guide ,, small? when changing to dark ui, what happens to text colour? does it change automatically? thanks
[Sony Cross-Device Development Themes and Apps] Rajeev:
for some apps u need to change text color to white. #ffffffff
[Sony Cross-Device Development Themes and Apps] NFS_FM:
Updated my post (link), which now includes the latest Calendar version (v20.1.A.1.15), as well as the new XPERIA home (v10.0.A.0.40)!

Make sure to redownload the additions.zip file.
[Sony Cross-Device Development Themes and Apps] Masoud.Ser:
thanks

i decompile it Settings.apk deodex with AdvancedApkTool

but Does not exist styles.xml file in values

why?

my rom marshmallow 6.0

Contents in values:
[Sony Cross-Device Development Themes and Apps] NFS_FM:
As written in OP:

The same applies to Marshmallow, so the process wil be different, too.

But I guess that the file you search is located either at /values-v23, either at /values-v22 e.t.c or a similar folder. If not, I cannot help you unfortunately, as there is no official MM for the Z1.
[Sony Cross-Device Development Themes and Apps] Masoud.Ser:
no

Unfortunately Does not exist values-v23 or 22 folder or..

In any case Thank you.
[Sony Cross-Device Development Themes and Apps] NFS_FM:
Can you post a list of the folders the decompiled apk has available?
[Sony Cross-Device Development Themes and Apps] Masoud.Ser:
Go ahead:

http://d-h.st/PAp0
[Sony Cross-Device Development Themes and Apps] NFS_FM:
Thank you, it seems that the required styles.xml is just missing. I downloaded another settings.apk file from Marshmallow, which didn't have any problems so it seems that it's just a decompile error. Try decompiling once more, and if it fails, try using just apktool.
[Sony Cross-Device Development Themes and Apps] Masoud.Ser:
Sorry

Yes, you were right

The problem was Not installed SemcGenericUxpRes file

Thank you very much
[Sony Cross-Device Development Themes and Apps] Mirza_H:
icon

anyone can help?

icon-ringtone that I mark, which is located in the folder? I've been looking for, but did not see where it is located :confused:
[Sony Cross-Device Development Themes and Apps] Mirza_H:
[MENTION=5097981]abo hani[/MENTION],can u help me sir?
[Sony Cross-Device Development Themes and Apps] NFS_FM:
If I'm not wrong, you have to edit some .XMLs from framework-res.apk's drawables folder. Namely, change these lines:

android:fillColor="#cecece" to ic_audio_ring_notif_mute.xml, ic_audio_ring_notif.xml, ic_audio_ring_notif_vibrate.xml
[Sony Cross-Device Development Themes and Apps] Mirza_H:
thank you sir, I forgot to open your page in this thread problem solved :) :good:
[Sony Cross-Device Development Themes and Apps] NFS_FM:
Your welcome, sorry for the late reply nonetheless.
[Sony Cross-Device Development Themes and Apps] Mirza_H:
it's okay, but I was curious about the steps in this section :

resolver_list.xml

all android:background="@color/white" to android:background="#303030"

find android:id="@id/title" and modify after <TextView: android:textAppearance="?textAppearanceMediumInver se" android:textColor="#ffffffff" android:id="@id/title"

resolver_different_item_header.xml

modify after <TextView: android:textAppearance="?textAppearanceMediumInver se", android:background="#303030"

resolve_list_item.xml

android:background="?activatedBackgroundIndicator" to android:background="#303030"

android:textColor="?textColorPrimary" to android:textColor="#ffffffff"

android:textAppearance="?textAppearanceMedium" to android:textAppearance="?textAppearanceMediumInver se"

android:textAppearance="?textAppearanceSmall" to android:textAppearance="?textAppearanceSmallInvers e"

resolver_list_with_default.xml

all android:background="@color/white" to android:background="#303030"

android:background="?dividerVertical" to android:background="#4d4d4d"

android:textAppearance="?textAppearanceMedium" to android:textAppearance="?textAppearanceMediumInver se"

add android:textColor="#ffffffff" after the previous line

are it is a step function to set the text and background in the power menu?

because I've followed the steps but nothing changed