@@ -5,6 +5,7 @@ import androidx.compose.foundation.layout.Column
5
5
import androidx.compose.foundation.layout.heightIn
6
6
import androidx.compose.foundation.layout.padding
7
7
import androidx.compose.foundation.layout.size
8
+ import androidx.compose.foundation.shape.RoundedCornerShape
8
9
import androidx.compose.material3.Icon
9
10
import androidx.compose.material3.Scaffold
10
11
import androidx.compose.material3.SnackbarDuration
@@ -17,6 +18,7 @@ import androidx.compose.runtime.getValue
17
18
import androidx.compose.runtime.remember
18
19
import androidx.compose.runtime.rememberCoroutineScope
19
20
import androidx.compose.ui.Modifier
21
+ import androidx.compose.ui.draw.clip
20
22
import androidx.compose.ui.res.stringResource
21
23
import androidx.compose.ui.unit.dp
22
24
import androidx.lifecycle.compose.collectAsStateWithLifecycle
@@ -31,6 +33,7 @@ import com.eshc.goonersapp.core.designsystem.IconPack
31
33
import com.eshc.goonersapp.core.designsystem.component.GnrNavigationBar
32
34
import com.eshc.goonersapp.core.designsystem.component.GnrNavigationBarItem
33
35
import com.eshc.goonersapp.core.designsystem.component.GnrTopLevelTopBar
36
+ import com.eshc.goonersapp.core.designsystem.iconpack.IcGridCalender
34
37
import com.eshc.goonersapp.core.designsystem.iconpack.IcInfo
35
38
import com.eshc.goonersapp.core.designsystem.iconpack.IcNotification
36
39
import com.eshc.goonersapp.core.designsystem.iconpack.IcPeople
@@ -69,9 +72,7 @@ fun GnrApp(
69
72
70
73
Scaffold (
71
74
modifier = Modifier ,
72
- snackbarHost = {
73
- SnackbarHost (snackbarHostState)
74
- }
75
+ snackbarHost = { SnackbarHost (snackbarHostState) }
75
76
) { padding ->
76
77
Column (
77
78
modifier = Modifier .padding(padding)
@@ -80,44 +81,44 @@ fun GnrApp(
80
81
navController = navController,
81
82
onShowSnackbar = { message ->
82
83
coroutineScope.launch {
83
- snackbarHostState.showSnackbar(
84
- message
85
- )
84
+ snackbarHostState.showSnackbar(message)
86
85
}
87
86
},
88
87
topBar = { topLevelDestination ->
89
88
GnrTopLevelBar (
90
89
topLevelDestination = topLevelDestination,
91
90
icons = {
92
91
when (topLevelDestination) {
93
- TopLevelDestination .TEAM -> {
92
+ TopLevelDestination .HOME -> {
94
93
Icon (
95
- imageVector = IconPack .IcInfo ,
94
+ imageVector = IconPack .IcNotification ,
96
95
contentDescription = null ,
97
96
modifier = Modifier
98
97
.padding(horizontal = 8 .dp)
99
98
.size(24 .dp)
100
- .clickable { navController.navigateToClubDetail() } ,
99
+ .clip( RoundedCornerShape ( 3 .dp)) ,
101
100
tint = ColorFF777777
102
101
)
103
102
Icon (
104
- imageVector = IconPack .IcSearch ,
103
+ imageVector = IconPack .IcPeople ,
105
104
contentDescription = null ,
106
105
modifier = Modifier
107
106
.padding(horizontal = 8 .dp)
108
107
.size(24 .dp)
109
- .clickable { navController.navigateToSearch() },
108
+ .clip(RoundedCornerShape (3 .dp))
109
+ .clickable { navController.navigateToLogin() },
110
110
tint = ColorFF777777
111
111
)
112
112
}
113
113
114
- TopLevelDestination .HOME -> {
114
+ TopLevelDestination .MATCH -> {
115
115
Icon (
116
- imageVector = IconPack .IcNotification ,
116
+ imageVector = IconPack .IcGridCalender ,
117
117
contentDescription = null ,
118
118
modifier = Modifier
119
119
.padding(horizontal = 8 .dp)
120
- .size(24 .dp),
120
+ .size(24 .dp)
121
+ .clip(RoundedCornerShape (3 .dp)),
121
122
tint = ColorFF777777
122
123
)
123
124
Icon (
@@ -126,27 +127,31 @@ fun GnrApp(
126
127
modifier = Modifier
127
128
.padding(horizontal = 8 .dp)
128
129
.size(24 .dp)
130
+ .clip(RoundedCornerShape (3 .dp))
129
131
.clickable { navController.navigateToLogin() },
130
132
tint = ColorFF777777
131
133
)
132
134
}
133
135
134
- else -> {
136
+ TopLevelDestination . TEAM -> {
135
137
Icon (
136
- imageVector = IconPack .IcNotification ,
138
+ imageVector = IconPack .IcInfo ,
137
139
contentDescription = null ,
138
140
modifier = Modifier
139
141
.padding(horizontal = 8 .dp)
140
- .size(24 .dp),
142
+ .size(24 .dp)
143
+ .clip(RoundedCornerShape (3 .dp))
144
+ .clickable { navController.navigateToClubDetail() },
141
145
tint = ColorFF777777
142
146
)
143
147
Icon (
144
- imageVector = IconPack .IcPeople ,
148
+ imageVector = IconPack .IcSearch ,
145
149
contentDescription = null ,
146
150
modifier = Modifier
147
151
.padding(horizontal = 8 .dp)
148
152
.size(24 .dp)
149
- .clickable { navController.navigateToLogin() },
153
+ .clip(RoundedCornerShape (3 .dp))
154
+ .clickable { navController.navigateToSearch() },
150
155
tint = ColorFF777777
151
156
)
152
157
}
0 commit comments