mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 22:37:56 +01:00 
			
		
		
		
	Update compose-theme-adapter
This commit is contained in:
		| @@ -3,13 +3,17 @@ package eu.kanade.presentation.theme | ||||
| import androidx.compose.material3.MaterialTheme | ||||
| import androidx.compose.runtime.Composable | ||||
| import androidx.compose.ui.platform.LocalContext | ||||
| import androidx.compose.ui.platform.LocalLayoutDirection | ||||
| import com.google.android.material.composethemeadapter3.createMdc3Theme | ||||
|  | ||||
| @Composable | ||||
| fun TachiyomiTheme(content: @Composable () -> Unit) { | ||||
|     val context = LocalContext.current | ||||
|     val layoutDirection = LocalLayoutDirection.current | ||||
|  | ||||
|     val (colorScheme, typography) = createMdc3Theme( | ||||
|         context = context, | ||||
|         layoutDirection = layoutDirection, | ||||
|         setTextColors = true, | ||||
|     ) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user