mirror of
https://github.com/nextcloud/android.git
synced 2024-11-29 02:38:58 +03:00
tint drawable according to login color (e.g. black on white background, white on blue background)
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
dafe42d1c5
commit
7ffc8660bb
1 changed files with 2 additions and 1 deletions
|
@ -18,6 +18,7 @@ import android.widget.TextView;
|
|||
|
||||
import com.owncloud.android.R;
|
||||
import com.owncloud.android.features.FeatureItem;
|
||||
import com.owncloud.android.utils.ThemeUtils;
|
||||
|
||||
|
||||
public class FeatureFragment extends Fragment {
|
||||
|
@ -46,7 +47,7 @@ public class FeatureFragment extends Fragment {
|
|||
|
||||
ImageView whatsNewImage = view.findViewById(R.id.whatsNewImage);
|
||||
if (item.shouldShowImage()) {
|
||||
whatsNewImage.setImageResource(item.getImage());
|
||||
whatsNewImage.setImageDrawable(ThemeUtils.tintDrawable(item.getImage(), fontColor));
|
||||
}
|
||||
|
||||
TextView whatsNewTitle = view.findViewById(R.id.whatsNewTitle);
|
||||
|
|
Loading…
Reference in a new issue