add sliderPreference and a partial PreferencesScreen

This commit is contained in:
Helium314 2025-01-26 21:16:26 +01:00
parent e7c2301643
commit 3563ded922
7 changed files with 283 additions and 3 deletions

View file

@ -8,6 +8,7 @@ import androidx.annotation.StringRes
import androidx.compose.runtime.Composable
import helium314.keyboard.settings.screens.createAboutPrefs
import helium314.keyboard.settings.screens.createCorrectionPrefs
import helium314.keyboard.settings.screens.createPreferencesPrefs
class AllPrefs(context: Context) {
private val list = createPrefDefs(context)
@ -49,7 +50,8 @@ class PrefDef(
}
}
private fun createPrefDefs(context: Context) = createAboutPrefs(context) + createCorrectionPrefs(context)
private fun createPrefDefs(context: Context) = createAboutPrefs(context) +
createCorrectionPrefs(context) + createPreferencesPrefs(context)
// todo: move somewhere else
fun Context.getActivity(): ComponentActivity? {