mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-26 21:26:29 +02:00
Light chat bubbles
This commit is contained in:
@@ -95,11 +95,11 @@ import com.vitorpamplona.amethyst.ui.theme.Size20dp
|
|||||||
import com.vitorpamplona.amethyst.ui.theme.Size5Modifier
|
import com.vitorpamplona.amethyst.ui.theme.Size5Modifier
|
||||||
import com.vitorpamplona.amethyst.ui.theme.StdHorzSpacer
|
import com.vitorpamplona.amethyst.ui.theme.StdHorzSpacer
|
||||||
import com.vitorpamplona.amethyst.ui.theme.chatAuthorBox
|
import com.vitorpamplona.amethyst.ui.theme.chatAuthorBox
|
||||||
|
import com.vitorpamplona.amethyst.ui.theme.chatBackground
|
||||||
import com.vitorpamplona.amethyst.ui.theme.incognitoIconModifier
|
import com.vitorpamplona.amethyst.ui.theme.incognitoIconModifier
|
||||||
import com.vitorpamplona.amethyst.ui.theme.mediumImportanceLink
|
import com.vitorpamplona.amethyst.ui.theme.mediumImportanceLink
|
||||||
import com.vitorpamplona.amethyst.ui.theme.messageBubbleLimits
|
import com.vitorpamplona.amethyst.ui.theme.messageBubbleLimits
|
||||||
import com.vitorpamplona.amethyst.ui.theme.placeholderText
|
import com.vitorpamplona.amethyst.ui.theme.placeholderText
|
||||||
import com.vitorpamplona.amethyst.ui.theme.subtleBorder
|
|
||||||
import com.vitorpamplona.quartz.events.ChannelCreateEvent
|
import com.vitorpamplona.quartz.events.ChannelCreateEvent
|
||||||
import com.vitorpamplona.quartz.events.ChannelMetadataEvent
|
import com.vitorpamplona.quartz.events.ChannelMetadataEvent
|
||||||
import com.vitorpamplona.quartz.events.ChatMessageEvent
|
import com.vitorpamplona.quartz.events.ChatMessageEvent
|
||||||
@@ -274,7 +274,7 @@ fun ChatBubbleLayout(
|
|||||||
inner: @Composable (MutableState<Color>) -> Unit,
|
inner: @Composable (MutableState<Color>) -> Unit,
|
||||||
) {
|
) {
|
||||||
val loggedInColors = MaterialTheme.colorScheme.mediumImportanceLink
|
val loggedInColors = MaterialTheme.colorScheme.mediumImportanceLink
|
||||||
val otherColors = MaterialTheme.colorScheme.subtleBorder
|
val otherColors = MaterialTheme.colorScheme.chatBackground
|
||||||
val defaultBackground = MaterialTheme.colorScheme.background
|
val defaultBackground = MaterialTheme.colorScheme.background
|
||||||
|
|
||||||
val backgroundBubbleColor =
|
val backgroundBubbleColor =
|
||||||
|
@@ -115,7 +115,10 @@ private val DarkSubtleButton = DarkColorPalette.onSurface.copy(alpha = 0.22f)
|
|||||||
private val LightSubtleButton = LightColorPalette.onSurface.copy(alpha = 0.22f)
|
private val LightSubtleButton = LightColorPalette.onSurface.copy(alpha = 0.22f)
|
||||||
|
|
||||||
private val DarkSubtleBorder = DarkColorPalette.onSurface.copy(alpha = 0.12f)
|
private val DarkSubtleBorder = DarkColorPalette.onSurface.copy(alpha = 0.12f)
|
||||||
private val LightSubtleBorder = LightColorPalette.onSurface.copy(alpha = 0.12f)
|
private val LightSubtleBorder = LightColorPalette.onSurface.copy(alpha = 0.05f)
|
||||||
|
|
||||||
|
private val DarkChatBackground = DarkColorPalette.onSurface.copy(alpha = 0.12f)
|
||||||
|
private val LightChatBackground = LightColorPalette.onSurface.copy(alpha = 0.08f)
|
||||||
|
|
||||||
private val DarkOverPictureBackground = DarkColorPalette.background.copy(0.62f)
|
private val DarkOverPictureBackground = DarkColorPalette.background.copy(0.62f)
|
||||||
private val LightOverPictureBackground = LightColorPalette.background.copy(0.62f)
|
private val LightOverPictureBackground = LightColorPalette.background.copy(0.62f)
|
||||||
@@ -382,6 +385,9 @@ val ColorScheme.grayText: Color
|
|||||||
val ColorScheme.subtleBorder: Color
|
val ColorScheme.subtleBorder: Color
|
||||||
get() = if (isLight) LightSubtleBorder else DarkSubtleBorder
|
get() = if (isLight) LightSubtleBorder else DarkSubtleBorder
|
||||||
|
|
||||||
|
val ColorScheme.chatBackground: Color
|
||||||
|
get() = if (isLight) LightChatBackground else DarkChatBackground
|
||||||
|
|
||||||
val ColorScheme.subtleButton: Color
|
val ColorScheme.subtleButton: Color
|
||||||
get() = if (isLight) LightSubtleButton else DarkSubtleButton
|
get() = if (isLight) LightSubtleButton else DarkSubtleButton
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user