mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Move expert mode to dev settings
This commit is contained in:
parent
5ba72b33cf
commit
725c679eef
@ -14,10 +14,13 @@ import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.launch
|
||||
import kotlinx.coroutines.withContext
|
||||
import org.futo.inputmethod.latin.R
|
||||
import org.futo.inputmethod.latin.uix.HiddenKeysSetting
|
||||
import org.futo.inputmethod.latin.uix.SettingsKey
|
||||
import org.futo.inputmethod.latin.uix.settings.NavigationItem
|
||||
import org.futo.inputmethod.latin.uix.settings.NavigationItemStyle
|
||||
import org.futo.inputmethod.latin.uix.settings.ScreenTitle
|
||||
import org.futo.inputmethod.latin.uix.settings.ScrollableList
|
||||
import org.futo.inputmethod.latin.uix.settings.SettingToggleDataStore
|
||||
|
||||
|
||||
val IS_DEVELOPER = booleanPreferencesKey("isDeveloperMode")
|
||||
@ -31,6 +34,12 @@ fun DeveloperScreen(navController: NavHostController = rememberNavController())
|
||||
ScrollableList {
|
||||
ScreenTitle("Developer", showBack = true, navController)
|
||||
|
||||
SettingToggleDataStore(
|
||||
title = "Touch typing mode",
|
||||
subtitle = "Hides all keys. Touch typists only! Recommended to disable emoji key and enable key borders",
|
||||
setting = SettingsKey(HiddenKeysSetting, false)
|
||||
)
|
||||
|
||||
NavigationItem(
|
||||
title = "Crash the app",
|
||||
style = NavigationItemStyle.MiscNoArrow,
|
||||
|
@ -194,17 +194,9 @@ fun ThemePicker(onSelected: (ThemeOption) -> Unit) {
|
||||
item(span = { GridItemSpan(maxCurrentLineSpan) }) {
|
||||
SettingToggleDataStore(
|
||||
title = "Show symbol hints",
|
||||
subtitle = "",
|
||||
setting = SettingsKey(KeyHintsSetting, false)
|
||||
)
|
||||
}
|
||||
item(span = { GridItemSpan(maxCurrentLineSpan) }) {
|
||||
SettingToggleDataStore(
|
||||
title = "Expert mode",
|
||||
subtitle = "Hides all keys. Touch typists only",
|
||||
setting = SettingsKey(HiddenKeysSetting, false)
|
||||
)
|
||||
}
|
||||
items(availableThemeOptions.count()) {
|
||||
val themeOption = availableThemeOptions[it].second
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user