Skip to content

Commit

Permalink
Merge pull request #322 from cemrich/bugfix/menu-item-not-greyed-out
Browse files Browse the repository at this point in the history
Text color of option menu items now changes when item is disabled and me...
  • Loading branch information
David-Development committed Mar 31, 2015
2 parents e9e556b + 28f7be5 commit 150a555
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>

<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="false" android:color="#88c0c0c0" />
<item android:color="#ffc0c0c0"/>
</selector>
1 change: 1 addition & 0 deletions News-Android-App/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<color name="slide_up_panel_header_background_color">#ff343434</color>
<color name="slide_up_panel_slider_background_color">#ffdcdcdc</color>

<color name="options_menu_item_text">@drawable/options_menu_item_color</color>

<color name="material_grey_900">#212121</color>

Expand Down
2 changes: 1 addition & 1 deletion News-Android-App/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</style>

<style name="ToolbarTheme" parent="ThemeOverlay.AppCompat.Dark.ActionBar">
<item name="android:textColor">#ffc0c0c0</item>
<item name="android:textColor">@color/options_menu_item_text</item>
</style>


Expand Down

0 comments on commit 150a555

Please sign in to comment.