Improve icon sizes

This commit is contained in:
tzugen 2021-04-17 19:13:19 +02:00
parent 19580cda8b
commit 731447fda5
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930
5 changed files with 24 additions and 4 deletions

View File

@ -758,7 +758,7 @@ public class MediaPlayerService extends Service
case 0:
keycode = KeyEvent.KEYCODE_MEDIA_PREVIOUS;
label = getString(R.string.common_play_previous);
icon = R.drawable.media_backward_normal_dark;
icon = R.drawable.media_backward_medium_dark;
break;
case 1:
// Is handled in generatePlayPauseAction()
@ -766,7 +766,7 @@ public class MediaPlayerService extends Service
case 2:
keycode = KeyEvent.KEYCODE_MEDIA_NEXT;
label = getString(R.string.common_play_next);
icon = R.drawable.media_forward_normal_dark;
icon = R.drawable.media_forward_medium_dark;
break;
default:
return null;
@ -787,10 +787,10 @@ public class MediaPlayerService extends Service
if (isPlaying) {
label = getString(R.string.common_pause);
icon = R.drawable.media_pause_normal_dark;
icon = R.drawable.media_pause_large_dark;
} else {
label = getString(R.string.common_play);
icon = R.drawable.media_start_normal_dark;
icon = R.drawable.media_start_large_dark;
}
return new NotificationCompat.Action.Builder(icon, label, pendingIntent).build();

View File

@ -0,0 +1,5 @@
<vector android:height="32dp"
android:viewportHeight="24" android:viewportWidth="24"
android:width="32dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FFFFFF" android:pathData="M6,6h2v12L6,18zM9.5,12l8.5,6L18,6z"/>
</vector>

View File

@ -0,0 +1,5 @@
<vector android:height="32dp"
android:viewportHeight="24" android:viewportWidth="24"
android:width="32dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FFFFFF" android:pathData="M6,18l8.5,-6L6,6v12zM16,6v12h2V6h-2z"/>
</vector>

View File

@ -0,0 +1,5 @@
<vector android:height="48dp"
android:viewportHeight="24" android:viewportWidth="24"
android:width="48dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FFFFFF" android:pathData="M6,19h4L10,5L6,5v14zM14,5v14h4L18,5h-4z"/>
</vector>

View File

@ -0,0 +1,5 @@
<vector android:height="48dp"
android:viewportHeight="24" android:viewportWidth="24"
android:width="48dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="#FFFFFF" android:pathData="M8,5v14l11,-7z"/>
</vector>