Feat - ToolsScreen - add tool group list

This commit is contained in:
2024-03-29 18:09:33 +08:00
parent 4cc1c0f68b
commit f81f26a5cb
39 changed files with 1583 additions and 95 deletions

View File

@@ -4,6 +4,7 @@ import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavOptions
import androidx.navigation.compose.composable
import top.fatweb.oxygen.toolbox.ui.tool.ToolsRoute
const val TOOLS_ROUTE = "tools_route"
@@ -12,5 +13,7 @@ fun NavController.navigateToTools(navOptions: NavOptions) = navigate(TOOLS_ROUTE
fun NavGraphBuilder.toolsScreen() {
composable(
route = TOOLS_ROUTE
) { }
) {
ToolsRoute()
}
}

View File

@@ -1,5 +1,6 @@
package top.fatweb.oxygen.toolbox.navigation
import androidx.annotation.StringRes
import androidx.compose.ui.graphics.vector.ImageVector
import top.fatweb.oxygen.toolbox.R
import top.fatweb.oxygen.toolbox.icon.OxygenIcons
@@ -7,8 +8,8 @@ import top.fatweb.oxygen.toolbox.icon.OxygenIcons
enum class TopLevelDestination(
val selectedIcon: ImageVector,
val unselectedIcon: ImageVector,
val iconTextId: Int,
val titleTextId: Int
@StringRes val iconTextId: Int,
@StringRes val titleTextId: Int
) {
TOOLS(
selectedIcon = OxygenIcons.Home,