mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-16 19:26:12 -04:00
feat(support): Add wiki link to support screen
This commit is contained in:
@@ -7,6 +7,7 @@ import androidx.compose.material.icons.Icons
|
|||||||
import androidx.compose.material.icons.automirrored.twotone.ArrowBack
|
import androidx.compose.material.icons.automirrored.twotone.ArrowBack
|
||||||
import androidx.compose.material.icons.twotone.BugReport
|
import androidx.compose.material.icons.twotone.BugReport
|
||||||
import androidx.compose.material.icons.twotone.Cancel
|
import androidx.compose.material.icons.twotone.Cancel
|
||||||
|
import androidx.compose.material.icons.automirrored.twotone.MenuBook
|
||||||
import androidx.compose.material.icons.twotone.Settings
|
import androidx.compose.material.icons.twotone.Settings
|
||||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||||
import androidx.compose.material3.Icon
|
import androidx.compose.material3.Icon
|
||||||
@@ -85,6 +86,7 @@ fun SupportScreenHost(vm: SupportViewModel = hiltViewModel()) {
|
|||||||
onContactDeveloper = { vm.goToContactSupport() },
|
onContactDeveloper = { vm.goToContactSupport() },
|
||||||
onDiscord = { vm.openUrl("https://discord.gg/rrxxng35jq") },
|
onDiscord = { vm.openUrl("https://discord.gg/rrxxng35jq") },
|
||||||
onIssueTracker = { vm.openUrl("https://github.com/d4rken-org/capod/issues") },
|
onIssueTracker = { vm.openUrl("https://github.com/d4rken-org/capod/issues") },
|
||||||
|
onWiki = { vm.openUrl("https://github.com/d4rken-org/capod/wiki") },
|
||||||
onTroubleShooter = { vm.goToTroubleShooter() },
|
onTroubleShooter = { vm.goToTroubleShooter() },
|
||||||
onDebugLogToggle = { vm.onDebugLogToggle() },
|
onDebugLogToggle = { vm.onDebugLogToggle() },
|
||||||
onClearLogs = { vm.clearDebugLogs() },
|
onClearLogs = { vm.clearDebugLogs() },
|
||||||
@@ -122,6 +124,7 @@ fun SupportScreen(
|
|||||||
onContactDeveloper: () -> Unit,
|
onContactDeveloper: () -> Unit,
|
||||||
onDiscord: () -> Unit,
|
onDiscord: () -> Unit,
|
||||||
onIssueTracker: () -> Unit,
|
onIssueTracker: () -> Unit,
|
||||||
|
onWiki: () -> Unit,
|
||||||
onTroubleShooter: () -> Unit,
|
onTroubleShooter: () -> Unit,
|
||||||
onDebugLogToggle: () -> Unit,
|
onDebugLogToggle: () -> Unit,
|
||||||
onClearLogs: () -> Unit,
|
onClearLogs: () -> Unit,
|
||||||
@@ -157,6 +160,14 @@ fun SupportScreen(
|
|||||||
item {
|
item {
|
||||||
SettingsCategoryHeader(text = stringResource(R.string.settings_category_gethelp_label))
|
SettingsCategoryHeader(text = stringResource(R.string.settings_category_gethelp_label))
|
||||||
}
|
}
|
||||||
|
item {
|
||||||
|
SettingsBaseItem(
|
||||||
|
title = stringResource(R.string.settings_wiki_label),
|
||||||
|
subtitle = stringResource(R.string.settings_wiki_description),
|
||||||
|
icon = Icons.AutoMirrored.TwoTone.MenuBook,
|
||||||
|
onClick = onWiki,
|
||||||
|
)
|
||||||
|
}
|
||||||
item {
|
item {
|
||||||
SettingsBaseItem(
|
SettingsBaseItem(
|
||||||
title = stringResource(R.string.issue_tracker_label),
|
title = stringResource(R.string.issue_tracker_label),
|
||||||
@@ -233,6 +244,7 @@ private fun SupportScreenPreview() = PreviewWrapper {
|
|||||||
onContactDeveloper = {},
|
onContactDeveloper = {},
|
||||||
onDiscord = {},
|
onDiscord = {},
|
||||||
onIssueTracker = {},
|
onIssueTracker = {},
|
||||||
|
onWiki = {},
|
||||||
onTroubleShooter = {},
|
onTroubleShooter = {},
|
||||||
onDebugLogToggle = {},
|
onDebugLogToggle = {},
|
||||||
onClearLogs = {},
|
onClearLogs = {},
|
||||||
|
|||||||
Reference in New Issue
Block a user