Skip to content

Commit

Permalink
refactor(search): history element icon
Browse files Browse the repository at this point in the history
  • Loading branch information
urFate committed Jan 2, 2025
1 parent 375bb2f commit 40323c6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.History
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
Expand Down Expand Up @@ -197,7 +195,7 @@ fun SearchScreen() {
},
leadingContent = {
Icon(
imageVector = Icons.Default.History,
painter = painterResource(R.drawable.undo),
contentDescription = null
)
},
Expand Down
20 changes: 20 additions & 0 deletions app/src/main/res/drawable/undo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<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="M5.636,18.364A9,9 0,1 0,12 3C7.942,3 5.482,5.705 3,8.5"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#000000"
android:strokeLineCap="round"/>
<path
android:pathData="M3,4.5v4h4"
android:strokeLineJoin="round"
android:strokeWidth="1.5"
android:fillColor="#00000000"
android:strokeColor="#000000"
android:strokeLineCap="round"/>
</vector>

0 comments on commit 40323c6

Please sign in to comment.