Add remove item and clear history buttons to search history (#7816)

* Add remove and clear history buttons to search

* Rename `SearchHistoryResultItem` to `SearchHistoryListItem` and `MessagesSearchResultItem` to `MessageSearchListItem`

Also, add some docs.

* Update screenshots

---------

Co-authored-by: ElementBot <android@element.io>
This commit is contained in:
Jorge Martin Espinosa
2026-10-01 18:17:18 +02:00
committed by GitHub
parent d589ff37dc
commit 6cde0706be
26 changed files with 323 additions and 82 deletions
@@ -109,6 +109,7 @@ fun TextButton(
showProgress: Boolean = false,
destructive: Boolean = false,
leadingIcon: IconSource? = null,
colors: ButtonColors = ButtonStyle.Text.getColors(destructive),
) = ButtonInternal(
text = text,
onClick = onClick,
@@ -118,7 +119,8 @@ fun TextButton(
size = size,
showProgress = showProgress,
destructive = destructive,
leadingIcon = leadingIcon
leadingIcon = leadingIcon,
colors = colors,
)
@Composable
@@ -98,6 +98,7 @@
<string name="action_choose_file">"Choose file"</string>
<string name="action_choose_photo">"Choose photo"</string>
<string name="action_clear">"Clear"</string>
<string name="action_clear_all">"Clear all"</string>
<string name="action_close">"Close"</string>
<string name="action_complete_verification">"Complete verification"</string>
<string name="action_confirm">"Confirm"</string>