Icon for PDF files

This commit is contained in:
Matéo Duparc 2022-02-18 16:50:08 +01:00
parent b18232615d
commit ee3df7c3bf
Signed by: hardcoresushi
GPG Key ID: 007F84120107191E
2 changed files with 10 additions and 0 deletions

View File

@ -161,6 +161,7 @@ class ExplorerElementAdapter(
R.drawable.icon_file_video
}
ConstValues.isText(explorerElement.name) -> R.drawable.icon_file_text
ConstValues.isPDF(explorerElement.name) -> R.drawable.icon_file_pdf
ConstValues.isAudio(explorerElement.name) -> R.drawable.icon_file_audio
else -> R.drawable.icon_file_unknown
}

View File

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:pathData="M6,2C4.9,2 4.0098,2.9 4.0098,4L4,20C4,21.1 4.8902,22 5.9902,22L18,22C19.1,22 20,21.1 20,20L20,8L14,2L6,2zM13,3.5L18.5,9L13,9L13,3.5zM7.5234,13.5176L9.2441,13.5176C9.8159,13.5176 10.2773,13.9475 10.2773,14.4805L10.2773,15.123C10.2773,15.656 9.8159,16.0859 9.2441,16.0859L8.5566,16.0859L8.5566,17.3711L7.5234,17.3711L7.5234,13.5176zM10.9668,13.5176L12.6895,13.5176C13.2612,13.5176 13.7227,13.9475 13.7227,14.4805L13.7227,16.4082C13.7227,16.9411 13.2612,17.3711 12.6895,17.3711L10.9668,17.3711L10.9668,13.5176zM14.4102,13.5176L16.4766,13.5176L16.4766,14.4805L15.4434,14.4805L15.4434,15.123L16.4766,15.123L16.4766,16.0859L15.4434,16.0859L15.4434,17.3711L14.4102,17.3711L14.4102,13.5176zM8.5566,14.4805L8.5566,15.123L9.2441,15.123L9.2441,14.4805L8.5566,14.4805zM12,14.4805L12,16.4082L12.6895,16.4082L12.6895,14.4805L12,14.4805z"
android:fillColor="?attr/colorAccent"/>
</vector>