Skip to content

Commit

Permalink
to add icon tint for light/dark mode, look here
Browse files Browse the repository at this point in the history
  • Loading branch information
jclark118 committed Jun 30, 2023
1 parent 841e1fd commit eb7b516
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public View getView(int position, @Nullable View convertView, @NonNull ViewGroup
// Icon
ImageView urlIcon = (ImageView)listItem.findViewById(R.id.url_icon);
urlIcon.setImageResource(savedUrl.getmIcon());
// Setting a color filter to help tint the icon to deal with light/dark mode instead of making new icons
// Setting a color filter to tint the icon to deal with light/dark mode instead of making new icons
// urlIcon.setColorFilter(mContext.getResources().getColor(R.color.iconTint, getContext().getTheme()));

// Url text
Expand Down
2 changes: 1 addition & 1 deletion mapcache/src/main/res/layout/layout_saved_url.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/colored_layers"/>
<!-- add a color tint to deal with light/dark mode-->
<!-- Set a color tint to deal with light/dark mode-->
<!-- app:tint="@color/iconTint"-->

<TextView
Expand Down

0 comments on commit eb7b516

Please sign in to comment.