//MetaPhrase/com.github.diegoberaldin.metaphrase.core.common.ui.components
Package-level declarations
Functions
Name | Summary |
---|---|
CustomDialog | [jvm] @Composable fun CustomDialog(title: String, message: String, buttonTexts: List<String> = emptyList(), onClose: (Int?) -> Unit) Custom dialog. |
CustomOpenFileDialog | [jvm] @Composable fun CustomOpenFileDialog(title: String = "", nameFilter: (String) -> Boolean = { true }, parent: Frame? = null, onCloseRequest: (result: String?) -> Unit) Custom open file dialog. |
CustomProgressIndicator | [jvm] @Composable fun CustomProgressIndicator(progress: Float, progressColor: Color = MaterialTheme.colors.primary, modifier: Modifier = Modifier) Custom progress indicator as a striped bar. |
CustomSaveFileDialog | [jvm] @Composable fun CustomSaveFileDialog(title: String = "", initialFileName: String = "", nameFilter: (String) -> Boolean = { true }, parent: Frame? = null, onCloseRequest: (result: String?) -> Unit) Custom save file dialog. |
CustomSpinner | [jvm] @Composable fun CustomSpinner(values: List<String>, current: String?, modifier: Modifier = Modifier, size: DpSize = DpSize(width = 150.dp, height = 20.dp), onValueChanged: (Int) -> Unit? = null, valueColor: Color = Color.Black) Custom spinner for drop-down selection. |
CustomTabBar | [jvm] @Composable fun CustomTabBar(modifier: Modifier = Modifier, tabs: List<String> = emptyList(), current: Int? = null, onTabSelected: (Int) -> Unit? = null, rightIcon: ImageVector? = null, onRightIconClicked: (Int) -> Unit? = null) Custom tab bar. |
CustomTextField | [jvm] @Composable fun CustomTextField(modifier: Modifier = Modifier, label: String = "", hint: String = "", enabled: Boolean = true, secure: Boolean = false, labelColor: Color = Color.White, backgroundColor: Color = Color.White, textColor: Color = Color.Black, labelExtraSpacing: Dp = 0.dp, labelStyle: TextStyle = MaterialTheme.typography.caption, value: String, singleLine: Boolean = false, onValueChange: (String) -> Unit, endButton: @Composable() -> Unit? = null) Custom text field. |
CustomTooltipArea | [jvm] @Composable fun CustomTooltipArea(text: String, modifier: Modifier = Modifier, content: @Composable() -> Unit) Custom tooltip area. |