-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7a1f7bc
commit d7c89b1
Showing
15 changed files
with
163 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
app/src/main/kotlin/com/d4rk/cleaner/constants/ui/bottombar/BottomBarRoutes.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.d4rk.cleaner.constants.ui.bottombar | ||
|
||
object BottomBarRoutes { | ||
const val HOME = "home" | ||
const val APP_MANAGER = "app_manager" | ||
const val MEMORY_MANAGER = "memory_manager" | ||
} |
3 changes: 0 additions & 3 deletions
3
app/src/main/kotlin/com/d4rk/cleaner/data/model/ButtonState.kt
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
app/src/main/kotlin/com/d4rk/cleaner/data/navigation/Screen.kt
This file was deleted.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
app/src/main/kotlin/com/d4rk/cleaner/ui/components/button/ButtonState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.d4rk.cleaner.ui.components.button | ||
|
||
enum class ButtonState { Pressed , Idle } |
40 changes: 40 additions & 0 deletions
40
app/src/main/kotlin/com/d4rk/cleaner/ui/components/navigation/BottomNavigationScreen.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.d4rk.cleaner.ui.components.navigation | ||
|
||
import androidx.compose.material.icons.Icons | ||
import androidx.compose.material.icons.filled.Home | ||
import androidx.compose.material.icons.outlined.Home | ||
import androidx.compose.material.icons.rounded.AppRegistration | ||
import androidx.compose.material.icons.rounded.Storage | ||
import androidx.compose.material.icons.sharp.AppRegistration | ||
import androidx.compose.material.icons.sharp.Storage | ||
import androidx.compose.ui.graphics.vector.ImageVector | ||
import com.d4rk.cleaner.R | ||
import com.d4rk.cleaner.constants.ui.bottombar.BottomBarRoutes | ||
|
||
sealed class BottomNavigationScreen( | ||
val route: String, | ||
val icon: ImageVector, | ||
val selectedIcon: ImageVector, | ||
val title: Int | ||
) { | ||
data object Home : BottomNavigationScreen( | ||
BottomBarRoutes.HOME, | ||
Icons.Outlined.Home, | ||
Icons.Filled.Home, | ||
R.string.home | ||
) | ||
|
||
data object AppManager : BottomNavigationScreen( | ||
BottomBarRoutes.APP_MANAGER, | ||
Icons.Sharp.AppRegistration, | ||
Icons.Rounded.AppRegistration, | ||
R.string.app_manager | ||
) | ||
|
||
data object MemoryManager : BottomNavigationScreen( | ||
BottomBarRoutes.MEMORY_MANAGER, | ||
Icons.Sharp.Storage, | ||
Icons.Rounded.Storage, | ||
R.string.memory_manager | ||
) | ||
} |
4 changes: 2 additions & 2 deletions
4
...cleaner/data/navigation/NavigationItem.kt → ...onents/navigation/NavigationDrawerItem.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package com.d4rk.cleaner.data.navigation | ||
package com.d4rk.cleaner.ui.components.navigation | ||
|
||
import androidx.compose.ui.graphics.vector.ImageVector | ||
|
||
data class NavigationItem( | ||
data class NavigationDrawerItem( | ||
val title: Int, val selectedIcon: ImageVector, val badgeCount: Int? = null | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...cleaner/data/model/InternalStorageInfo.kt → ...er/ui/memory/model/InternalStorageInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...in/com/d4rk/cleaner/data/model/RamInfo.kt → ...m/d4rk/cleaner/ui/memory/model/RamInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...om/d4rk/cleaner/data/model/StorageInfo.kt → ...rk/cleaner/ui/memory/model/StorageInfo.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.