mirror of
https://github.com/T8RIN/ImageToolbox.git
synced 2025-12-28 05:14:55 +00:00
refactor
This commit is contained in:
parent
f45112c130
commit
f2d1a9a839
@ -18,6 +18,7 @@
|
||||
package com.t8rin.imagetoolbox.feature.settings.presentation.components
|
||||
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.fillMaxWidth
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
@ -61,6 +62,8 @@ fun SnowfallModeSettingItem(
|
||||
enabled = true,
|
||||
itemCount = entries.size,
|
||||
title = {},
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
isScrollable = false,
|
||||
selectedIndex = derivedValueOf(value) {
|
||||
entries.indexOfFirst { it::class.isInstance(value) }
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user