add a web prefs dialog

This commit is contained in:
Satindar Dhillon 2022-10-11 15:56:21 -07:00
parent 883ee2a431
commit 3142ff82c5

View file

@ -0,0 +1,35 @@
package app.omnivore.omnivore.ui.reader
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Text
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.Dialog
@Composable
fun WebPreferencesDialog(onDismiss: (WebPreferences?) -> Unit) {
Dialog(onDismissRequest = { onDismiss(null) }) {
Surface(
shape = RoundedCornerShape(16.dp),
color = Color.White
) {
WebPreferencesView(onDismiss)
}
}
}
@Composable
fun WebPreferencesView(onDismiss: (WebPreferences?) -> Unit) {
Text("Web Prefs")
}
data class WebPreferences(
val textFontSize: Int,
val lineHeight: Int,
val maxWidthPercentage: Int,
val themeKey: String,
val fontFamily: WebFont,
val prefersHighContrastText: Boolean
)