Move expert mode to dev settings

This commit is contained in:
Aleksandras Kostarevas 2024-04-11 00:19:53 -05:00
parent 5ba72b33cf
commit 725c679eef
2 changed files with 9 additions and 8 deletions

View File

@ -14,10 +14,13 @@ import kotlinx.coroutines.delay
import kotlinx.coroutines.launch import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext import kotlinx.coroutines.withContext
import org.futo.inputmethod.latin.R 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.NavigationItem
import org.futo.inputmethod.latin.uix.settings.NavigationItemStyle import org.futo.inputmethod.latin.uix.settings.NavigationItemStyle
import org.futo.inputmethod.latin.uix.settings.ScreenTitle import org.futo.inputmethod.latin.uix.settings.ScreenTitle
import org.futo.inputmethod.latin.uix.settings.ScrollableList import org.futo.inputmethod.latin.uix.settings.ScrollableList
import org.futo.inputmethod.latin.uix.settings.SettingToggleDataStore
val IS_DEVELOPER = booleanPreferencesKey("isDeveloperMode") val IS_DEVELOPER = booleanPreferencesKey("isDeveloperMode")
@ -31,6 +34,12 @@ fun DeveloperScreen(navController: NavHostController = rememberNavController())
ScrollableList { ScrollableList {
ScreenTitle("Developer", showBack = true, navController) 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( NavigationItem(
title = "Crash the app", title = "Crash the app",
style = NavigationItemStyle.MiscNoArrow, style = NavigationItemStyle.MiscNoArrow,

View File

@ -194,17 +194,9 @@ fun ThemePicker(onSelected: (ThemeOption) -> Unit) {
item(span = { GridItemSpan(maxCurrentLineSpan) }) { item(span = { GridItemSpan(maxCurrentLineSpan) }) {
SettingToggleDataStore( SettingToggleDataStore(
title = "Show symbol hints", title = "Show symbol hints",
subtitle = "",
setting = SettingsKey(KeyHintsSetting, false) 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()) { items(availableThemeOptions.count()) {
val themeOption = availableThemeOptions[it].second val themeOption = availableThemeOptions[it].second