Add: Prefs entries to Pages

This commit is contained in:
machiav3lli 2022-09-17 02:31:47 +02:00
parent 1fbe6e5c69
commit 24063364b7
3 changed files with 35 additions and 6 deletions

View File

@ -16,6 +16,7 @@ import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import com.machiav3lli.fdroid.R
import com.machiav3lli.fdroid.content.Preferences
import com.machiav3lli.fdroid.ui.compose.components.prefs.PreferenceGroup
import com.machiav3lli.fdroid.ui.dialog.BaseDialog
@ -29,8 +30,12 @@ fun PrefsOtherPage() {
dialogPref = pref
openDialog.value = true
}
//val proxyPrefs = listOf()
//val infoPrefs = listOf()
val proxyPrefs = listOf(
Preferences.Key.ProxyType,
Preferences.Key.ProxyHost,
Preferences.Key.ProxyPort,
)
val infoPrefs = emptyList<Preferences.Key<*>>()
Scaffold(
modifier = Modifier.fillMaxSize()

View File

@ -16,6 +16,7 @@ import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import com.machiav3lli.fdroid.R
import com.machiav3lli.fdroid.content.Preferences
import com.machiav3lli.fdroid.ui.compose.components.prefs.PreferenceGroup
import com.machiav3lli.fdroid.ui.dialog.BaseDialog
@ -29,7 +30,18 @@ fun PrefsPersonalPage() {
dialogPref = pref
openDialog.value = true
}
//val personalPrefs = listOf()
val personalPrefs = listOf(
Preferences.Key.Language,
Preferences.Key.Theme,
Preferences.Key.DefaultTab,
Preferences.Key.ShowScreenshots,
Preferences.Key.UpdatedApps,
Preferences.Key.NewApps,
)
val cachePrefs = listOf(
Preferences.Key.ReleasesCacheRetention,
Preferences.Key.ImagesCacheRetention,
)
Scaffold(
modifier = Modifier.fillMaxSize()

View File

@ -16,6 +16,7 @@ import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.dp
import com.machiav3lli.fdroid.R
import com.machiav3lli.fdroid.content.Preferences
import com.machiav3lli.fdroid.ui.compose.components.prefs.PreferenceGroup
import com.machiav3lli.fdroid.ui.dialog.BaseDialog
@ -29,9 +30,20 @@ fun PrefsUpdatesPage() {
dialogPref = pref
openDialog.value = true
}
//val syncPrefs = listOf()
//val downloadPrefs = listOf()
//val installationPrefs = listOf()
val syncPrefs = listOf(
Preferences.Key.AutoSync,
Preferences.Key.AutoSyncInterval,
)
val updatesPrefs = listOf(
Preferences.Key.InstallAfterSync,
Preferences.Key.UpdateNotify,
Preferences.Key.UpdateUnstable,
Preferences.Key.IncompatibleVersions,
)
val installPrefs = listOf(
Preferences.Key.RootPermission,
Preferences.Key.RootSessionInstaller,
)
Scaffold(
modifier = Modifier.fillMaxSize()