mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-19 10:18:27 +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 backgroundBubbleSent: Color get() = primary
|
||||||
val qrCodeContent: Color
|
val qrCodeContent: Color
|
||||||
val qrCodeBackground: Color
|
val qrCodeBackground: Color
|
||||||
|
|
||||||
// buttonFill
|
|
||||||
val buttonFill: Color get() = text
|
|
||||||
val buttonFillText: Color get() = background
|
|
||||||
|
|
||||||
// primaryButtonFill
|
|
||||||
val primaryButtonFill: Color
|
val primaryButtonFill: Color
|
||||||
val primaryButtonFillText: Color
|
val primaryButtonFillText: Color
|
||||||
|
|
||||||
// buttonOutline
|
|
||||||
val buttonOutline get() = text
|
|
||||||
|
|
||||||
// primaryButtonOutline
|
|
||||||
val primaryButtonOutline get() = primaryButtonFill
|
|
||||||
}
|
}
|
||||||
|
|
||||||
val Colors.textSelectionColors get() = TextSelectionColors(
|
val Colors.textSelectionColors get() = TextSelectionColors(
|
||||||
|
@ -141,7 +141,7 @@ fun Button(
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Composable fun SlimPrimaryOutlineButton(text: String, modifier: Modifier = Modifier, enabled: Boolean = true, onClick: () -> Unit) {
|
@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
|
@Composable
|
||||||
@ -150,7 +150,7 @@ fun PrimaryOutlineCopyButton(
|
|||||||
style: ButtonStyle = ButtonStyle.Large,
|
style: ButtonStyle = ButtonStyle.Large,
|
||||||
onClick: () -> Unit
|
onClick: () -> Unit
|
||||||
) {
|
) {
|
||||||
OutlineCopyButton(modifier, style, LocalColors.current.primaryButtonOutline, onClick)
|
OutlineCopyButton(modifier, style, LocalColors.current.primaryButtonFill, onClick)
|
||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
@ -307,7 +307,7 @@ private fun VariousButtons(
|
|||||||
OutlineButton("Outline Button Disabled", enabled = false) {}
|
OutlineButton("Outline Button Disabled", enabled = false) {}
|
||||||
SlimOutlineButton("Slim Outline") {}
|
SlimOutlineButton("Slim Outline") {}
|
||||||
SlimOutlineButton("Slim Outline Disabled", enabled = false) {}
|
SlimOutlineButton("Slim Outline Disabled", enabled = false) {}
|
||||||
SlimOutlineButton("Slim Primary", color = LocalColors.current.primaryButtonFill) {}
|
SlimPrimaryOutlineButton("Slim Primary") {}
|
||||||
SlimOutlineButton("Slim Danger", color = LocalColors.current.danger) {}
|
SlimOutlineButton("Slim Danger", color = LocalColors.current.danger) {}
|
||||||
BorderlessButton("Borderless Button") {}
|
BorderlessButton("Borderless Button") {}
|
||||||
BorderlessButton("Borderless Secondary", color = LocalColors.current.textSecondary) {}
|
BorderlessButton("Borderless Secondary", color = LocalColors.current.textSecondary) {}
|
||||||
|
@ -44,7 +44,7 @@ interface ButtonType {
|
|||||||
@Composable
|
@Composable
|
||||||
override fun buttonColors() = ButtonDefaults.buttonColors(
|
override fun buttonColors() = ButtonDefaults.buttonColors(
|
||||||
contentColor = LocalColors.current.background,
|
contentColor = LocalColors.current.background,
|
||||||
backgroundColor = LocalColors.current.buttonFill,
|
backgroundColor = LocalColors.current.text,
|
||||||
disabledContentColor = LocalColors.current.disabled,
|
disabledContentColor = LocalColors.current.disabled,
|
||||||
disabledBackgroundColor = Color.Unspecified
|
disabledBackgroundColor = Color.Unspecified
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user