1616 * along with this program. If not, see <https://www.gnu.org/licenses/>.
1717 */
1818
19- package com.sadellie.unitto
19+ package app.myzel394.numberhub
2020
2121import androidx.activity.ComponentActivity
2222import androidx.activity.SystemBarStyle
@@ -37,14 +37,14 @@ import androidx.compose.ui.platform.LocalContext
3737import androidx.navigation.NavGraph.Companion.findStartDestination
3838import androidx.navigation.compose.currentBackStackEntryAsState
3939import androidx.navigation.compose.rememberNavController
40- import com.sadellie.unitto .core.ui.common.NavigationDrawer
41- import com.sadellie.unitto .core.ui.common.rememberDrawerState
42- import com.sadellie.unitto .core.ui.model.DrawerItem
43- import com.sadellie.unitto .core.ui.pushDynamicShortcut
44- import com.sadellie.unitto .core.ui.theme.DarkThemeColors
45- import com.sadellie.unitto .core.ui.theme.LightThemeColors
46- import com.sadellie.unitto .core.ui.theme.TypographySystem
47- import com.sadellie.unitto .data.model.userprefs.AppPreferences
40+ import app.myzel394.numberhub .core.ui.common.NavigationDrawer
41+ import app.myzel394.numberhub .core.ui.common.rememberDrawerState
42+ import app.myzel394.numberhub .core.ui.model.DrawerItem
43+ import app.myzel394.numberhub .core.ui.pushDynamicShortcut
44+ import app.myzel394.numberhub .core.ui.theme.DarkThemeColors
45+ import app.myzel394.numberhub .core.ui.theme.LightThemeColors
46+ import app.myzel394.numberhub .core.ui.theme.TypographySystem
47+ import app.myzel394.numberhub .data.model.userprefs.AppPreferences
4848import io.github.sadellie.themmo.Themmo
4949import io.github.sadellie.themmo.ThemmoController
5050import kotlinx.coroutines.launch
@@ -76,14 +76,14 @@ internal fun ComponentActivity.App(prefs: AppPreferences?) {
7676 dynamicThemeEnabled = prefs.enableDynamicTheme,
7777 amoledThemeEnabled = prefs.enableAmoledTheme,
7878 customColor = prefs.customColor.toColor(),
79- monetMode = prefs.monetMode
79+ monetMode = prefs.monetMode,
8080 )
8181 }
8282
8383 Themmo (
8484 themmoController = themmoController,
8585 typography = TypographySystem ,
86- animationSpec = tween(250 )
86+ animationSpec = tween(250 ),
8787 ) {
8888 val backgroundColor = MaterialTheme .colorScheme.background
8989 val isDarkThemeEnabled = remember(backgroundColor) { backgroundColor.luminance() < 0.5f }
@@ -92,7 +92,8 @@ internal fun ComponentActivity.App(prefs: AppPreferences?) {
9292 modifier = Modifier ,
9393 state = drawerState,
9494 gesturesEnabled = gesturesEnabled,
95- tabs = DrawerItem .main,
95+ mainTabs = DrawerItem .main,
96+ additionalTabs = DrawerItem .additional,
9697 currentDestination = navBackStackEntry?.destination?.route,
9798 onItemClick = { destination ->
9899 drawerScope.launch { drawerState.close() }
@@ -112,10 +113,9 @@ internal fun ComponentActivity.App(prefs: AppPreferences?) {
112113 navController = navController,
113114 themmoController = it,
114115 startDestination = prefs.startingScreen,
115- rpnMode = prefs.rpnMode,
116- openDrawer = { drawerScope.launch { drawerState.open() } }
116+ openDrawer = { drawerScope.launch { drawerState.open() } },
117117 )
118- }
118+ },
119119 )
120120
121121 DisposableEffect (isDarkThemeEnabled) {
0 commit comments