diff --git a/composeApp/src/commonMain/kotlin/ui/home/HomeScreen.kt b/composeApp/src/commonMain/kotlin/ui/home/HomeScreen.kt index b9a71a8..29c89fc 100644 --- a/composeApp/src/commonMain/kotlin/ui/home/HomeScreen.kt +++ b/composeApp/src/commonMain/kotlin/ui/home/HomeScreen.kt @@ -9,6 +9,7 @@ import androidx.compose.foundation.lazy.items import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.Home import androidx.compose.material.icons.rounded.ArrowDropDown +import androidx.compose.material.icons.rounded.Close import androidx.compose.material.icons.rounded.Refresh import androidx.compose.material.icons.rounded.Search import androidx.compose.material3.* @@ -144,6 +145,16 @@ object HomeScreen : Screen { IconButton(modifier = sidePad, onClick = onRefresh) { Icon(Icons.Rounded.Refresh, contentDescription = "Refresh") } + // Clear filters + if (filteredName.isNotEmpty() || filteredAudioCodec.isNotEmpty() || filteredVideoCodec.isNotEmpty()) { + IconButton(onClick = { + filteredName = "" + filteredAudioCodec = "" + filteredVideoCodec = "" + }) { + Icon(Icons.Rounded.Close, contentDescription = "Clear filters") + } + } } Row(modifier = bottomPad.fillMaxSize()) { LazyColumn {