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:
parent
017d4bb977
commit
7a3eb31f4a
2 changed files with 5 additions and 10 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue