Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Toolbar isn't tinting MenuItems [duplicate]

I have some white-on-transparent icons I want to use in my Toolbar, but they aren't being tinted to fit my theme (based on AppCompat.Light). No matter what color icons I put, they stay that color and don't turn dark gray (like the overflow and SearchView icons do).

<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:contentInsetStart="0dp">

Here's my theme:

<style name="Theme.*myapp*" parent="Theme.AppCompat.Light">
    <item name="colorPrimary">@color/accent</item>
    <item name="colorPrimaryDark">@color/accent_dark</item>
    <item name="colorAccent">@color/accent</item>
    <item name="windowActionBar">false</item>
    <item name="android:dialogTheme">@style/*myapp*.Dialog</item>
    <item name="android:textColorPrimary">#DE000000</item>
    <item name="android:textColorSecondary">#8A000000</item>
</style>

Is there something I have to do to get the Toolbar to tint MenuItems?

like image 614
Steven Schoen Avatar asked Nov 10 '22 00:11

Steven Schoen


1 Answers

Try this <item name="colorControlNormal">@color/white</item>

like image 147
jgnt32 Avatar answered Nov 15 '22 13:11

jgnt32