Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9fd535e3 authored by Dave Kover's avatar Dave Kover Committed by Clark Scheff
Browse files

Break out the add icon to be separately themeable.

If Settings is using the accent color for app bar, the add icon
is also colored with this value typically and will cause readability
issues. Adding a new drawable name that can be referenced to allow
separate theming.

Change-Id: I20512091e7a36c510399cbc5caa73aa8817fe393
(cherry picked from commit 62c457ae)
parent d281d8d7
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -56,4 +56,7 @@
    <color name="qs_tile_default_background_color">@android:color/transparent</color>
    <!-- Switch Bar Text Color -->
    <color name="switchbar_text_color">#ffffffff</color>

    <!-- Personal Dictionary Add Icon -->
    <drawable name="ic_menu_add_word">@drawable/ic_menu_add_dark</drawable>
</resources>
+1 −1
Original line number Diff line number Diff line
@@ -165,7 +165,7 @@ public class UserDictionarySettings extends ListFragment {
    public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
        MenuItem actionItem =
                menu.add(0, OPTIONS_MENU_ADD, 0, R.string.user_dict_settings_add_menu_title)
                .setIcon(R.drawable.ic_menu_add_dark);
                .setIcon(R.drawable.ic_menu_add_word);
        actionItem.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM |
                MenuItem.SHOW_AS_ACTION_WITH_TEXT);
    }