Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
cybermessiah
Old
#1  
cybermessiah's Avatar
Senior Member - OP
Thanks Meter 1056
Posts: 288
Join Date: Jul 2010
Location: Panciao City Taipei County
Default [Themeing question] changing text color shutdown menu



Hi guys. I want to change the light popoup menu to a dark one with white text. (see above)

I'm not quite sure if the information is in in the 'styles.xml' or 'colors.xml' and what lines exactly to edit. Anyone know what .xml to edit and what values to change?

I know how to change the background by editing the 'popup_full_bright.9.png' , but the black text looks terrible on that... so really need to know how to get white text on the light popup menus.

Any help would be really appreciated.
I don’t suffer from insanity, I enjoy every minute of it...

My themed Whatsapp Mods. Check em out
http://forum.xda-developers.com/show....php?t=1167562

My setup on Paranoid Android:
http://forum.xda-developers.com/show...postcount=2746
 
wway
Old
(Last edited by wway; 9th December 2011 at 10:11 PM.)
#2  
wway's Avatar
Member
Thanks Meter 9
Posts: 60
Join Date: Jan 2009
Location: Riga
Change these parameters

framework-res\res\layout\select_dialog_item.xml
\select_dialog_multichoice.xml
\select_dialog_singlechoice.xml


Code:
android:textColor="@color/primary_text_light_disable_only"
To
Code:
android:textColor="@color/primary_text_dark_disable_only"

Then
framework-res/res/layout/global_actions_item.xml
Delete all"Inverse"

These
Code:
	<TextView android:textAppearance="?textAppearanceSmallInverse" android:id="@id/status" android:layout_width="fill_parent" android:layout_height="26.0dip" android:layout_toRightOf="@id/icon" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" />
	<TextView android:textAppearance="?textAppearanceLargeInverse" android:gravity="center_vertical" android:id="@id/message" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_toRightOf="@id/icon" android:layout_above="@id/status" android:layout_alignParentTop="true" android:layout_alignParentRight="true" android:layout_alignWithParentIfMissing="true" />
To:
Code:
	<TextView android:textAppearance="?textAppearanceSmall" android:id="@id/status" android:layout_width="fill_parent" android:layout_height="26.0dip" android:layout_toRightOf="@id/icon" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" />
	<TextView android:textAppearance="?textAppearanceLarge" android:gravity="center_vertical" android:id="@id/message" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_toRightOf="@id/icon" android:layout_above="@id/status" android:layout_alignParentTop="true" android:layout_alignParentRight="true" android:layout_alignWithParentIfMissing="true" />
Next

framework-res\res\values\styles.xml

These:

Code:
style name="TextAppearance.Widget.DropDownHint" parent="@style/TextAppearance.Widget">
		<item name="textSize">14.0sp</item>
		<item name="textColor">?textColorPrimaryInverse</item>
	</style>
	<style name="TextAppearance.Widget.DropDownItem" parent="@style/TextAppearance.Widget">
		<item name="textColor">@color/primary_text_light_disable_only</item>
	</style>
Change to:

Code:
<style name="TextAppearance.Widget.DropDownHint" parent="@style/TextAppearance.Widget">
		<item name="textSize">14.0sp</item>
		<item name="textColor">?textColorPrimary</item>
	</style>
	<style name="TextAppearance.Widget.DropDownItem" parent="@style/TextAppearance.Widget">
		<item name="textColor">@color/primary_text_dark_disable_only</item>
	</style>

But still there will be problems with launcher's popup (add widgets and etc.) and I still dont know how to fix it. I think it's somewher into launcher.apk
Dell Mini 5 (Streak)
DSC
XPERIA Ray
RPK-T 4PDA [ICS]
Apple Ipad 3
IOS 6.1
 
DorianX
Old
#3  
DorianX's Avatar
Senior Member
Thanks Meter 147
Posts: 355
Join Date: Dec 2009
Location: Zapopan, Jalisco

 
DONATE TO ME
Quote:
Originally Posted by wway View Post
Change these parameters

framework-res\res\layout\select_dialog_item.xml
\select_dialog_multichoice.xml
\select_dialog_singlechoice.xml


Code:
android:textColor="@color/primary_text_light_disable_only"
To
Code:
android:textColor="@color/primary_text_dark_disable_only"

Then
framework-res/res/layout/global_actions_item.xml
Delete all"Inverse"

These
Code:
	<TextView android:textAppearance="?textAppearanceSmallInverse" android:id="@id/status" android:layout_width="fill_parent" android:layout_height="26.0dip" android:layout_toRightOf="@id/icon" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" />
	<TextView android:textAppearance="?textAppearanceLargeInverse" android:gravity="center_vertical" android:id="@id/message" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_toRightOf="@id/icon" android:layout_above="@id/status" android:layout_alignParentTop="true" android:layout_alignParentRight="true" android:layout_alignWithParentIfMissing="true" />
To:
Code:
	<TextView android:textAppearance="?textAppearanceSmall" android:id="@id/status" android:layout_width="fill_parent" android:layout_height="26.0dip" android:layout_toRightOf="@id/icon" android:layout_alignParentRight="true" android:layout_alignParentBottom="true" />
	<TextView android:textAppearance="?textAppearanceLarge" android:gravity="center_vertical" android:id="@id/message" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_toRightOf="@id/icon" android:layout_above="@id/status" android:layout_alignParentTop="true" android:layout_alignParentRight="true" android:layout_alignWithParentIfMissing="true" />
Next

framework-res\res\values\styles.xml

These:

Code:
style name="TextAppearance.Widget.DropDownHint" parent="@style/TextAppearance.Widget">
		<item name="textSize">14.0sp</item>
		<item name="textColor">?textColorPrimaryInverse</item>
	</style>
	<style name="TextAppearance.Widget.DropDownItem" parent="@style/TextAppearance.Widget">
		<item name="textColor">@color/primary_text_light_disable_only</item>
	</style>
Change to:

Code:
<style name="TextAppearance.Widget.DropDownHint" parent="@style/TextAppearance.Widget">
		<item name="textSize">14.0sp</item>
		<item name="textColor">?textColorPrimary</item>
	</style>
	<style name="TextAppearance.Widget.DropDownItem" parent="@style/TextAppearance.Widget">
		<item name="textColor">@color/primary_text_dark_disable_only</item>
	</style>

But still there will be problems with launcher's popup (add widgets and etc.) and I still dont know how to fix it. I think it's somewher into launcher.apk
Hey man did you fix the popup menu text colors problem? I have the same problem I did this: (but change a lot of things, and I don't want that I just want to change popup menus)

In \res\values styles.xml

Change this:

<style name="Widget.TextView" parent="@style/Widget">
<item name="textAppearance">?textAppearanceSmall</item>
</style>

to this:

<style name="Widget.TextView" parent="@style/Widget">
<item name="textAppearance">?textAppearanceSmall</item>
<item name="textColor">#ffColorThatIWant</item>
Phone: LG Optimus Sol (E730f)
My Rom: CM 7.2 JB Taste

Previous Phone: T-Mobile G1 Black (given to my beautiful girlfriend)
SPL: 1.33.0013d Radio: 2.22.28.25 Recovery: RA-dream-v1.7.0
My Roms: GingerFroyo - FroyoCreamSandwich
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...