[How-to] Maximum StatusBar Brightness 4.4.2 - Sprint Galaxy S 5 Themes and Apps

[How-to] Maximum StatusBar Brightness 4.4.2
This guide is based on the KK 4.4.2 Galaxy S5 builds.
I noticed that Samsung always make the statusbar notification areas a bit dim. Probably to help with battery conservation.
This requires decompiling SystemUI.apk.
SystemUI/res/values/dimens.xml edit
Code:
Change these three lines
New values are in BLUE
<item type="dimen" name="status_bar_icon_drawing_alpha">[COLOR="Blue"]100.0%[/COLOR]</item>
<item type="dimen" name="system_icon_area_alpha">[COLOR="Blue"]1.0[/COLOR]</item>
<item type="dimen" name="notification_icon_area_alpha">[COLOR="Blue"]1.0[/COLOR]</item>
Note:
Screenshots are best viewed from a PC so you can rapidly swap images to see the difference.

Interesting, thanks sir.
Sent from my SM-G900P using Tapatalk

Related

(Q) black menu popup

Was wondering where the png or the xml file is to change it to black like gingerbread when u press the menu button. Or even slightly black transparent. Where in the framework res is it located? Thanks!
Its in the gb theme. Its a .9.png that needs to be edited in the framework. Then you have to replace all the icons that show up in that menu with lighter icons our colorfull ones. You also need to edit a couple xmls to show the text right
Android Creative Syndicate- From spontaneous ingenuity, comes creative brilliance
mysteryemotionz said:
Its in the gb theme. Its a .9.png that needs to be edited in the framework. Then you have to replace all the icons that show up in that menu with lighter icons our colorfull ones. You also need to edit a couple xmls to show the text right
Android Creative Syndicate- From spontaneous ingenuity, comes creative brilliance
Click to expand...
Click to collapse
Mystery, seeing as you're a theme dev, you'd probably know the answer better than I would, could someone just extract some of the images from one theme and replace them in another theme to get the look they want? (Sorry to derail the thread.)
Thanks for the quick reply. What's. The .9png file name. And xml located for the text?
063_XOBX said:
Mystery, seeing as you're a theme dev, you'd probably know the answer better than I would, could someone just extract some of the images from one theme and replace them in another theme to get the look they want? (Sorry to derail the thread.)
Click to expand...
Click to collapse
You are correct but the xml edits are gonna have to be done in a decompiled apk. You can't decompile a custom framework and the recompile it. You have to start with a stock framework. Your best bet is to ask your theme dev if this is something he's willing to do
Android Creative Syndicate- From spontaneous ingenuity, comes creative brilliance
hugo87 said:
Thanks for the quick reply. What's. The .9png file name. And xml located for the text?
Click to expand...
Click to collapse
I'm not sure of .9 off of the top of my head I would have to look at my files. All I can tell you is its in framework-res.apk/res/drawable-hpi.
As far as the xml goes I would have to check my notes that the dev of the gb theme have me.
Android Creative Syndicate- From spontaneous ingenuity, comes creative brilliance
all credit goes to amosher13
here is the xmls i edited to deal with dark menu images. make sure you link me to wherever you post this bad boy:
Set menu text to white
In /res/values/style.xml change the following:
Code:
style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimaryInverse</item>
</style>
TO:
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">@color/bright_foreground_dark</item>
</style>
--------------------------------------------------
and (for the "more" menu lists)
Code:
style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">?textAppearanceLargeInverse</item>
<style>
TO
Code:
<style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">?textAppearanceLarge</item>
<style>
---------------------------------------------------
Fix menu button dividers
Also in /res/values/style.xml:
Code:
<style name="Theme.IconMenu" parent="@style/Theme">
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">@style/TextAppearance.Widget.IconMenu.Item</item>
<item name="horizontalDivider">@drawable/divider_horizontal_bright</item>
<item name="verticalDivider">@drawable/divider_vertical_bright</item>
<item name="itemBackground">@drawable/menu_selector</item>
<item name="itemIconDisabledAlpha">?disabledAlpha</item>
<item name="moreIcon">@drawable/ic_menu_more</item>
</style>
TO
Code:
<style name="Theme.IconMenu" parent="@style/Theme">
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">@style/TextAppearance.Widget.IconMenu.Item</item>
<item name="horizontalDivider">@drawable/divider_horizontal_dark</item>
<item name="verticalDivider">@drawable/divider_vertical_dark</item>
<item name="itemBackground">@drawable/menu_selector</item>
<item name="itemIconDisabledAlpha">?disabledAlpha</item>
<item name="moreIcon">@drawable/ic_menu_more</item>
</style>
---------------------------------------------------
Change secondary text in settings from blue to whatever
In /res/color/zzz_tw_secondary_text_sub.xml change the colors in the following two lines to ffffffff (for white):
Code:
<item android:state_window_focused="false" android:color="#ffffffff" />
<item android:color="#ffffffff" />
---------------------------------------------------
change notification text on pulldown
There are three text color settings in
/res/layout/status_bar_latest_event_content.xml.
Change all three of them. ff000000 is black.[/QUOTE]
the menu is popup_top_bright.9.png and popup_bottom_medium.9.png i believe
Freakin sweet!!! Mystery you are the man! Realy appreciate it. Thanks!
hugo87 said:
Freakin sweet!!! Mystery you are the man! Realy appreciate it. Thanks!
Click to expand...
Click to collapse
Don't forget to thank asmopher13 got the xml edits. I just copied and posted what he gave me
Android Creative Syndicate- From spontaneous ingenuity, comes creative brilliance
Will do man thanks again man!
MysteryEmotionz said:
all credit goes to amosher13
here is the xmls i edited to deal with dark menu images. make sure you link me to wherever you post this bad boy:
Set menu text to white
In /res/values/style.xml change the following:
Code:
style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?textColorPrimaryInverse</item>
</style>
TO:
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">@color/bright_foreground_dark</item>
</style>
--------------------------------------------------
and (for the "more" menu lists)
Code:
style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">?textAppearanceLargeInverse</item>
<style>
TO
Code:
<style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">?textAppearanceLarge</item>
<style>
---------------------------------------------------
Fix menu button dividers
Also in /res/values/style.xml:
Code:
<style name="Theme.IconMenu" parent="@style/Theme">
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">@style/TextAppearance.Widget.IconMenu.Item</item>
<item name="horizontalDivider">@drawable/divider_horizontal_bright</item>
<item name="verticalDivider">@drawable/divider_vertical_bright</item>
<item name="itemBackground">@drawable/menu_selector</item>
<item name="itemIconDisabledAlpha">?disabledAlpha</item>
<item name="moreIcon">@drawable/ic_menu_more</item>
</style>
TO
Code:
<style name="Theme.IconMenu" parent="@style/Theme">
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">@style/TextAppearance.Widget.IconMenu.Item</item>
<item name="horizontalDivider">@drawable/divider_horizontal_dark</item>
<item name="verticalDivider">@drawable/divider_vertical_dark</item>
<item name="itemBackground">@drawable/menu_selector</item>
<item name="itemIconDisabledAlpha">?disabledAlpha</item>
<item name="moreIcon">@drawable/ic_menu_more</item>
</style>
---------------------------------------------------
Change secondary text in settings from blue to whatever
In /res/color/zzz_tw_secondary_text_sub.xml change the colors in the following two lines to ffffffff (for white):
Code:
<item android:state_window_focused="false" android:color="#ffffffff" />
<item android:color="#ffffffff" />
---------------------------------------------------
change notification text on pulldown
There are three text color settings in
/res/layout/status_bar_latest_event_content.xml.
Change all three of them. ff000000 is black.
Click to expand...
Click to collapse
[/QUOTE]
hello mystery, do you mind taking a look at my screenshots?, your advice will be highly appreciated.
hello mystery, do you mind taking a look at my screenshots?, your advice will be highly appreciated.[/QUOTE]
This is something i haven't done or looked into. From what I have seen I believe the widget picker text is controlled in styles.xml. The compressed calender image looks like a .9.png error. The input text I haven't seen at all and I'm getting a feeling that would be controlled from app 2 app
Sent from my SPH-D700 using Tapatalk
MysteryEmotionz said:
hello mystery, do you mind taking a look at my screenshots?, your advice will be highly appreciated.
Click to expand...
Click to collapse
This is something i haven't done or looked into. From what I have seen I believe the widget picker text is controlled in styles.xml. The compressed calender image looks like a .9.png error. The input text I haven't seen at all and I'm getting a feeling that would be controlled from app 2 app
Sent from my SPH-D700 using Tapatalk[/QUOTE]
Firstly, thank you for your reply..
1)In moto milestone,(CM6 to be specific) the styles.xml is not available in framework-re.apk/res/color. I had attached the content of res/color folder below for your viewing.
2)".9.png error" thank you so much for clarifying this..now i know where to go..
p/s: this only happens in landscape. in potrait, it is perfect.;
Let me know if you still need help with the text color,,,Its the Primary_text_Light.xml,thats the only one that need to be changed.
Sent from my MyFrankenstein E=Bee13² ROM using XDAP App...
THANKS ecooce, i am trying it out now..wwill update soon
here the orginal content of Primary_text_light.xml
<?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/bright_foreground_light_disabled" />
<item android:state_window_focused="false" android:color="@color/bright_foreground_light" />
<item android:state_pressed="true" android:color="@color/bright_foreground_light" />
<item android:state_selected="true" android:color="@color/bright_foreground_light" />
<item android:color="@color/bright_foreground_light" />
</selector>
and heres the modified version
<?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/bright_foreground_light_disabled" />
<item android:state_window_focused="false" android:color="@color/bright_foreground_light" />
<item android:state_pressed="true" android:color="@color/bright_foreground_light" />
<item android:state_selected="true" android:color="@color/bright_foreground_light" />
<item android:color="@color/bright_foreground_dark" />
</selector>
THANK YOU SOOO MUCH TO ecoocemystery emotions!! im as happy as (god knows what!!) thank you to so so much!!
vesparados150 said:
This is something i haven't done or looked into. From what I have seen I believe the widget picker text is controlled in styles.xml. The compressed calender image looks like a .9.png error. The input text I haven't seen at all and I'm getting a feeling that would be controlled from app 2 app
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
Firstly, thank you for your reply..
1)In moto milestone,(CM6 to be specific) the styles.xml is not available in framework-re.apk/res/color. I had attached the content of res/color folder below for your viewing.
2)".9.png error" thank you so much for clarifying this..now i know where to go..
p/s: this only happens in landscape. in potrait, it is perfect.;[/QUOTE]
1)Styles.xml should be in framework-res.apk/res/values
(this is where it is on my phone. Idk if cm6 Is any different)
2)those ticker buttons are .9s and something went wrong. Your gonna have to redo that ticker button
Sent from my SPH-D700 using Tapatalk

[Q] Beam Clock Pyramid htcclock3dwidget.apk

Im editing the default.xml from within the MNS folder to complete the setup for my scene, but one thing I cant seem to get is the clock type for the Beam Clock (black with the hazy white hands)
now for example the social clock is like this
<item name="package_name">com.htc.clock3dwidget</item>
<item name="widget_name">com.htc.clock3dwidget.socialclock.SocialClockWidgetView</item>
<item name="provider_name">com.htc.clock3dwidget.ClockWidgetProvider</item>
<item name="screen">3</item>
<item name="cell_x">0</item>
<item name="cell_y">0</item>
<item name="span_x">4</item>
<item name="span_y">2</item>
The highlighted values tell us it's the social clock
and the span y value is 2 because it only takes up 2 vertical spaces of the four on the screen
the larger analog clocks take up 3, so that span y value will change to 3 (clearly)
but does anyone know what the widget name value will change to or know how to find out (htc resource notes or something)?
(Note: I've already tired .beamclock.BeamClockWidgetView and it doesnt work)
Or does anyone know the file name and location of the scene thats been edited by the user already to the way they like it (so I can pull my existing one and get the values from there?)
[A] After Decompiling the apk, I found out that its labled ClockBeam
so the total value would be
com.htc.clock3dwidget.ClockBeam
and thats it

Theme Chooser/CM10 Help - Adding Styles into the style sheet xml...

I'm trying to add a style from an app... Swype... into the style.xml of my theme... I cannot for the life of me get it to compile correctly...
Does anyone know how to include a style from another app into a themes style.xml?
I've called the style in the com_nuance_swype_input.xml
" <item name="style/Swype">@style/com_nuance_swype_input_Swype</item>
<item name="style/Swype.Classic">@style/com_nuance_swype_input_Swype.Classic</item>
"
...and I've added the styles into the style.xml but it just won't work...
<style name="com_nuance_swype_input_Swype">
(there is nothing in this style in the original APK but I figured it would have to be in here as it is the parent)
</style>
<style name="com_nuance_swype_input_Swype.Classic" parent="@style/com_nuance_swype_input_Swype">
<item name="candidateComponent">#ffffa200</item>
etc...
</style>
All I get is this error: Error: No resource found that matches the given name:
Suggestions? I've attached my files...
http://forum.xda-developers.com/showthread.php?t=2051577

[GUIDE][4.4.x] Theming stock android

Hi Everyone,
since i was playing a lot with all these to set them up perfectly (well, as much as i could) and to find different settings and connections, styles what not, i though i share some of my findings. the more i'll fix up in my own stlye, the more i'll add to this post.
i'm not going to write down how to decompile or recompile your apk's, that's something you figure out on your own, i'm just trying to give you some support here.
feel free to donate and/or press the thanks button if you find anything useful here. please bear in mind, i worked hard to figures all these out.
it's also possible that i'm not going to complete this tut.
if you have questions, shoot, i might be able to help but there's no guarantee for that.
have fun!
Changing the switch:
in framework-res.apk\res\values\styles.xml, change both holo and holo.light Switch CompoundButton
===================================================================================
General:
track is the background of the switch, thumb is the switch itself (that you slide over). TextOn & TextOff are the
strings displayed in both states of the switch. padding is pedding
Code:
<style name="Widget.Holo.CompoundButton.Switch" parent="@style/Widget.Holo.CompoundButton">
<item name="textOn">@string/capital_on</item>
<item name="textOff">@string/capital_off</item>
<item name="thumb">@drawable/switch_inner_holo_dark</item>
<item name="switchTextAppearance">@style/TextAppearance.Holo.Widget.Switch</item>
<item name="track">@drawable/switch_track_holo_dark</item>
<item name="switchMinWidth">96.0dip</item>
<item name="switchPadding">8.0dip</item>
<item name="thumbTextPadding">8.0dip</item>
</style>
======================================================================================================
chaning the track (background):
from res\drawable\ open switch_track_holo_dark and ~_light.xml's
to have a different background for when the switch is in different states, add:
Code:
<item android:state_checked="true" android:drawable="@drawable/switch_bg_on_holo_light" />
- for the switch on
Code:
<item android:state_checked="false" android:drawable="@drawable/switch_bg_on_holo_light" />
- for the switch off
Code:
<item android:drawable="@drawable/switch_bg_holo_light" />
- this is the default background, so if you specify only
off or on states, the rest will be the default.
======================================================================================================
changing width of switch:
Code:
<style name="Widget.Holo.CompoundButton.Switch" parent="@style/Widget.Holo.CompoundButton">
<item name="textOn">@string/capital_on</item>
<item name="textOff">@string/capital_off</item>
<item name="thumb">@drawable/switch_inner_holo_dark</item>
<item name="switchTextAppearance">@style/TextAppearance.Holo.Widget.Switch</item>
<item name="track">@drawable/switch_track_holo_dark</item>
<item name="switchMinWidth">56.0dip</item> [B][COLOR="Red"]<-- this is the overall width of the switch[/COLOR][/B]
<item name="switchPadding">8.0dip</item> [COLOR="red"][B]<-- with this[/B][/COLOR]
<item name="thumbTextPadding">8.0dip</item> [COLOR="red"][B]<-- and this, you can change the width of the switch thumb[/B][/COLOR]
</style>
======================================================================================================
Switch text:
Code:
<style name="Widget.CompoundButton.Switch" parent="@style/Widget.CompoundButton">
<item name="textOn">@string/capital_on</item>
<item name="textOff">@string/capital_off</item>
</style>
======================================================================================================
change color of these to make the text disappear (transparent) or change color:
Code:
<style name="TextAppearance.Holo.Widget.Switch" parent="@style/TextAppearance.Holo.Small">
<item name="textColor">@color/secondary_text_holo_dark</item>
</style>
<style name="TextAppearance.Holo.Light.Widget.Switch" parent="@style/TextAppearance.Holo.Small">
<item name="textColor">@color/primary_text_holo_dark</item>
</style>
======================================================================================================
Changing the defaults of Settings to white (holo light):
it's really easy, you just have to change every holo style to holo.light and add the font color of your desire to the different styles in res\values\styles.xml
change every parent "class" that starts with @*android:style/Holo to @*android:style/Holo.Light and, eg:
Code:
parent="@*android:style/Holo.SegmentedButton"
becomes
Code:
parent="@*android:style/Holo.[COLOR="Red"]Light[/COLOR].SegmentedButton"
then add the following line to every style element:
Code:
<item name="android:textColor">#ff545454</item>
except to these styles:
<style name="Transparent">, <style name="setup_wizard_button">, <style name="CryptKeeperBlankTheme"> - here i didn't change holo to holo.light neither (may be worthy to try though), <style name="TextAppearance.Switch"...>, <style name="KeyguardAppWidgetItem">.
where #ff545454 is the hex color code of the color you want to use as the font color. ff at the beginning is android specific, it tells the opacity of the color you select, so in the above case, the original hex color is #545454 (which is gray) but to have a 100% solid color, we need to add ff to the beginning of the hex color code, so it turns into #ff545454. easy peasy
you might have to change all drawables or some of them from _light to _dark, or recolor them in Settings.apk or fw-apk.
you also need to change
Code:
<item name="android:actionBarStyle">@*android:style/Widget.Holo.ActionBar.Solid</item>
to
Code:
<item name="android:actionBarStyle">@*android:style/Widget.Holo.Light.ActionBar.Solid</item>
==========================================================================================================
Changing category header color:
in fw-res.apk\res\values\styles.xml change:
Code:
<style name="Widget.TextView.ListSeparator" parent="@style/Widget.TextView">
<item name="textSize">14.0sp</item>
<item name="textStyle">bold</item>
<item name="textColor">#ffbb0303</item>[COLOR="Red"] <--- change this color to whatever you want[/COLOR]
<item name="gravity">center_vertical</item>
<item name="background">@drawable/dark_header_dither</item>
<item name="layout_width">fill_parent</item>
<item name="layout_height">wrap_content</item>
<item name="paddingStart">8.0dip</item>
</style>
===========================================================================================================================================
theming GoogleDeskClock and having issues with the stopwatch icon (same icon used in status bar when stopwatch is running as for the selected (activated) tab. to fix it, follow this:
Create a black (or whatever color you used) copy of the stopwatch activated icon (ic_tab_stopwatch_activated), name it as ic_tab_stopwatch_activated_b.png in the same folder and change the code in res\drawable\stopwatch_tab.xml the following lines from ic_tab_stopwatch_activated to ic_tab_stopwatch_activated_b:
Code:
<item android:state_focused="true" android:state_pressed="false" android:drawable="@drawable/ic_tab_stopwatch_activated_b" />
<item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/ic_tab_stopwatch_activated_b" />
<item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/ic_tab_stopwatch_activated_b" />
<item android:state_selected="true" android:drawable="@drawable/ic_tab_stopwatch_activated_b" />
reserved 3
Can't w8 to see how the tutorial is
Thanks! Was very useful for me.
Sent from my Nexus 4 using Tapatalk
Icarus1391 said:
Thanks! Was very useful for me.
Sent from my Nexus 4 using Tapatalk
Click to expand...
Click to collapse
no probs. if you did change something, you can throw up a screenie of it, just so we can see
holo.light settings framework S4 i9505 on 4.4.2 kitkat xxufnb8
i want to make holo light changes to whole secsettings na framework on S4 i9505 running on 4.4.2 german B8 stock odexed rom
at your guide Changing the switch:
in framework-res.apk\res\values\styles.xml, change both holo and holo.light Switch CompoundButton
i dont have the string <style name="Widget.Holo.CompoundButton.Switch"
instead i have <style name="Widget.CompoundButton" parent="@style/Widget">
<item name="textAppearance">?textAppearance</item>
<item name="textColor">?textColorPrimaryDisableOnly</item>
<item name="gravity">start|center</item>
<item name="focusable">true</item>
<item name="clickable">true</item>
maybe the guide is nexus related but you didnt writed in the details, i would apreciate i you can guide me according to touchwiz xmls
i have pressed thanks button already
Look for switch, mate, that's what u want to change
Sent from the outer space, delivered by an android using a 4th gen nexus
Hi mate, I would like to completely get rid of the on/off switch
and replace it with another button on Android L style....
How can I do?
Can I make it transparent in this way to make it disappear?
Code:
<style name="TextAppearance.Holo.Widget.Switch" parent="@style/TextAppearance.Holo.Small">
<item name="textColor">[B]#00000000[/B]</item>
</style>
<style name="TextAppearance.Holo.Light.Widget.Switch" parent="@style/TextAppearance.Holo.Small">
<item name="textColor">[B]#00000000[/B]</item>
</style>
Tnx in advance!

[GUIDE] Color the status bar according to your app.

Add this code to your styles.xml in res>values (API 21+ only)
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light">
<!-- This controls status bar color -->
<item name="android:colorPrimaryDark">#B86E00</item>
<item name="android:colorAccent">#FF9800</item>
</style>
</resources>
Add the color you want the status bar to display in place of #B86E00.
Keep in mind that status bar looks better if it is a bit darker than your app theme.

Categories

Resources