Bug 1179479 - Set the 3-dot menu MenuItemActionBar colors. r=mhaigh

The tint for disabled icons broke when I made setEnabled no longer use a
colorFilter to change the color of a disabled view.
This commit is contained in:
Michael Comella 2015-08-05 15:38:57 -07:00
parent fd70f2997e
commit 360ff62932
3 changed files with 24 additions and 2 deletions

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<selector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:gecko="http://schemas.android.com/apk/res-auto">
<item android:state_enabled="false"
android:color="@color/disabled_grey"
/>
<item android:color="@color/toolbar_icon_grey" />
</selector>

View File

@ -93,6 +93,10 @@
<item name="android:paddingRight">@dimen/new_tablet_browser_toolbar_menu_item_padding_horizontal</item>
</style>
<style name="Widget.MenuItemSecondaryActionBar" parent="Widget.MenuItemSecondaryActionBarBase">
<item name="drawableTintList">@color/action_bar_secondary_menu_item_colors</item>
</style>
<style name="Widget.BookmarksListView" parent="Widget.HomeListView">
<item name="android:scrollbarStyle">outsideOverlay</item>
</style>

View File

@ -90,11 +90,14 @@
<item name="android:scaleType">fitCenter</item>
</style>
<style name="Widget.MenuItemSecondaryActionBar">
<style name="Widget.MenuItemSecondaryActionBarBase">
<item name="android:padding">8dip</item>
<item name="android:background">@drawable/action_bar_button</item>
<item name="android:scaleType">centerInside</item>
<item name="drawableTintList">@color/secondary_menu_item_colors</item>
</style>
<style name="Widget.MenuItemSecondaryActionBar" parent="Widget.MenuItemSecondaryActionBarBase">
<!-- Overridden in large config -->
</style>
<style name="Widget.MenuItemActionView">