Skip to content

Commit

Permalink
more icon fixes- switching wrench to filter on main page and changing…
Browse files Browse the repository at this point in the history
… map layer from map icon (#721)

Co-authored-by: Andy Carra <[email protected]>
  • Loading branch information
rksh and Andy Carra authored Dec 15, 2024
1 parent 9fe8a0a commit 7fd090e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ public void onCreateOptionsMenu (final Menu menu, @NonNull final MenuInflater in
item.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);

item = menu.add(0, MENU_FILTER, 0, getString(R.string.menu_ssid_filter));
item.setIcon(R.drawable.wrench);
item.setIcon(R.drawable.filter);
item.setShowAsAction(MenuItem.SHOW_AS_ACTION_IF_ROOM);

item = menu.add(0, MENU_SORT, 0, getString(R.string.menu_sort));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ public void onCreateOptionsMenu (@NonNull final Menu menu, @NonNull final MenuIn
item.setIcon(android.R.drawable.ic_menu_directions);

item = menu.add(0, MENU_MAP_TYPE, 0, getString(R.string.menu_map_type));
item.setIcon(R.drawable.map);
item.setIcon(R.drawable.map_layer);
MenuItemCompat.setShowAsAction(item, MenuItem.SHOW_AS_ACTION_IF_ROOM);

item = menu.add(0, MENU_FILTER, 0, getString(R.string.settings_map_head));
Expand Down
15 changes: 15 additions & 0 deletions wiglewifiwardriving/src/main/res/drawable/map_layer.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<vector android:height="24dp" android:viewportHeight="24"
android:viewportWidth="24" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#00000000"
android:pathData="M4,8L12,4L20,8L12,12L4,8Z"
android:strokeColor="#000000" android:strokeLineCap="round"
android:strokeLineJoin="round" android:strokeWidth="2"/>
<path android:fillColor="#00000000"
android:pathData="M4,12L12,16L20,12"
android:strokeColor="#000000" android:strokeLineCap="round"
android:strokeLineJoin="round" android:strokeWidth="2"/>
<path android:fillColor="#00000000"
android:pathData="M4,16L12,20L20,16"
android:strokeColor="#000000" android:strokeLineCap="round"
android:strokeLineJoin="round" android:strokeWidth="2"/>
</vector>

0 comments on commit 7fd090e

Please sign in to comment.