1
0
Fork 0
mirror of https://github.com/anyproto/anytype-kotlin.git synced 2025-06-08 05:47:05 +09:00

DROID-2909 - Applied shapes/transparent secondary color for all icon backgrounds in both light and dark modes.

This commit is contained in:
nvgurova 2024-12-06 12:28:17 +01:00
parent e3aa365ecb
commit ace59073bd
No known key found for this signature in database
GPG key ID: 3283F7371DE9C0D2
5 changed files with 5 additions and 3 deletions

View file

@ -20,7 +20,7 @@ import com.anytypeio.anytype.core_ui.views.AvatarTitle
import com.anytypeio.anytype.presentation.objects.ObjectIcon
val avatarBackgroundColor = R.color.shape_secondary
val avatarBackgroundColor = R.color.shape_transparent_secondary
val avatarTextColor = R.color.glyph_active
@Composable

View file

@ -27,7 +27,7 @@ fun EmojiIconView(
backgroundSize: Dp,
iconWithoutBackgroundMaxSize: Dp = 20.dp,
imageMultiplier: Float = 0.625f,
backgroundColor: Int = R.color.shape_secondary
backgroundColor: Int = R.color.shape_transparent_secondary
) {
val (containerModifier, iconModifier) = if (backgroundSize > iconWithoutBackgroundMaxSize) {
modifier

View file

@ -25,7 +25,7 @@ fun EmptyIconView(
emptyType: ObjectIcon.Empty,
iconWithoutBackgroundMaxSize: Dp = 20.dp,
imageMultiplier: Float = 0.625f,
backgroundColor: Int = R.color.shape_secondary
backgroundColor: Int = R.color.shape_transparent_secondary
) {
val (containerModifier, iconModifier) = if (backgroundSize > iconWithoutBackgroundMaxSize) {
modifier

View file

@ -22,6 +22,7 @@
<color name="shape_secondary">#303030</color>
<color name="shape_tertiary">#1F1F1F</color>
<color name="shape_transparent">#24DAD7CA</color>
<color name="shape_transparent_secondary">#26FFFFFF</color>
<color name="shape_transparent_primary">#3DFFFFFF</color>
<color name="glyph_active">#7B7B7B</color>

View file

@ -63,6 +63,7 @@
<color name="shape_secondary">#EBEBEB</color>
<color name="shape_tertiary">#F2F2F2</color>
<color name="shape_transparent">#14535353</color>
<color name="shape_transparent_secondary">#0000000D</color>
<color name="shape_transparent_primary">#1C000000</color>
<color name="glyph_active">#A7A7A7</color>