Hi @all,i just decompiled my framework with apkmanager and modified stat_sys_battery.xml. Now it's like this:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<level-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/stat_sys_battery_0" android:maxLevel="0" />
<item android:drawable="@drawable/stat_sys_battery_1" android:maxLevel="1" />
<item android:drawable="@drawable/stat_sys_battery_2" android:maxLevel="2" />
<item android:drawable="@drawable/stat_sys_battery_3" android:maxLevel="3" />
<item android:drawable="@drawable/stat_sys_battery_4" android:maxLevel="4" />
<item android:drawable="@drawable/stat_sys_battery_5" android:maxLevel="5" />
<item android:drawable="@drawable/stat_sys_battery_6" android:maxLevel="6" />
<item android:drawable="@drawable/stat_sys_battery_7" android:maxLevel="7" />
<item android:drawable="@drawable/stat_sys_battery_8" android:maxLevel="8" />
<item android:drawable="@drawable/stat_sys_battery_9" android:maxLevel="9" />
<item android:drawable="@drawable/stat_sys_battery_10" android:maxLevel="10" />
<item android:drawable="@drawable/stat_sys_battery_11" android:maxLevel="11" />
<item android:drawable="@drawable/stat_sys_battery_12" android:maxLevel="12" />
<item android:drawable="@drawable/stat_sys_battery_13" android:maxLevel="13" />
<item android:drawable="@drawable/stat_sys_battery_14" android:maxLevel="14" />
<item android:drawable="@drawable/stat_sys_battery_15" android:maxLevel="15" />
<item android:drawable="@drawable/stat_sys_battery_16" android:maxLevel="16" />
<item android:drawable="@drawable/stat_sys_battery_17" android:maxLevel="17" />
<item android:drawable="@drawable/stat_sys_battery_18" android:maxLevel="18" />
<item android:drawable="@drawable/stat_sys_battery_19" android:maxLevel="19" />
<item android:drawable="@drawable/stat_sys_battery_20" android:maxLevel="20" />
<item android:drawable="@drawable/stat_sys_battery_21" android:maxLevel="21" />
<item android:drawable="@drawable/stat_sys_battery_22" android:maxLevel="22" />
<item android:drawable="@drawable/stat_sys_battery_23" android:maxLevel="23" />
<item android:drawable="@drawable/stat_sys_battery_24" android:maxLevel="24" />
<item android:drawable="@drawable/stat_sys_battery_25" android:maxLevel="25" />
<item android:drawable="@drawable/stat_sys_battery_26" android:maxLevel="26" />
<item android:drawable="@drawable/stat_sys_battery_27" android:maxLevel="27" />
<item android:drawable="@drawable/stat_sys_battery_28" android:maxLevel="28" />
<item android:drawable="@drawable/stat_sys_battery_29" android:maxLevel="29" />
<item android:drawable="@drawable/stat_sys_battery_30" android:maxLevel="30" />
<item android:drawable="@drawable/stat_sys_battery_31" android:maxLevel="31" />
<item android:drawable="@drawable/stat_sys_battery_32" android:maxLevel="32" />
<item android:drawable="@drawable/stat_sys_battery_33" android:maxLevel="33" />
<item android:drawable="@drawable/stat_sys_battery_34" android:maxLevel="34" />
<item android:drawable="@drawable/stat_sys_battery_35" android:maxLevel="35" />
<item android:drawable="@drawable/stat_sys_battery_36" android:maxLevel="36" />
<item android:drawable="@drawable/stat_sys_battery_37" android:maxLevel="37" />
<item android:drawable="@drawable/stat_sys_battery_38" android:maxLevel="38" />
<item android:drawable="@drawable/stat_sys_battery_39" android:maxLevel="39" />
<item android:drawable="@drawable/stat_sys_battery_40" android:maxLevel="40" />
<item android:drawable="@drawable/stat_sys_battery_41" android:maxLevel="41" />
<item android:drawable="@drawable/stat_sys_battery_42" android:maxLevel="42" />
<item android:drawable="@drawable/stat_sys_battery_43" android:maxLevel="43" />
<item android:drawable="@drawable/stat_sys_battery_44" android:maxLevel="44" />
<item android:drawable="@drawable/stat_sys_battery_45" android:maxLevel="45" />
<item android:drawable="@drawable/stat_sys_battery_46" android:maxLevel="46" />
<item android:drawable="@drawable/stat_sys_battery_47" android:maxLevel="47" />
<item android:drawable="@drawable/stat_sys_battery_48" android:maxLevel="48" />
<item android:drawable="@drawable/stat_sys_battery_49" android:maxLevel="49" />
<item android:drawable="@drawable/stat_sys_battery_50" android:maxLevel="50" />
<item android:drawable="@drawable/stat_sys_battery_51" android:maxLevel="51" />
<item android:drawable="@drawable/stat_sys_battery_52" android:maxLevel="52" />
<item android:drawable="@drawable/stat_sys_battery_53" android:maxLevel="53" />
<item android:drawable="@drawable/stat_sys_battery_54" android:maxLevel="54" />
<item android:drawable="@drawable/stat_sys_battery_55" android:maxLevel="55" />
<item android:drawable="@drawable/stat_sys_battery_56" android:maxLevel="56" />
<item android:drawable="@drawable/stat_sys_battery_57" android:maxLevel="57" />
<item android:drawable="@drawable/stat_sys_battery_58" android:maxLevel="58" />
<item android:drawable="@drawable/stat_sys_battery_59" android:maxLevel="59" />
<item android:drawable="@drawable/stat_sys_battery_60" android:maxLevel="60" />
<item android:drawable="@drawable/stat_sys_battery_61" android:maxLevel="61" />
<item android:drawable="@drawable/stat_sys_battery_62" android:maxLevel="62" />
<item android:drawable="@drawable/stat_sys_battery_63" android:maxLevel="63" />
<item android:drawable="@drawable/stat_sys_battery_64" android:maxLevel="64" />
<item android:drawable="@drawable/stat_sys_battery_65" android:maxLevel="65" />
<item android:drawable="@drawable/stat_sys_battery_66" android:maxLevel="66" />
<item android:drawable="@drawable/stat_sys_battery_67" android:maxLevel="67" />
<item android:drawable="@drawable/stat_sys_battery_68" android:maxLevel="68" />
<item android:drawable="@drawable/stat_sys_battery_69" android:maxLevel="69" />
<item android:drawable="@drawable/stat_sys_battery_70" android:maxLevel="70" />
<item android:drawable="@drawable/stat_sys_battery_71" android:maxLevel="71" />
<item android:drawable="@drawable/stat_sys_battery_72" android:maxLevel="72" />
<item android:drawable="@drawable/stat_sys_battery_73" android:maxLevel="73" />
<item android:drawable="@drawable/stat_sys_battery_74" android:maxLevel="74" />
<item android:drawable="@drawable/stat_sys_battery_75" android:maxLevel="75" />
<item android:drawable="@drawable/stat_sys_battery_76" android:maxLevel="76" />
<item android:drawable="@drawable/stat_sys_battery_77" android:maxLevel="77" />
<item android:drawable="@drawable/stat_sys_battery_78" android:maxLevel="78" />
<item android:drawable="@drawable/stat_sys_battery_79" android:maxLevel="79" />
<item android:drawable="@drawable/stat_sys_battery_80" android:maxLevel="80" />
<item android:drawable="@drawable/stat_sys_battery_81" android:maxLevel="81" />
<item android:drawable="@drawable/stat_sys_battery_82" android:maxLevel="82" />
<item android:drawable="@drawable/stat_sys_battery_83" android:maxLevel="83" />
<item android:drawable="@drawable/stat_sys_battery_84" android:maxLevel="84" />
<item android:drawable="@drawable/stat_sys_battery_85" android:maxLevel="85" />
<item android:drawable="@drawable/stat_sys_battery_86" android:maxLevel="86" />
<item android:drawable="@drawable/stat_sys_battery_87" android:maxLevel="87" />
<item android:drawable="@drawable/stat_sys_battery_88" android:maxLevel="88" />
<item android:drawable="@drawable/stat_sys_battery_89" android:maxLevel="89" />
<item android:drawable="@drawable/stat_sys_battery_90" android:maxLevel="90" />
<item android:drawable="@drawable/stat_sys_battery_91" android:maxLevel="91" />
<item android:drawable="@drawable/stat_sys_battery_92" android:maxLevel="92" />
<item android:drawable="@drawable/stat_sys_battery_93" android:maxLevel="93" />
<item android:drawable="@drawable/stat_sys_battery_94" android:maxLevel="94" />
<item android:drawable="@drawable/stat_sys_battery_95" android:maxLevel="95" />
<item android:drawable="@drawable/stat_sys_battery_96" android:maxLevel="96" />
<item android:drawable="@drawable/stat_sys_battery_97" android:maxLevel="97" />
<item android:drawable="@drawable/stat_sys_battery_98" android:maxLevel="98" />
<item android:drawable="@drawable/stat_sys_battery_99" android:maxLevel="99" />
<item android:drawable="@drawable/stat_sys_battery_100" android:maxLevel="100" />
</level-list>
. Recompiled with apkmanager,flashed framework but i can't see battery icons in statusbar,but in the framework there are all of the 100 pngs of battery icons. Do i need to delete resources.arsc before recompiling?
ciaox said:
Hi @all,i just decompiled my framework with apkmanager and modified stat_sys_battery.xml. Now it's like this:
Recompiled with apkmanager,flashed framework but i can't see battery icons in statusbar,but in the framework there are all of the 100 pngs of battery icons. Do i need to delete resources.arsc before recompiling?
Click to expand...
Click to collapse
no need to delete anything.
make zzz_stat_sys_battery_1.xml same as stat_sys_battery.xml
and use Apk Manager 4.8 (not 4.9)
Thanks,but where i can find apkmanager 4.8? i only find 4.9. And BTW,i don't have any zzz_stat_sys_battery_1.xml,i only have stat_sys_battery.xml.
Up. (((((((())))))
mendozinas said:
no need to delete anything.
make zzz_stat_sys_battery_1.xml same as stat_sys_battery.xml
and use Apk Manager 4.8 (not 4.9)
Click to expand...
Click to collapse
Would you have to do this for like everything you do in XML files?
Like:
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="200" android:drawable="@drawable/stat_sys_upload_anim0" />
<item android:duration="200" android:drawable="@drawable/stat_sys_upload_anim1" />
<item android:duration="200" android:drawable="@drawable/stat_sys_upload_anim2" />
<item android:duration="200" android:drawable="@drawable/stat_sys_upload_anim3" />
<item android:duration="200" android:drawable="@drawable/stat_sys_upload_anim4" />
<item android:duration="200" android:drawable="@drawable/stat_sys_upload_anim5" />
</animation-list>
Or:
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<level-list
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:maxLevel="14">
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="2000" android:drawable="@drawable/stat_sys_battery_charge_anim0" />
<item android:duration="1000" android:drawable="@drawable/stat_sys_battery_charge_anim1" />
<item android:duration="1000" android:drawable="@drawable/stat_sys_battery_charge_anim2" />
<item android:duration="1000" android:drawable="@drawable/stat_sys_battery_charge_anim3" />
<item android:duration="1000" android:drawable="@drawable/stat_sys_battery_charge_anim4" />
<item android:duration="1000" android:drawable="@drawable/stat_sys_battery_charge_anim5" />
</animation-list>
</item>
<item android:maxLevel="29">
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="2000" android:drawable="@drawable/stat_sys_battery_charge_anim1" />
<item android:duration="1000" android:drawable="@drawable/stat_sys_battery_charge_anim2" />
<item android:duration="1000" android:drawable="@drawable/stat_sys_battery_charge_anim3" />
<item android:duration="1000" android:drawable="@drawable/stat_sys_battery_charge_anim4" />
<item android:duration="1000" android:drawable="@drawable/stat_sys_battery_charge_anim5" />
</animation-list>
</item>
<item android:maxLevel="49">
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="2000" android:drawable="@drawable/stat_sys_battery_charge_anim2" />
<item android:duration="1000" android:drawable="@drawable/stat_sys_battery_charge_anim3" />
<item android:duration="1000" android:drawable="@drawable/stat_sys_battery_charge_anim4" />
<item android:duration="1000" android:drawable="@drawable/stat_sys_battery_charge_anim5" />
</animation-list>
</item>
<item android:maxLevel="69">
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="2000" android:drawable="@drawable/stat_sys_battery_charge_anim3" />
<item android:duration="1000" android:drawable="@drawable/stat_sys_battery_charge_anim4" />
<item android:duration="1000" android:drawable="@drawable/stat_sys_battery_charge_anim5" />
</animation-list>
</item>
<item android:maxLevel="89">
<animation-list android:oneshot="false"
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:duration="2000" android:drawable="@drawable/stat_sys_battery_charge_anim4" />
<item android:duration="1000" android:drawable="@drawable/stat_sys_battery_charge_anim5" />
</animation-list>
</item>
<item android:drawable="@drawable/stat_sys_battery_charge_anim5" android:maxLevel="101" />
</level-list>
Sorry man i can't understand very well english. How can i fix this ugly trouble???
I'm working on fix from almost one week,and got nothing. Help guys this is really important.
Up..
Sent from my LG Optimus One P500 using Tapatalk
I did this on the Eris a while back... Yes, you have to delete resources.arsc before recompiling...
Sent from my Ginger Tazz using XDA App
Macrodroid said:
I did this on the Eris a while back... Yes, you have to delete resources.arsc before recompiling...
Sent from my Ginger Tazz using XDA App
Click to expand...
Click to collapse
Does that extend to framework-res.apk too? Isd that why I get a boot loop if I drop a replacement xml file in?
rootSU said:
Does that extend to framework-res.apk too? Isd that why I get a boot loop if I drop a replacement xml file in?
Click to expand...
Click to collapse
I get the same thing... I've been searching for an answer till this day
Chinam4n said:
I get the same thing... I've been searching for an answer till this day
Click to expand...
Click to collapse
Ive been looking at this:
http://forum.xda-developers.com/showthread.php?t=916814
Particularly post 2
All I need to do is put progress_horizontal.xml into my new theme but even with apk manager decompile and compile, I get a boot loop.
I did the whole delete the modified files from "keep" folder and resources.arsc but no joy.
Dont really know what I am doing.
I know it worked on my previous framework, when mendozinas (UOT) ported it from a theme chooser apk.
Now I just want to move it over to the new framework. There aare alternative progress bar images. I assume all that is needed is the xml, but just cannot do it.
rootSU said:
Ive been looking at this:
http://forum.xda-developers.com/showthread.php?t=916814
Particularly post 2
All I need to do is put progress_horizontal.xml into my new theme but even with apk manager decompile and compile, I get a boot loop.
I did the whole delete the modified files from "keep" folder and resources.arsc but no joy.
Dont really know what I am doing.
I know it worked on my previous framework, when mendozinas (UOT) ported it from a theme chooser apk.
Now I just want to move it over to the new framework. There aare alternative progress bar images. I assume all that is needed is the xml, but just cannot do it.
Click to expand...
Click to collapse
I tried to just make simple edits in the XML, like the battery stats, even adding the "zzz" file I receive a bootloop.
Can someone tell me what line to edit to enable you to surf the internet on 4g while you talk on the phone?
I'm assuming it's one of these items but I'm not sure which.
<item type="boolean" name="isidda_device">false</item>
<item type="string" name="original_sense_version">5.5</item>
<item type="integer" name="radio_type">8</item>
<item type="integer" name="region">1</item>
<item type="string" name="sense_version">6.0</item>
<item type="boolean" name="single_modem_dsda_device">false</item>
<item type="integer" name="sku_id">10</item>
<item type="boolean" name="support_3lm">false</item>
<item type="boolean" name="support_beats_audio">true</item>
<item type="boolean" name="support_boomsound_effect">true</item>
<item type="boolean" name="support_cb_on_dual">false</item>
<item type="boolean" name="support_dlna">true</item>
<item type="boolean" name="support_dual_sim">false</item>
<item type="boolean" name="support_fingerprint">true</item>
<item type="boolean" name="support_hide_select_runtime">true</item>
<item type="boolean" name="support_ir">true</item>
<item type="boolean" name="support_lte">true</item>
<item type="boolean" name="support_music_channel">false</item>
<item type="boolean" name="support_sim_card">true</item>
<item type="boolean" name="support_vmware">false</item>
<item type="boolean" name="support_Wifioffload">false</item>
<item type="boolean" name="support_wimax">false</item>
<item type="boolean" name="use_stock_ui">false</item>
<item type="integer" name="vibration_duration">20</item>
<item type="boolean" name="wifi_only">false</item>
I am trying to do so via this method:
Code:
style="@style/SpinnerTextViewStyle"
And I have this in one of the style.xml files created by default when I created the project.
Code:
<style name="SpinnerTextViewStyle">
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:textColor">#0000aa</item>
<item name="android:textSize">16dp</item>
<item name="android:background">#ffffff</item>
<item name="android:padding">5dp</item>
</style>
This
Code:
<item name="android:background">#ffffff</item>
seems to work in the textview part but
Code:
<item name="android:textColor">#0000aa</item>
is totally ignored.
There must be some way of doing this!
- Decompile Mms.apk
- Go to …res/values/
STYLES.XML
TAMBAHKAN (add)
<style name="ActionBar" parent="@*android:style/Widget.Holo.ActionBar.Solid">
<item name="android:background">@android:drawable/ab_solid_dark_holo</item>
<item name="android:actionModeBackground">@android:drawable/ab_transparent_dark_holo</item>
<item name="android:displayOptions">showTitle</item>
<item name="android:titleTextStyle">@style/ActionBarTitleText</item>
<item name="android:subtitleTextStyle">@style/ActionBarSubtitleText</item>
<item name="android:icon">@android:color/transparent</item>
</style>
<style name="ActionBarTitleText">
<item name="android:textColor">#ffffffff</item>
<item name="android:textSize">20.0sp</item>
</style>
<style name="ActionBarSubtitleText" parent="@*android:style/TextAppearance.Holo.Widget.ActionBar.Subtitle">
<item name="android:textColor">#ffffffff</item>
</style>
<style name="WidgetSubtitle" parent="@*android:style/TextAppearance.Holo.Widget.ActionBar.Subtitle.Inverse">
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ff999999</item>
<item name="android:singleLine">true</item>
</style>
UBAH (change)
<style name="MmsHoloTheme" parent="@android:style/Theme.Holo.Light" />
JADI (to)
<style name="MmsHoloTheme" parent="@*android:style/Theme.Holo">
<item name="android:windowBackground">@android:drawable/background_holo_dark</item>
<item name="android:actionBarStyle">@style/ActionBar</item>
<item name="android:actionModeBackground">@android:drawable/ab_transparent_dark_holo</item>
<item name="android:homeAsUpIndicator">@drawable/back</item>
<item name="android:editTextStyle">@style/Widget.Holo.EditText.Mms</item>
<item name="android:textColorLink">#ffbc2727</item>
<item name="android:windowTranslucentStatus">true</item>
<item name="android:windowTranslucentNavigation">true</item>
<item name="android:fitsSystemWindows">true</item>
</style>
<style name="Widget.Holo.EditText.Mms" parent="@*android:style/Widget.EditText">
<item name="android:textAppearance">?android:textAppearanceMediumInverse</item>
<item name="android:gravity">center_vertical</item>
<item name="android:focusable">true</item>
<item name="android:focusableInTouchMode">true</item>
<item name="android:clickable">true</item>
</style>
COMPARE
<style name="WidgetTitle" parent="@*android:style/TextAppearance.Holo.Widget.ActionBar.Title">
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ff777777</item>
COLORS.XML
TAMBAHKAN (add)
<color name="delivery_report_header">#ffffffff</color>
<color name="delivery_report_recipient">#ffffffff</color>
<color name="delivery_report_status">#ffffffff</color>
<color name="delivery_report_date">#ffffffff</color>
<color name="darkgray_backgrounds">#ff131313</color>
COMPARE
<color name="action_bar_button_text_color">#ffffffff</color>
<color name="compose_message_edit_text">#ffffffff</color>
<color name="compose_message_text_counter">#cccccccc</color>
<color name="actionbar_text">#ccffffff</color>
<color name="delete_thread_dialog">#ffffffff</color>
<color name="button_text">#ffffffff</color>
<color name="message_received">#ffffffff</color>
<color name="message_sent">#ffefefef</color>
<color name="widget_unread_text">#ff777777</color>
<color name="widget_loading">#ffffffff</color>
<color name="background">#ff070707</color>
<color name="dividers">#ff131313</color>
<color name="text_hairline">#ff999999</color>
<color name="message_count_color">#66eeeeee</color>
<color name="timestamp_color">#bfe7e7e7</color>
<color name="unread_bgcolor">#80222222</color>
<color name="read_bgcolor">#00000000</color>
<color name="text_shadow_color_light">#33ffffff</color>
- Save
- Download Bahan-Mms_src.zip
- Extract and Merge
- Recompile
- Done
Credits:
- pierx
- zhalx
Screenshot
Awesome brother ,.
@DSttr said:
Awesome brother ,.
Click to expand...
Click to collapse
Thanx brother
Hi all iam apk5656 with my guide here i will explain how to turn on black/light theme on your android device
i tested it on my gb vista v7 jb rom but i dont know if this will work on 4.0+
ok lets start
there are to themes skins the black one and the light one in your framework-res
the black one is helpful if you want to theme your framework-res to jb/ics style
and the light one is helpful if you want to theme your framework-res to kk/lolipop light style
if you want to turn on light/black theme just continue with my guide here
turn on the the black one example in settings.apk
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
decompile your framework-res and navigate to res/values/styles.xml
open it and search for <style name="Theme.Light" parent="@style/Theme"> (if you didnt find it search for <style name="Theme"> )
and you will find codes like this
Code:
<style name="Theme.Light" parent="@style/Theme">
<item name="colorForeground">@color/bright_foreground_light</item>
<item name="colorBackground">@color/background_light</item>
<item name="textColorPrimary">@color/primary_text_light</item>
<item name="textColorPrimaryDisableOnly">@color/primary_text_light_disable_only</item>
<item name="textColorSecondary">@color/secondary_text_light</item>
<item name="textColorPrimaryInverse">@color/primary_text_dark</item>
<item name="textColorSecondaryInverse">@color/secondary_text_dark</item>
<item name="textColorPrimaryNoDisable">@color/primary_text_light_nodisable</item>
<item name="textColorSecondaryNoDisable">@color/secondary_text_light_nodisable</item>
<item name="textColorPrimaryInverseNoDisable">@color/primary_text_dark_nodisable</item>
<item name="textColorSecondaryInverseNoDisable">@color/secondary_text_dark_nodisable</item>
<item name="textColorHintInverse">@color/hint_foreground_dark</item>
<item name="textCheckMark">@drawable/indicator_check_mark_light</item>
<item name="textCheckMarkInverse">@drawable/indicator_check_mark_dark</item>
<item name="windowBackground">@drawable/screen_background_light</item>
<item name="expandableListViewStyle">@style/Widget.ExpandableListView.White</item>
<item name="listViewStyle">@style/Widget.ListView.White</item>
<item name="popupWindowStyle">@style/Widget.PopupWindow</item>
<item name="progressBarStyle">@style/Widget.ProgressBar.Inverse</item>
<item name="progressBarStyleSmall">@style/Widget.ProgressBar.Small.Inverse</item>
<item name="progressBarStyleLarge">@style/Widget.ProgressBar.Large.Inverse</item>
<item name="textColorHint">@color/hint_foreground_light</item>
<item name="colorForegroundInverse">@color/bright_foreground_light_inverse</item>
<item name="listSeparatorTextViewStyle">@style/Widget.TextView.ListSeparator.White</item>
<item name="textColorTertiary">@color/tertiary_text_light</item>
<item name="textColorTertiaryInverse">@color/tertiary_text_dark</item>
<item name="listDivider">@drawable/divider_horizontal_bright</item>
<item name="progressBarStyleInverse">@style/Widget.ProgressBar</item>
<item name="progressBarStyleSmallInverse">@style/Widget.ProgressBar.Small</item>
<item name="progressBarStyleLargeInverse">@style/Widget.ProgressBar.Large</item>
<item name="textColorPrimaryInverseDisableOnly">@color/primary_text_dark_disable_only</item>
<item name="gestureOverlayViewStyle">@style/Widget.GestureOverlayView.White</item>
</style>
just make it look like this one but dont copy my whole xml just compare it
Code:
<style name="Theme.Light" parent="@style/Theme">
<item name="colorForeground">@color/bright_foreground_light</item>
<item name="colorBackground">@color/transparent</item>
<item name="textColorPrimary">@color/primary_text_dark</item>
<item name="textColorPrimaryDisableOnly">@color/primary_text_dark_disable_only</item>
<item name="textColorSecondary">@color/secondary_text_dark</item>
<item name="textColorPrimaryInverse">@color/primary_text_light</item>
<item name="textColorSecondaryInverse">@color/secondary_text_light</item>
<item name="textColorPrimaryNoDisable">@color/primary_text_dark_nodisable</item>
<item name="textColorSecondaryNoDisable">@color/secondary_text_dark_nodisable</item>
<item name="textColorPrimaryInverseNoDisable">@color/primary_text_light_nodisable</item>
<item name="textColorSecondaryInverseNoDisable">@color/secondary_text_light_nodisable</item>
<item name="textColorHintInverse">@color/hint_foreground_light</item>
<item name="textCheckMark">@drawable/indicator_check_mark_dark</item>
<item name="textCheckMarkInverse">@drawable/indicator_check_mark_light</item>
<item name="windowBackground">@drawable/screen_background_light</item></item>
<item name="expandableListViewStyle">@style/Widget.ExpandableListView.White</item>
<item name="listViewStyle">@style/Widget.ListView.White</item>
<item name="popupWindowStyle">@style/Widget.PopupWindow</item>
<item name="progressBarStyle">@style/Widget.ProgressBar.Inverse</item>
<item name="progressBarStyleSmall">@style/Widget.ProgressBar.Small.Inverse</item>
<item name="progressBarStyleLarge">@style/Widget.ProgressBar.Large.Inverse</item>
<item name="textColorHint">@color/hint_foreground_light</item>
<item name="colorForegroundInverse">@color/bright_foreground_light_inverse</item>
<item name="listSeparatorTextViewStyle">@style/Widget.TextView.ListSeparator.White</item>
<item name="textColorTertiary">@color/tertiary_text_light</item>
<item name="textColorTertiaryInverse">@color/tertiary_text_dark</item>
<item name="listDivider">@drawable/divider_horizontal_bright</item>
<item name="progressBarStyleInverse">@style/Widget.ProgressBar</item>
<item name="progressBarStyleSmallInverse">@style/Widget.ProgressBar.Small</item>
<item name="progressBarStyleLargeInverse">@style/Widget.ProgressBar.Large</item>
<item name="textColorPrimaryInverseDisableOnly">@color/primary_text_dark_disable_only</item>
<item name="gestureOverlayViewStyle">@style/Widget.GestureOverlayView.White</item>
</style>
now recompile your framework-res and push it to your system/framework folder and give it the right permissions and tada you turned on the black theme
turn on the the light one example in settings.apk
decompile your framework-res and navigate to the same file (styles.xml)
open it and search for <style name="Theme.Light" parent="@style/Theme"> (if you didnt find it search for <style name="Theme"> )
and you will find codes like this
Code:
<style name="Theme.Light" parent="@style/Theme">
<item name="colorForeground">@color/bright_foreground_light</item>
<item name="colorBackground">@color/transparent</item>
<item name="textColorPrimary">@color/primary_text_dark</item>
<item name="textColorPrimaryDisableOnly">@color/primary_text_dark_disable_only</item>
<item name="textColorSecondary">@color/secondary_text_dark</item>
<item name="textColorPrimaryInverse">@color/primary_text_light</item>
<item name="textColorSecondaryInverse">@color/secondary_text_light</item>
<item name="textColorPrimaryNoDisable">@color/primary_text_dark_nodisable</item>
<item name="textColorSecondaryNoDisable">@color/secondary_text_dark_nodisable</item>
<item name="textColorPrimaryInverseNoDisable">@color/primary_text_light_nodisable</item>
<item name="textColorSecondaryInverseNoDisable">@color/secondary_text_light_nodisable</item>
<item name="textColorHintInverse">@color/hint_foreground_light</item>
<item name="textCheckMark">@drawable/indicator_check_mark_dark</item>
<item name="textCheckMarkInverse">@drawable/indicator_check_mark_light</item>
<item name="windowBackground">@drawable/screen_background_light</item>
<item name="expandableListViewStyle">@style/Widget.ExpandableListView.White</item>
<item name="listViewStyle">@style/Widget.ListView.White</item>
<item name="popupWindowStyle">@style/Widget.PopupWindow</item>
<item name="progressBarStyle">@style/Widget.ProgressBar.Inverse</item>
<item name="progressBarStyleSmall">@style/Widget.ProgressBar.Small.Inverse</item>
<item name="progressBarStyleLarge">@style/Widget.ProgressBar.Large.Inverse</item>
<item name="textColorHint">@color/hint_foreground_light</item>
<item name="colorForegroundInverse">@color/bright_foreground_light_inverse</item>
<item name="listSeparatorTextViewStyle">@style/Widget.TextView.ListSeparator.White</item>
<item name="textColorTertiary">@color/tertiary_text_light</item>
<item name="textColorTertiaryInverse">@color/tertiary_text_dark</item>
<item name="listDivider">@drawable/divider_horizontal_bright</item>
<item name="progressBarStyleInverse">@style/Widget.ProgressBar</item>
<item name="progressBarStyleSmallInverse">@style/Widget.ProgressBar.Small</item>
<item name="progressBarStyleLargeInverse">@style/Widget.ProgressBar.Large</item>
<item name="textColorPrimaryInverseDisableOnly">@color/primary_text_dark_disable_only</item>
<item name="gestureOverlayViewStyle">@style/Widget.GestureOverlayView.White</item>
</style>
just make it look like this one but dont copy my whole xml just compare it
Code:
<style name="Theme.Light" parent="@style/Theme">
<item name="colorForeground">@color/bright_foreground_light</item>
<item name="colorBackground">@color/background_light</item>
<item name="textColorPrimary">@color/primary_text_light</item>
<item name="textColorPrimaryDisableOnly">@color/primary_text_light_disable_only</item>
<item name="textColorSecondary">@color/secondary_text_light</item>
<item name="textColorPrimaryInverse">@color/primary_text_dark</item>
<item name="textColorSecondaryInverse">@color/secondary_text_dark</item>
<item name="textColorPrimaryNoDisable">@color/primary_text_light_nodisable</item>
<item name="textColorSecondaryNoDisable">@color/secondary_text_light_nodisable</item>
<item name="textColorPrimaryInverseNoDisable">@color/primary_text_dark_nodisable</item>
<item name="textColorSecondaryInverseNoDisable">@color/secondary_text_dark_nodisable</item>
<item name="textColorHintInverse">@color/hint_foreground_dark</item>
<item name="textCheckMark">@drawable/indicator_check_mark_light</item>
<item name="textCheckMarkInverse">@drawable/indicator_check_mark_dark</item>
<item name="windowBackground">@drawable/screen_background_dark</item>
<item name="expandableListViewStyle">@style/Widget.ExpandableListView.White</item>
<item name="listViewStyle">@style/Widget.ListView.White</item>
<item name="popupWindowStyle">@style/Widget.PopupWindow</item>
<item name="progressBarStyle">@style/Widget.ProgressBar.Inverse</item>
<item name="progressBarStyleSmall">@style/Widget.ProgressBar.Small.Inverse</item>
<item name="progressBarStyleLarge">@style/Widget.ProgressBar.Large.Inverse</item>
<item name="textColorHint">@color/hint_foreground_light</item>
<item name="colorForegroundInverse">@color/bright_foreground_light_inverse</item>
<item name="listSeparatorTextViewStyle">@style/Widget.TextView.ListSeparator.White</item>
<item name="textColorTertiary">@color/tertiary_text_light</item>
<item name="textColorTertiaryInverse">@color/tertiary_text_dark</item>
<item name="listDivider">@drawable/divider_horizontal_bright</item>
<item name="progressBarStyleInverse">@style/Widget.ProgressBar</item>
<item name="progressBarStyleSmallInverse">@style/Widget.ProgressBar.Small</item>
<item name="progressBarStyleLargeInverse">@style/Widget.ProgressBar.Large</item>
<item name="textColorPrimaryInverseDisableOnly">@color/primary_text_dark_disable_only</item>
<item name="gestureOverlayViewStyle">@style/Widget.GestureOverlayView.White</item>
</style>
now recompile and push
just at the end the meaning of this guide is in styles.xml
dark means light
and light means dark
i hope i helped you just if you like my work pls hit thanks button
see you around :highfive: :victory:
XDA:DevDB Information
turning on light/black theme , Theme for all devices (see above for details)
Contributors
apk5656
Version Information
Status: Testing
Created 2016-04-25
Last Updated 2016-04-27