Skip to content

Commit

Permalink
Replace screenshot placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
Iamlooker committed Sep 24, 2023
1 parent b11318b commit 999ae68
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ val Context.selectableBackground: Drawable
get() = getDrawableFromAttr(android.R.attr.selectableItemBackground)

val Context.camera: Drawable
get() = getDrawableCompat(R.drawable.ic_photo_camera)
get() = getDrawableCompat(R.drawable.ic_image)

val Context.aspectRatio: Float
get() = resources.displayMetrics.heightPixels.toFloat() / resources.displayMetrics.widthPixels.toFloat()
Expand Down
10 changes: 10 additions & 0 deletions core/common/src/main/res/drawable/ic_image.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M200,840Q167,840 143.5,816.5Q120,793 120,760L120,200Q120,167 143.5,143.5Q167,120 200,120L760,120Q793,120 816.5,143.5Q840,167 840,200L840,760Q840,793 816.5,816.5Q793,840 760,840L200,840ZM200,760L760,760Q760,760 760,760Q760,760 760,760L760,200Q760,200 760,200Q760,200 760,200L200,200Q200,200 200,200Q200,200 200,200L200,760Q200,760 200,760Q200,760 200,760ZM240,680L720,680L570,480L450,640L360,520L240,680ZM200,760Q200,760 200,760Q200,760 200,760L200,200Q200,200 200,200Q200,200 200,200L200,200Q200,200 200,200Q200,200 200,200L200,760Q200,760 200,760Q200,760 200,760L200,760Z"/>
</vector>
13 changes: 0 additions & 13 deletions core/common/src/main/res/drawable/ic_photo_camera.xml

This file was deleted.

0 comments on commit 999ae68

Please sign in to comment.