Skip to content

Commit 40323c6

Browse files
committed
refactor(search): history element icon
1 parent 375bb2f commit 40323c6

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

app/src/main/java/org/shirabox/app/ui/activity/search/SearchActivity.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ import androidx.compose.foundation.layout.fillMaxWidth
2222
import androidx.compose.foundation.layout.padding
2323
import androidx.compose.foundation.lazy.LazyColumn
2424
import androidx.compose.foundation.lazy.items
25-
import androidx.compose.material.icons.Icons
26-
import androidx.compose.material.icons.filled.History
2725
import androidx.compose.material3.ExperimentalMaterial3Api
2826
import androidx.compose.material3.Icon
2927
import androidx.compose.material3.IconButton
@@ -197,7 +195,7 @@ fun SearchScreen() {
197195
},
198196
leadingContent = {
199197
Icon(
200-
imageVector = Icons.Default.History,
198+
painter = painterResource(R.drawable.undo),
201199
contentDescription = null
202200
)
203201
},

app/src/main/res/drawable/undo.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="24dp"
3+
android:height="24dp"
4+
android:viewportWidth="24"
5+
android:viewportHeight="24">
6+
<path
7+
android:pathData="M5.636,18.364A9,9 0,1 0,12 3C7.942,3 5.482,5.705 3,8.5"
8+
android:strokeLineJoin="round"
9+
android:strokeWidth="1.5"
10+
android:fillColor="#00000000"
11+
android:strokeColor="#000000"
12+
android:strokeLineCap="round"/>
13+
<path
14+
android:pathData="M3,4.5v4h4"
15+
android:strokeLineJoin="round"
16+
android:strokeWidth="1.5"
17+
android:fillColor="#00000000"
18+
android:strokeColor="#000000"
19+
android:strokeLineCap="round"/>
20+
</vector>

0 commit comments

Comments
 (0)