feat(ui): Minimalistic Settings Button in Player (#4416)

Co-authored-by: IndusAryan <a1@gmail.com>
This commit is contained in:
IndusAryan 2023-08-09 16:49:42 +05:30 committed by GitHub
parent aa2f9aef4d
commit cd6ad6f28a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 2 deletions

View File

@ -0,0 +1,12 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportHeight="24"
android:viewportWidth="24">
<path
android:fillColor="#ffffff"
android:pathData="M12,8.25C9.929,8.25 8.25,9.929 8.25,12C8.25,14.071 9.929,15.75 12,15.75C14.071,15.75 15.75,14.071 15.75,12C15.75,9.929 14.071,8.25 12,8.25ZM9.75,12C9.75,10.757 10.757,9.75 12,9.75C13.243,9.75 14.25,10.757 14.25,12C14.25,13.243 13.243,14.25 12,14.25C10.757,14.25 9.75,13.243 9.75,12Z"/>
<path
android:fillColor="#ffffff"
android:pathData="M12,1.25C11.295,1.25 10.652,1.444 9.949,1.77C9.268,2.087 8.48,2.553 7.495,3.137L6.741,3.583C5.755,4.167 4.968,4.633 4.361,5.079C3.733,5.541 3.252,6.013 2.903,6.632C2.555,7.25 2.398,7.911 2.323,8.695C2.25,9.455 2.25,10.387 2.25,11.556V12.444C2.25,13.613 2.25,14.545 2.323,15.305C2.398,16.089 2.555,16.75 2.903,17.368C3.252,17.987 3.733,18.459 4.361,18.921C4.968,19.367 5.755,19.833 6.741,20.417L7.495,20.863C8.48,21.447 9.268,21.913 9.949,22.23C10.652,22.556 11.295,22.75 12,22.75C12.705,22.75 13.348,22.556 14.051,22.23C14.732,21.913 15.52,21.447 16.505,20.863L17.258,20.417C18.245,19.833 19.032,19.367 19.639,18.921C20.267,18.459 20.748,17.987 21.097,17.368C21.444,16.75 21.602,16.089 21.677,15.305C21.75,14.545 21.75,13.613 21.75,12.444V11.556C21.75,10.387 21.75,9.455 21.677,8.695C21.602,7.911 21.444,7.25 21.097,6.632C20.748,6.013 20.267,5.541 19.639,5.079C19.032,4.633 18.245,4.167 17.258,3.583L16.505,3.137C15.52,2.553 14.732,2.087 14.051,1.77C13.348,1.444 12.705,1.25 12,1.25ZM8.225,4.447C9.252,3.839 9.976,3.412 10.581,3.131C11.17,2.857 11.591,2.75 12,2.75C12.409,2.75 12.83,2.857 13.419,3.131C14.024,3.412 14.748,3.839 15.775,4.447L16.461,4.854C17.488,5.462 18.211,5.891 18.751,6.288C19.277,6.675 19.581,6.997 19.789,7.368C19.999,7.739 20.12,8.174 20.184,8.839C20.249,9.519 20.25,10.378 20.25,11.594V12.406C20.25,13.622 20.249,14.481 20.184,15.161C20.12,15.826 19.999,16.261 19.789,16.632C19.581,17.003 19.277,17.325 18.751,17.712C18.211,18.109 17.488,18.538 16.461,19.146L15.775,19.553C14.748,20.161 14.024,20.588 13.419,20.869C12.83,21.143 12.409,21.25 12,21.25C11.591,21.25 11.17,21.143 10.581,20.869C9.976,20.588 9.252,20.161 8.225,19.553L7.539,19.146C6.512,18.538 5.789,18.109 5.249,17.712C4.723,17.325 4.419,17.003 4.21,16.632C4.001,16.261 3.88,15.826 3.816,15.161C3.751,14.481 3.75,13.622 3.75,12.406V11.594C3.75,10.378 3.751,9.519 3.816,8.839C3.88,8.174 4.001,7.739 4.21,7.368C4.419,6.997 4.723,6.675 5.249,6.288C5.789,5.891 6.512,5.462 7.539,4.854L8.225,4.447Z"/>
</vector>

View File

@ -98,7 +98,7 @@
<ImageButton
android:id="@+id/toggle_options"
style="@style/PlayerControlTop"
android:src="@drawable/ic_arrow_down"
android:src="@drawable/ic_player_settings"
app:tint="@android:color/white" />
</LinearLayout>
@ -342,4 +342,4 @@
</LinearLayout>
</merge>
</merge>