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

DROID-3219 App | Design | Minor design fixes (#2036)

This commit is contained in:
Evgenii Kozlov 2025-01-27 12:58:20 +01:00 committed by konstantiniiv
parent 017d4bb977
commit 7a3eb31f4a
2 changed files with 5 additions and 10 deletions

View file

@ -42,10 +42,14 @@ class ObjectTopToolbar @JvmOverloads constructor(
) = with(binding) {
if (overCover) {
menu.setBackgroundResource(R.drawable.rect_object_menu_button_default)
ivThreeDots.imageTintList = ColorStateList.valueOf(Color.WHITE)
topBackButton.setBackgroundResource(R.drawable.rect_object_menu_button_default)
statusBadge.setBackgroundResource(R.drawable.rect_object_menu_button_default)
ivThreeDots.imageTintList = ColorStateList.valueOf(Color.WHITE)
ivTopBackButton.imageTintList = ColorStateList.valueOf(Color.WHITE)
} else {
menu.background = null
topBackButton.background = null
ivTopBackButton.imageTintList = null
ivThreeDots.imageTintList = null
statusBadge.background = null
}
@ -90,14 +94,6 @@ class ObjectTopToolbar @JvmOverloads constructor(
)
}
fun setIsReadOnly(isReadOnly: Boolean) {
if (isReadOnly) {
binding.ivThreeDots.invisible()
} else {
binding.ivThreeDots.visible()
}
}
companion object {
const val LOCKED_DRAWABLED_INDEX = 2
}

View file

@ -6,7 +6,6 @@
<path
android:pathData="M15,20L7,12L15,4"
android:strokeWidth="2"
android:fillColor="#00000000"
android:strokeColor="@color/glyph_active"
android:strokeLineCap="round"/>
</vector>