~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.
9d5b7466
—
pyrossh 1 year ago
fix ChapterSelector darkmode
app/src/main/java/dev/pyrossh/onlyBible/composables/ChapterSelector.kt
CHANGED
|
@@ -14,7 +14,7 @@ import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
|
|
|
14
14
|
import androidx.compose.foundation.lazy.items
|
|
15
15
|
import androidx.compose.foundation.lazy.rememberLazyListState
|
|
16
16
|
import androidx.compose.foundation.shape.RoundedCornerShape
|
|
17
|
-
import androidx.compose.material3.
|
|
17
|
+
import androidx.compose.material3.ButtonDefaults
|
|
18
18
|
import androidx.compose.material3.Card
|
|
19
19
|
import androidx.compose.material3.ExperimentalMaterial3Api
|
|
20
20
|
import androidx.compose.material3.ExposedDropdownMenuDefaults
|
|
@@ -32,7 +32,6 @@ import androidx.compose.runtime.mutableStateOf
|
|
|
32
32
|
import androidx.compose.runtime.remember
|
|
33
33
|
import androidx.compose.runtime.setValue
|
|
34
34
|
import androidx.compose.ui.Modifier
|
|
35
|
-
import androidx.compose.ui.graphics.Color
|
|
36
35
|
import androidx.compose.ui.platform.LocalContext
|
|
37
36
|
import androidx.compose.ui.platform.LocalView
|
|
38
37
|
import androidx.compose.ui.text.font.FontWeight
|
|
@@ -137,11 +136,9 @@ fun ChapterSelector(
|
|
|
137
136
|
.fillMaxWidth()
|
|
138
137
|
) {
|
|
139
138
|
TextButton(
|
|
140
|
-
colors =
|
|
139
|
+
colors = ButtonDefaults.textButtonColors(
|
|
141
|
-
containerColor =
|
|
140
|
+
containerColor = MaterialTheme.colorScheme.surface,
|
|
142
|
-
contentColor =
|
|
141
|
+
contentColor = MaterialTheme.colorScheme.onSurface,
|
|
143
|
-
disabledContentColor = Color.Gray,
|
|
144
|
-
disabledContainerColor = Color.Gray,
|
|
145
142
|
),
|
|
146
143
|
shape = RoundedCornerShape(8.dp),
|
|
147
144
|
onClick = {
|