mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-28 10:47:46 +00:00
Remove unused button colors
This commit is contained in:
parent
d8f032ff9e
commit
e9dd333034
@ -41,20 +41,8 @@ interface Colors {
|
||||
val backgroundBubbleSent: Color get() = primary
|
||||
val qrCodeContent: Color
|
||||
val qrCodeBackground: Color
|
||||
|
||||
// buttonFill
|
||||
val buttonFill: Color get() = text
|
||||
val buttonFillText: Color get() = background
|
||||
|
||||
// primaryButtonFill
|
||||
val primaryButtonFill: Color
|
||||
val primaryButtonFillText: Color
|
||||
|
||||
// buttonOutline
|
||||
val buttonOutline get() = text
|
||||
|
||||
// primaryButtonOutline
|
||||
val primaryButtonOutline get() = primaryButtonFill
|
||||
}
|
||||
|
||||
val Colors.textSelectionColors get() = TextSelectionColors(
|
||||
|
@ -141,7 +141,7 @@ fun Button(
|
||||
}
|
||||
|
||||
@Composable fun SlimPrimaryOutlineButton(text: String, modifier: Modifier = Modifier, enabled: Boolean = true, onClick: () -> Unit) {
|
||||
Button(text, onClick, ButtonType.Outline(LocalColors.current.primaryButtonOutline), modifier, enabled, ButtonStyle.Slim)
|
||||
Button(text, onClick, ButtonType.Outline(LocalColors.current.primaryButtonFill), modifier, enabled, ButtonStyle.Slim)
|
||||
}
|
||||
|
||||
@Composable
|
||||
@ -150,7 +150,7 @@ fun PrimaryOutlineCopyButton(
|
||||
style: ButtonStyle = ButtonStyle.Large,
|
||||
onClick: () -> Unit
|
||||
) {
|
||||
OutlineCopyButton(modifier, style, LocalColors.current.primaryButtonOutline, onClick)
|
||||
OutlineCopyButton(modifier, style, LocalColors.current.primaryButtonFill, onClick)
|
||||
}
|
||||
|
||||
@Composable
|
||||
@ -307,7 +307,7 @@ private fun VariousButtons(
|
||||
OutlineButton("Outline Button Disabled", enabled = false) {}
|
||||
SlimOutlineButton("Slim Outline") {}
|
||||
SlimOutlineButton("Slim Outline Disabled", enabled = false) {}
|
||||
SlimOutlineButton("Slim Primary", color = LocalColors.current.primaryButtonFill) {}
|
||||
SlimPrimaryOutlineButton("Slim Primary") {}
|
||||
SlimOutlineButton("Slim Danger", color = LocalColors.current.danger) {}
|
||||
BorderlessButton("Borderless Button") {}
|
||||
BorderlessButton("Borderless Secondary", color = LocalColors.current.textSecondary) {}
|
||||
|
@ -44,7 +44,7 @@ interface ButtonType {
|
||||
@Composable
|
||||
override fun buttonColors() = ButtonDefaults.buttonColors(
|
||||
contentColor = LocalColors.current.background,
|
||||
backgroundColor = LocalColors.current.buttonFill,
|
||||
backgroundColor = LocalColors.current.text,
|
||||
disabledContentColor = LocalColors.current.disabled,
|
||||
disabledBackgroundColor = Color.Unspecified
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user