From 731447fda5687d9205443b8683d770f8390f942d Mon Sep 17 00:00:00 2001 From: tzugen Date: Sat, 17 Apr 2021 19:13:19 +0200 Subject: [PATCH] Improve icon sizes --- .../org/moire/ultrasonic/service/MediaPlayerService.java | 8 ++++---- .../src/main/res/drawable/media_backward_medium_dark.xml | 5 +++++ .../src/main/res/drawable/media_forward_medium_dark.xml | 5 +++++ .../src/main/res/drawable/media_pause_large_dark.xml | 5 +++++ .../src/main/res/drawable/media_start_large_dark.xml | 5 +++++ 5 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 ultrasonic/src/main/res/drawable/media_backward_medium_dark.xml create mode 100644 ultrasonic/src/main/res/drawable/media_forward_medium_dark.xml create mode 100644 ultrasonic/src/main/res/drawable/media_pause_large_dark.xml create mode 100644 ultrasonic/src/main/res/drawable/media_start_large_dark.xml diff --git a/ultrasonic/src/main/java/org/moire/ultrasonic/service/MediaPlayerService.java b/ultrasonic/src/main/java/org/moire/ultrasonic/service/MediaPlayerService.java index bc702191..460947b6 100644 --- a/ultrasonic/src/main/java/org/moire/ultrasonic/service/MediaPlayerService.java +++ b/ultrasonic/src/main/java/org/moire/ultrasonic/service/MediaPlayerService.java @@ -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(); diff --git a/ultrasonic/src/main/res/drawable/media_backward_medium_dark.xml b/ultrasonic/src/main/res/drawable/media_backward_medium_dark.xml new file mode 100644 index 00000000..79c6bfd3 --- /dev/null +++ b/ultrasonic/src/main/res/drawable/media_backward_medium_dark.xml @@ -0,0 +1,5 @@ + + + diff --git a/ultrasonic/src/main/res/drawable/media_forward_medium_dark.xml b/ultrasonic/src/main/res/drawable/media_forward_medium_dark.xml new file mode 100644 index 00000000..dc96d2dc --- /dev/null +++ b/ultrasonic/src/main/res/drawable/media_forward_medium_dark.xml @@ -0,0 +1,5 @@ + + + diff --git a/ultrasonic/src/main/res/drawable/media_pause_large_dark.xml b/ultrasonic/src/main/res/drawable/media_pause_large_dark.xml new file mode 100644 index 00000000..64164940 --- /dev/null +++ b/ultrasonic/src/main/res/drawable/media_pause_large_dark.xml @@ -0,0 +1,5 @@ + + + diff --git a/ultrasonic/src/main/res/drawable/media_start_large_dark.xml b/ultrasonic/src/main/res/drawable/media_start_large_dark.xml new file mode 100644 index 00000000..0ebbb01e --- /dev/null +++ b/ultrasonic/src/main/res/drawable/media_start_large_dark.xml @@ -0,0 +1,5 @@ + + +