[Sony Cross-Device Development Themes and Apps] levone1:
Resources :

ApktoolX - https://www.androidfilehost.com/?a=show&w=files&flid=66185

Mixplorer - https://xdaforums.com/showthread.php?t=1523691

Quickedit - https://play.google.com/store/apps/...medium=organic&utm_term=quickedit+google+play

Android Color Tool - http://tutorial-aide.blogspot.co.id/2015/11/android-color-tool.html?m=1

Lunapic, (helpful for changing colors etc. of pngs) - http://www.lunapic.com/

Toast:

Here's how toast works: in framework-res apk/res/drawable-xhdpi, there is a file called 'toast_frame.9.png'. Then in framework-res apk/res/values/styles.xml, there are several references to that file, to be used as a background in various instances of a toast message. So, to customize toast, you can either change the toast_frame png to something else, or change the target file in styles xml references from 'toast_frame.png' to something else. The first way might be trickier, since the png is a 9patch, so you can't just use any picture you want, unless you convert it to a 9patch, and it has to be the right dimensions, or it will look funny. I prefer the second way. The toast text color is controlled by an entry in /res/values/colors.xml called 'background_light'.

Here's what I did -

1. Decompile framework-res with ApktoolX.

2. Create an xml that describes a shape and name it 'bg1', (for example), and add it to /res/drawable folder.

3. Change all references to '@drawable/toast_frame' in styles to '@drawable/bg1'.

4. Change value of 'background_light' in res/values/colors.xml from '#ffffffff' to whatever you want.

5. Recompile, and add META-INF folder and android manifest file from original apk the the new apk, using Mixplorer copy/paste, and move the new apk to /system/framework with permissions 644, and reboot.

Note - styles xml file is usually 5,000+ lines, so most android file manager apps can't handle it too well. I recommend Quickedit; use search function.

I attached my bg1 xml if you want

...

Menus:

Credit to XperienceD here - https://xdaforums.com/showpost.php?p=68884228&postcount=161 - I just elaborated a little.

The drop-down, (3 dot), menus are controlled by the last 6 of the 8 files mentioned in the above link. 2 of them, (somc drop-down panel dark, and somc drop-down panel light), reference a drawable. You can simply change which drawable you want to call on, (bg1, for example, instead of whatever it says). There are 2 instances in each file, so change both. Keep in mind that the reason there is a dark and a light is that if the framework senses an app that's themed light, it will use dark text, and vice versa, so you should have 2 different drawables, (bg1 and bg2, for example), one with a light background and one's with a dark, (screenshots). The remaining 4 files, (somc_dropdown_panel_down_dark, somc_dropdown_panel_down_light, somc_dropdown_panel_up_dark, somc_dropdown_panel_up_light), don't reference a separate drawable, but are written as shape drawables themselves, so you can just edit them to match your bg1 and bg2. Keep in mind again about the dark and light.

I attached my menu_bg1 and menu_bg2.

Dialogs:

Dialogs are controlled by the first 2 of the 8 files mentioned above, (somc_dialog_bg_dark and somc_dialog_bg_light). If you follow the instructions to mod styles xml file, (in XperienceD's post above), it will make all system dialogs dark, (calling for light text), so you can use the same file for both. I just used my menu_bg1, (screenshots). Power menu icons may have to be edited to be light color, and power menu text color is in global actions item xml in layout folder. Easiest thing is to use alternative power menu, (APM + or Gravity Box or something).

Note that the text color is controlled by varying files, sometimes in the layout or drawable xml, sometimes in styles. Experiment.