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

@@ -0,0 +1,12 @@
package top.fatweb.oxygen.toolbox.model.tool
import androidx.compose.ui.graphics.vector.ImageVector
import top.fatweb.oxygen.toolbox.icon.OxygenIcons
data class Tool(
val id: String,
val icon: ImageVector = OxygenIcons.Tool,
val name: String
)

View File

@@ -0,0 +1,14 @@
package top.fatweb.oxygen.toolbox.model.tool
import androidx.compose.ui.graphics.vector.ImageVector
import top.fatweb.oxygen.toolbox.icon.OxygenIcons
data class ToolGroup(
val id: String,
val icon: ImageVector = OxygenIcons.Box,
val title: String,
val tools: List<Tool> = emptyList()
)

View File

@@ -1,4 +1,4 @@
package top.fatweb.oxygen.toolbox.model
package top.fatweb.oxygen.toolbox.model.userdata
enum class DarkThemeConfig {
FOLLOW_SYSTEM,

View File

@@ -1,4 +1,4 @@
package top.fatweb.oxygen.toolbox.model
package top.fatweb.oxygen.toolbox.model.userdata
enum class LanguageConfig(val code: String? = null) {
FOLLOW_SYSTEM,

View File

@@ -1,4 +1,4 @@
package top.fatweb.oxygen.toolbox.model
package top.fatweb.oxygen.toolbox.model.userdata
enum class LaunchPageConfig {
TOOLS,

View File

@@ -1,4 +1,4 @@
package top.fatweb.oxygen.toolbox.model
package top.fatweb.oxygen.toolbox.model.userdata
enum class ThemeBrandConfig {
DEFAULT,

View File

@@ -1,4 +1,4 @@
package top.fatweb.oxygen.toolbox.model
package top.fatweb.oxygen.toolbox.model.userdata
data class UserData(
val languageConfig: LanguageConfig,