mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 06:40:30 +05:30
Use MD icons for the notification seek controls
This commit is contained in:
parent
6c750b51fa
commit
cf17c0dfee
@ -135,8 +135,8 @@ class NowPlayingNotification(
|
|||||||
return mutableMapOf(
|
return mutableMapOf(
|
||||||
PREV to createNotificationAction(R.drawable.ic_prev_outlined, PREV, instanceId),
|
PREV to createNotificationAction(R.drawable.ic_prev_outlined, PREV, instanceId),
|
||||||
NEXT to createNotificationAction(R.drawable.ic_next_outlined, NEXT, instanceId),
|
NEXT to createNotificationAction(R.drawable.ic_next_outlined, NEXT, instanceId),
|
||||||
REWIND to createNotificationAction(R.drawable.ic_rewind, REWIND, instanceId),
|
REWIND to createNotificationAction(R.drawable.ic_rewind_md, REWIND, instanceId),
|
||||||
FORWARD to createNotificationAction(R.drawable.ic_forward, FORWARD, instanceId)
|
FORWARD to createNotificationAction(R.drawable.ic_forward_md, FORWARD, instanceId)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -212,8 +212,8 @@ class NowPlayingNotification(
|
|||||||
setCustomActionProviders(
|
setCustomActionProviders(
|
||||||
createMediaSessionAction(R.drawable.ic_prev_outlined, PREV),
|
createMediaSessionAction(R.drawable.ic_prev_outlined, PREV),
|
||||||
createMediaSessionAction(R.drawable.ic_next_outlined, NEXT),
|
createMediaSessionAction(R.drawable.ic_next_outlined, NEXT),
|
||||||
createMediaSessionAction(R.drawable.ic_rewind, REWIND),
|
createMediaSessionAction(R.drawable.ic_rewind_md, REWIND),
|
||||||
createMediaSessionAction(R.drawable.ic_forward, FORWARD)
|
createMediaSessionAction(R.drawable.ic_forward_md, FORWARD)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
10
app/src/main/res/drawable/ic_forward_md.xml
Normal file
10
app/src/main/res/drawable/ic_forward_md.xml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:tint="?attr/colorControlNormal"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M18,13c0,3.31 -2.69,6 -6,6s-6,-2.69 -6,-6s2.69,-6 6,-6v4l5,-5l-5,-5v4c-4.42,0 -8,3.58 -8,8c0,4.42 3.58,8 8,8s8,-3.58 8,-8H18z" />
|
||||||
|
</vector>
|
10
app/src/main/res/drawable/ic_rewind_md.xml
Normal file
10
app/src/main/res/drawable/ic_rewind_md.xml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
|
android:width="24dp"
|
||||||
|
android:height="24dp"
|
||||||
|
android:tint="?attr/colorControlNormal"
|
||||||
|
android:viewportWidth="24"
|
||||||
|
android:viewportHeight="24">
|
||||||
|
<path
|
||||||
|
android:fillColor="@android:color/white"
|
||||||
|
android:pathData="M11.99,5V1l-5,5l5,5V7c3.31,0 6,2.69 6,6s-2.69,6 -6,6s-6,-2.69 -6,-6h-2c0,4.42 3.58,8 8,8s8,-3.58 8,-8S16.41,5 11.99,5z" />
|
||||||
|
</vector>
|
Loading…
Reference in New Issue
Block a user