Skip to content

Commit a34bf0c

Browse files
authored
Merge pull request #132 from YAPP-Github/release/2.1.0
[Release/2.1.0] (main)
2 parents f2e785b + 0aebacf commit a34bf0c

52 files changed

Lines changed: 1273 additions & 255 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/src/main/java/com/threegap/bitnagil/navigation/home/HomeBottomNavigationBar.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ fun HomeBottomNavigationBar(
3030
navController: NavController,
3131
) {
3232
val navBackStackEntry by navController.currentBackStackEntryAsState()
33+
val currentRoute = navBackStackEntry?.destination?.route
3334

3435
Column {
3536
HorizontalDivider(
@@ -52,11 +53,13 @@ fun HomeBottomNavigationBar(
5253
icon = homeRoute.icon,
5354
title = homeRoute.title,
5455
onClick = {
55-
navController.navigate(homeRoute.route) {
56-
popUpTo(0) { inclusive = true }
56+
if (currentRoute != homeRoute.route) {
57+
navController.navigate(homeRoute.route) {
58+
popUpTo(0) { inclusive = true }
59+
}
5760
}
5861
},
59-
selected = navBackStackEntry?.destination?.route == homeRoute.route,
62+
selected = currentRoute == homeRoute.route,
6063
)
6164
}
6265
}

core/designsystem/src/main/java/com/threegap/bitnagil/designsystem/typography/Type.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@ class BitnagilTypography internal constructor(
101101
lineHeight = 30,
102102
letterSpacing = (-0.5f),
103103
),
104+
private val _cafe24SsurroundAir2: BitnagilTextStyle = BitnagilTextStyle(
105+
fontFamily = cafe24SsurroundAir,
106+
fontWeight = FontWeight.Light,
107+
fontSize = 16,
108+
lineHeight = 24,
109+
letterSpacing = (-0.5f),
110+
),
104111
) {
105112
private val _headline1Bold = _headline1.copy(fontWeight = FontWeight.Bold)
106113
private val _headline1Medium = _headline1.copy(fontWeight = FontWeight.Medium)
@@ -163,6 +170,7 @@ class BitnagilTypography internal constructor(
163170
val button1: TextStyle @Composable get() = _button1.toDpTextStyle
164171
val button2: TextStyle @Composable get() = _button2.toDpTextStyle
165172
val cafe24SsurroundAir: TextStyle @Composable get() = _cafe24SsurroundAir.toDpTextStyle
173+
val cafe24SsurroundAir2: TextStyle @Composable get() = _cafe24SsurroundAir2.toDpTextStyle
166174
}
167175

168176
internal val LocalBitnagilTypography = staticCompositionLocalOf { BitnagilTypography() }
5.87 KB
Loading
8.99 KB
Loading
1.47 KB
Loading
1.48 KB
Loading
4.58 KB
Loading
1.84 KB
Loading
3.59 KB
Loading
5.77 KB
Loading

0 commit comments

Comments
 (0)