Skip to content

Commit

Permalink
feat: change home page title
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Dec 15, 2024
1 parent 9b4ba5b commit 04abd23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/src/main/kotlin/li/songe/gkd/ui/home/ControlPage.kt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.input.nestedscroll.nestedScroll
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextOverflow
import androidx.lifecycle.viewModelScope
import androidx.lifecycle.viewmodel.compose.viewModel
Expand All @@ -48,6 +49,7 @@ import li.songe.gkd.ui.style.itemHorizontalPadding
import li.songe.gkd.ui.style.itemPadding
import li.songe.gkd.util.HOME_PAGE_URL
import li.songe.gkd.util.LocalNavController
import li.songe.gkd.util.SafeR
import li.songe.gkd.util.launchAsFn
import li.songe.gkd.util.openUri
import li.songe.gkd.util.ruleSummaryFlow
Expand All @@ -69,7 +71,7 @@ fun useControlPage(): ScaffoldExt {
topBar = {
TopAppBar(scrollBehavior = scrollBehavior, title = {
Text(
text = controlNav.label,
text = stringResource(SafeR.app_name),
)
}, actions = {
IconButton(onClick = throttle {
Expand Down

0 comments on commit 04abd23

Please sign in to comment.