mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 00:37:47 +00:00
Remove slim outline color
This commit is contained in:
parent
a2cce441a8
commit
3a75f2a303
@ -116,8 +116,6 @@ data class OceanLight(override val primary: Color = primaryBlue): Colors {
|
||||
override val qrCodeBackground = backgroundSecondary
|
||||
}
|
||||
|
||||
val Colors.slimOutlineButton: Color get() = text
|
||||
|
||||
@Composable
|
||||
fun Colors(name: String, colors: List<Color>) {
|
||||
Column {
|
||||
|
@ -163,21 +163,21 @@ fun Button(
|
||||
Button(text, onClick, LocalColors.current.primary, ButtonType.Outline, modifier, enabled)
|
||||
}
|
||||
|
||||
@Composable fun SlimOutlineButton(onClick: () -> Unit, modifier: Modifier = Modifier, color: Color = LocalColors.current.slimOutlineButton, enabled: Boolean = true, content: @Composable () -> Unit) {
|
||||
@Composable fun SlimOutlineButton(onClick: () -> Unit, modifier: Modifier = Modifier, color: Color = LocalColors.current.text, enabled: Boolean = true, content: @Composable () -> Unit) {
|
||||
Button(onClick, color, ButtonType.Outline, modifier, enabled, ButtonSize.Slim) { content() }
|
||||
}
|
||||
|
||||
/**
|
||||
* Courtesy [SlimOutlineButton] implementation for buttons that just display text.
|
||||
*/
|
||||
@Composable fun SlimOutlineButton(text: String, modifier: Modifier = Modifier, color: Color = LocalColors.current.slimOutlineButton, enabled: Boolean = true, onClick: () -> Unit) {
|
||||
@Composable fun SlimOutlineButton(text: String, modifier: Modifier = Modifier, color: Color = LocalColors.current.text, enabled: Boolean = true, onClick: () -> Unit) {
|
||||
Button(text, onClick, color, ButtonType.Outline, modifier, enabled, ButtonSize.Slim)
|
||||
}
|
||||
|
||||
@Composable
|
||||
fun SlimOutlineCopyButton(
|
||||
modifier: Modifier = Modifier,
|
||||
color: Color = LocalColors.current.slimOutlineButton,
|
||||
color: Color = LocalColors.current.text,
|
||||
onClick: () -> Unit
|
||||
) {
|
||||
OutlineCopyButton(modifier, ButtonSize.Slim, color, onClick)
|
||||
@ -384,8 +384,10 @@ private fun VariousButtons(
|
||||
verticalArrangement = Arrangement.spacedBy(8.dp)
|
||||
) {
|
||||
PrimaryFillButton("Primary Fill") {}
|
||||
OutlineButton(text = "Outline Button") {}
|
||||
SlimOutlineButton(text = "Slim Outline") {}
|
||||
OutlineButton("Outline Button") {}
|
||||
SlimOutlineButton("Slim Outline") {}
|
||||
SlimOutlineButton("Slim Primary", color = LocalColors.current.buttonOutline) {}
|
||||
SlimOutlineButton("Slim Danger", color = LocalColors.current.danger) {}
|
||||
SlimOutlineCopyButton {}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user