mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-25 09:06:22 +00:00
Fixed 'new custom input type' icon's color for light themes
This commit is contained in:
parent
551beb69a3
commit
b37a2eca3b
1 changed files with 6 additions and 0 deletions
|
@ -29,6 +29,7 @@ import android.preference.PreferenceFragment;
|
|||
import android.preference.PreferenceGroup;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import android.util.TypedValue;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuInflater;
|
||||
|
@ -304,6 +305,11 @@ public final class CustomInputStyleSettingsFragment extends PreferenceFragment
|
|||
@Override
|
||||
public void onCreateOptionsMenu(final Menu menu, final MenuInflater inflater) {
|
||||
inflater.inflate(R.menu.add_style, menu);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
final TypedValue value = new TypedValue();
|
||||
getActivity().getTheme().resolveAttribute(android.R.attr.colorForeground, value, true);
|
||||
menu.findItem(R.id.action_add_style).getIcon().setTint(value.data);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue