Importance icons

pull/198/head
M66B 4 years ago
parent 7803193c1a
commit 2c46eaa910

@ -2884,12 +2884,15 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
SubMenu importance = popupMenu.getMenu()
.addSubMenu(Menu.NONE, Menu.NONE, order++, R.string.title_set_importance)
.setIcon(R.drawable.twotone_priority_high_24);
.setIcon(R.drawable.baseline_arrow_upward_24);
importance.add(Menu.NONE, R.string.title_importance_high, 1, R.string.title_importance_high)
.setIcon(R.drawable.baseline_arrow_upward_24)
.setEnabled(!EntityMessage.PRIORITIY_HIGH.equals(result.importance));
importance.add(Menu.NONE, R.string.title_importance_normal, 2, R.string.title_importance_normal)
.setIcon(R.drawable.twotone_horizontal_rule_24)
.setEnabled(!EntityMessage.PRIORITIY_NORMAL.equals(result.importance));
importance.add(Menu.NONE, R.string.title_importance_low, 3, R.string.title_importance_low)
.setIcon(R.drawable.baseline_arrow_downward_24)
.setEnabled(!EntityMessage.PRIORITIY_LOW.equals(result.importance));
if (result.hasInbox && !result.isInbox) // not is inbox

@ -0,0 +1,11 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M4,11h16v2h-16z"
android:fillType="evenOdd"/>
</vector>

@ -25,17 +25,20 @@
<item
android:id="@+id/menu_set_importance"
android:icon="@drawable/twotone_priority_high_24"
android:icon="@drawable/baseline_arrow_upward_24"
android:title="@string/title_set_importance">
<menu>
<item
android:id="@+id/menu_set_importance_high"
android:icon="@drawable/baseline_arrow_upward_24"
android:title="@string/title_importance_high" />
<item
android:id="@+id/menu_set_importance_normal"
android:icon="@drawable/twotone_horizontal_rule_24"
android:title="@string/title_importance_normal" />
<item
android:id="@+id/menu_set_importance_low"
android:icon="@drawable/baseline_arrow_downward_24"
android:title="@string/title_importance_low" />
</menu>
</item>

Loading…
Cancel
Save