Add todo info on todo pages
This commit is contained in:
parent
5d3f0ec9f7
commit
4825c85883
|
|
@ -0,0 +1,32 @@
|
||||||
|
package org.lsposed.lspatch.ui.page
|
||||||
|
|
||||||
|
import androidx.compose.foundation.layout.fillMaxSize
|
||||||
|
import androidx.compose.foundation.layout.padding
|
||||||
|
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||||
|
import androidx.compose.material3.Scaffold
|
||||||
|
import androidx.compose.material3.SmallTopAppBar
|
||||||
|
import androidx.compose.material3.Text
|
||||||
|
import androidx.compose.runtime.Composable
|
||||||
|
import androidx.compose.ui.Modifier
|
||||||
|
import androidx.compose.ui.text.style.TextAlign
|
||||||
|
|
||||||
|
@OptIn(ExperimentalMaterial3Api::class)
|
||||||
|
@Composable
|
||||||
|
fun LogsPage() {
|
||||||
|
Scaffold(topBar = { TopBar() }) { innerPadding ->
|
||||||
|
Text(
|
||||||
|
modifier = Modifier
|
||||||
|
.padding(innerPadding)
|
||||||
|
.fillMaxSize(),
|
||||||
|
text = "This page is not yet implemented",
|
||||||
|
textAlign = TextAlign.Center
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Composable
|
||||||
|
private fun TopBar() {
|
||||||
|
SmallTopAppBar(
|
||||||
|
title = { Text(PageList.Logs.title) }
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
@ -5,7 +5,9 @@ import android.content.Intent
|
||||||
import android.util.Log
|
import android.util.Log
|
||||||
import androidx.activity.compose.rememberLauncherForActivityResult
|
import androidx.activity.compose.rememberLauncherForActivityResult
|
||||||
import androidx.activity.result.contract.ActivityResultContracts
|
import androidx.activity.result.contract.ActivityResultContracts
|
||||||
|
import androidx.compose.foundation.layout.fillMaxSize
|
||||||
import androidx.compose.foundation.layout.fillMaxWidth
|
import androidx.compose.foundation.layout.fillMaxWidth
|
||||||
|
import androidx.compose.foundation.layout.padding
|
||||||
import androidx.compose.material.icons.Icons
|
import androidx.compose.material.icons.Icons
|
||||||
import androidx.compose.material.icons.filled.Add
|
import androidx.compose.material.icons.filled.Add
|
||||||
import androidx.compose.material3.*
|
import androidx.compose.material3.*
|
||||||
|
|
@ -31,7 +33,13 @@ fun ManagePage() {
|
||||||
topBar = { TopBar() },
|
topBar = { TopBar() },
|
||||||
floatingActionButton = { Fab() }
|
floatingActionButton = { Fab() }
|
||||||
) { innerPadding ->
|
) { innerPadding ->
|
||||||
|
Text(
|
||||||
|
modifier = Modifier
|
||||||
|
.padding(innerPadding)
|
||||||
|
.fillMaxSize(),
|
||||||
|
text = "This page is not yet implemented",
|
||||||
|
textAlign = TextAlign.Center
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ enum class PageList(
|
||||||
Repo(
|
Repo(
|
||||||
iconSelected = Icons.Filled.GetApp,
|
iconSelected = Icons.Filled.GetApp,
|
||||||
iconNotSelected = Icons.Outlined.GetApp,
|
iconNotSelected = Icons.Outlined.GetApp,
|
||||||
body = {}
|
body = { RepoPage() }
|
||||||
),
|
),
|
||||||
Manage(
|
Manage(
|
||||||
iconSelected = Icons.Filled.Dashboard,
|
iconSelected = Icons.Filled.Dashboard,
|
||||||
|
|
@ -36,7 +36,7 @@ enum class PageList(
|
||||||
Logs(
|
Logs(
|
||||||
iconSelected = Icons.Filled.Assignment,
|
iconSelected = Icons.Filled.Assignment,
|
||||||
iconNotSelected = Icons.Outlined.Assignment,
|
iconNotSelected = Icons.Outlined.Assignment,
|
||||||
body = {}
|
body = { LogsPage() }
|
||||||
),
|
),
|
||||||
Settings(
|
Settings(
|
||||||
iconSelected = Icons.Filled.Settings,
|
iconSelected = Icons.Filled.Settings,
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,32 @@
|
||||||
|
package org.lsposed.lspatch.ui.page
|
||||||
|
|
||||||
|
import androidx.compose.foundation.layout.fillMaxSize
|
||||||
|
import androidx.compose.foundation.layout.padding
|
||||||
|
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||||
|
import androidx.compose.material3.Scaffold
|
||||||
|
import androidx.compose.material3.SmallTopAppBar
|
||||||
|
import androidx.compose.material3.Text
|
||||||
|
import androidx.compose.runtime.Composable
|
||||||
|
import androidx.compose.ui.Modifier
|
||||||
|
import androidx.compose.ui.text.style.TextAlign
|
||||||
|
|
||||||
|
@OptIn(ExperimentalMaterial3Api::class)
|
||||||
|
@Composable
|
||||||
|
fun RepoPage() {
|
||||||
|
Scaffold(topBar = { TopBar() }) { innerPadding ->
|
||||||
|
Text(
|
||||||
|
modifier = Modifier
|
||||||
|
.padding(innerPadding)
|
||||||
|
.fillMaxSize(),
|
||||||
|
text = "This page is not yet implemented",
|
||||||
|
textAlign = TextAlign.Center
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Composable
|
||||||
|
private fun TopBar() {
|
||||||
|
SmallTopAppBar(
|
||||||
|
title = { Text(PageList.Repo.title) }
|
||||||
|
)
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue