~repos /only-bible-app
git clone https://pyrossh.dev/repos/only-bible-app.git
The only bible app you will ever need. No ads. No in-app purchases. No distractions.
1d9db47b
—
Peter John 1 year ago
fix smaller bible names in header
app/src/main/java/dev/pyrossh/onlyBible/ChapterScreen.kt
CHANGED
|
@@ -15,6 +15,7 @@ import androidx.compose.foundation.gestures.detectDragGestures
|
|
|
15
15
|
import androidx.compose.foundation.interaction.MutableInteractionSource
|
|
16
16
|
import androidx.compose.foundation.isSystemInDarkTheme
|
|
17
17
|
import androidx.compose.foundation.layout.Arrangement
|
|
18
|
+
import androidx.compose.foundation.layout.PaddingValues
|
|
18
19
|
import androidx.compose.foundation.layout.Row
|
|
19
20
|
import androidx.compose.foundation.layout.WindowInsets
|
|
20
21
|
import androidx.compose.foundation.layout.asPaddingValues
|
|
@@ -149,10 +150,12 @@ fun EmbeddedSearchBar(
|
|
|
149
150
|
onClose: () -> Unit,
|
|
150
151
|
content: @Composable () -> Unit
|
|
151
152
|
) {
|
|
153
|
+
ProvideTextStyle(
|
|
152
|
-
|
|
154
|
+
value = TextStyle(
|
|
153
|
-
|
|
155
|
+
fontSize = 18.sp,
|
|
154
|
-
|
|
156
|
+
color = MaterialTheme.colorScheme.onSurface,
|
|
157
|
+
)
|
|
155
|
-
)
|
|
158
|
+
) {
|
|
156
159
|
SearchBar(
|
|
157
160
|
query = query,
|
|
158
161
|
onQueryChange = onQueryChange,
|
|
@@ -289,24 +292,30 @@ fun ChapterScreen(
|
|
|
289
292
|
modifier = Modifier
|
|
290
293
|
.height(72.dp),
|
|
291
294
|
title = {
|
|
295
|
+
|
|
292
296
|
Row(
|
|
293
297
|
modifier = Modifier
|
|
294
298
|
.fillMaxWidth(),
|
|
295
|
-
horizontalArrangement = Arrangement.Start,
|
|
296
|
-
verticalAlignment = Alignment.CenterVertically,
|
|
297
299
|
) {
|
|
300
|
+
TextButton(
|
|
301
|
+
contentPadding = PaddingValues(0.dp),
|
|
302
|
+
onClick = { openDrawer(MenuType.Book, bookIndex) }
|
|
303
|
+
) {
|
|
298
|
-
|
|
304
|
+
Text(
|
|
299
|
-
modifier = Modifier.clickable {
|
|
300
|
-
openDrawer(MenuType.Book, bookIndex)
|
|
301
|
-
},
|
|
302
|
-
|
|
305
|
+
text = bookNames[bookIndex] +
|
|
306
|
+
(if (bookNames[bookIndex].length <= 4) "\u3164" else ""),
|
|
307
|
+
// this unicode character is to prevent Job for shifting to right
|
|
303
|
-
|
|
308
|
+
style = TextStyle(
|
|
304
|
-
|
|
309
|
+
fontSize = 22.sp,
|
|
305
|
-
|
|
310
|
+
fontWeight = FontWeight.W500,
|
|
306
|
-
|
|
311
|
+
color = headingColor,
|
|
312
|
+
)
|
|
307
313
|
)
|
|
308
|
-
|
|
314
|
+
}
|
|
315
|
+
TextButton(
|
|
316
|
+
contentPadding = PaddingValues(0.dp),
|
|
309
|
-
|
|
317
|
+
onClick = { openDrawer(MenuType.Chapter, bookIndex) }
|
|
318
|
+
) {
|
|
310
319
|
Text(
|
|
311
320
|
text = "${chapterIndex + 1}",
|
|
312
321
|
style = TextStyle(
|