|
1 | 1 | package com.chronos.mobile.feature.timetable |
2 | 2 |
|
3 | | -import androidx.compose.foundation.Image |
4 | 3 | import androidx.compose.foundation.border |
5 | 4 | import androidx.compose.foundation.layout.Arrangement |
6 | | -import androidx.compose.foundation.layout.Box |
7 | 5 | import androidx.compose.foundation.layout.Row |
8 | 6 | import androidx.compose.foundation.layout.Spacer |
9 | 7 | import androidx.compose.foundation.layout.fillMaxWidth |
10 | 8 | import androidx.compose.foundation.layout.padding |
11 | | -import androidx.compose.foundation.layout.size |
12 | 9 | import androidx.compose.foundation.layout.width |
13 | 10 | import androidx.compose.foundation.shape.RoundedCornerShape |
14 | 11 | import androidx.compose.material3.MaterialTheme |
15 | 12 | import androidx.compose.material3.OutlinedButton |
16 | 13 | import androidx.compose.material3.OutlinedTextField |
17 | | -import androidx.compose.material3.Surface |
18 | 14 | import androidx.compose.material3.Switch |
19 | 15 | import androidx.compose.material3.Text |
20 | 16 | import androidx.compose.material3.TextButton |
21 | 17 | import androidx.compose.runtime.Composable |
22 | 18 | import androidx.compose.ui.Alignment |
23 | 19 | import androidx.compose.ui.Modifier |
24 | | -import androidx.compose.ui.res.painterResource |
25 | 20 | import androidx.compose.ui.res.stringResource |
26 | 21 | import androidx.compose.ui.text.style.TextAlign |
27 | 22 | import androidx.compose.ui.unit.dp |
@@ -118,37 +113,18 @@ internal fun PeriodStepperRow( |
118 | 113 | } |
119 | 114 |
|
120 | 115 | @Composable |
121 | | -internal fun BrandedDialogTitle( |
| 116 | +internal fun DialogTitleBlock( |
122 | 117 | title: String, |
123 | 118 | subtitle: String, |
124 | 119 | modifier: Modifier = Modifier, |
125 | 120 | ) { |
126 | | - Row( |
127 | | - modifier = modifier, |
128 | | - verticalAlignment = Alignment.CenterVertically, |
129 | | - ) { |
130 | | - Surface( |
131 | | - modifier = Modifier.size(40.dp), |
132 | | - shape = RoundedCornerShape(14.dp), |
133 | | - color = MaterialTheme.colorScheme.primaryContainer, |
134 | | - ) { |
135 | | - Box(contentAlignment = Alignment.Center) { |
136 | | - Image( |
137 | | - painter = painterResource(id = R.drawable.ic_brand_mark), |
138 | | - contentDescription = null, |
139 | | - modifier = Modifier.size(24.dp), |
140 | | - ) |
141 | | - } |
142 | | - } |
143 | | - Spacer(modifier = Modifier.width(12.dp)) |
144 | | - androidx.compose.foundation.layout.Column { |
145 | | - Text(text = title, style = MaterialTheme.typography.titleLarge) |
146 | | - Text( |
147 | | - text = subtitle, |
148 | | - style = MaterialTheme.typography.bodySmall, |
149 | | - color = MaterialTheme.colorScheme.onSurfaceVariant, |
150 | | - ) |
151 | | - } |
| 121 | + androidx.compose.foundation.layout.Column(modifier = modifier) { |
| 122 | + Text(text = title, style = MaterialTheme.typography.titleLarge) |
| 123 | + Text( |
| 124 | + text = subtitle, |
| 125 | + style = MaterialTheme.typography.bodySmall, |
| 126 | + color = MaterialTheme.colorScheme.onSurfaceVariant, |
| 127 | + ) |
152 | 128 | } |
153 | 129 | } |
154 | 130 |
|
|
0 commit comments