From 40323c6561ff99cd06eeabef07097b63ff30308b Mon Sep 17 00:00:00 2001 From: urFate Date: Thu, 2 Jan 2025 16:45:11 +0300 Subject: [PATCH] refactor(search): history element icon --- .../app/ui/activity/search/SearchActivity.kt | 4 +--- app/src/main/res/drawable/undo.xml | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 app/src/main/res/drawable/undo.xml diff --git a/app/src/main/java/org/shirabox/app/ui/activity/search/SearchActivity.kt b/app/src/main/java/org/shirabox/app/ui/activity/search/SearchActivity.kt index 323e41a..7fb59f3 100644 --- a/app/src/main/java/org/shirabox/app/ui/activity/search/SearchActivity.kt +++ b/app/src/main/java/org/shirabox/app/ui/activity/search/SearchActivity.kt @@ -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 @@ -197,7 +195,7 @@ fun SearchScreen() { }, leadingContent = { Icon( - imageVector = Icons.Default.History, + painter = painterResource(R.drawable.undo), contentDescription = null ) }, diff --git a/app/src/main/res/drawable/undo.xml b/app/src/main/res/drawable/undo.xml new file mode 100644 index 0000000..b838c3a --- /dev/null +++ b/app/src/main/res/drawable/undo.xml @@ -0,0 +1,20 @@ + + + +