Convert Source tab to use Compose (#6987)
* Use Compose in Source tab * Replace hashCode with key function * Add ability to turn off pins moving on top of source list * Changes from review comments
This commit is contained in:
@@ -9,7 +9,8 @@ import com.google.android.material.composethemeadapter3.createMdc3Theme
|
||||
fun TachiyomiTheme(content: @Composable () -> Unit) {
|
||||
val context = LocalContext.current
|
||||
val (colorScheme, typography) = createMdc3Theme(
|
||||
context = context
|
||||
context = context,
|
||||
setTextColors = true
|
||||
)
|
||||
|
||||
MaterialTheme(
|
||||
|
||||
16
app/src/main/java/eu/kanade/presentation/theme/Typography.kt
Normal file
16
app/src/main/java/eu/kanade/presentation/theme/Typography.kt
Normal file
@@ -0,0 +1,16 @@
|
||||
package eu.kanade.presentation.theme
|
||||
|
||||
import androidx.compose.material3.MaterialTheme
|
||||
import androidx.compose.material3.Typography
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.text.TextStyle
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
|
||||
val Typography.header: TextStyle
|
||||
@Composable
|
||||
get() {
|
||||
return bodyMedium.copy(
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
fontWeight = FontWeight.SemiBold
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user