mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-08 05:47:05 +09:00
DROID-3367 Primitives | Object icons (#2180)
This commit is contained in:
parent
ccbdc3c146
commit
b003a9e915
88 changed files with 632 additions and 1877 deletions
|
@ -27,7 +27,7 @@ import com.anytypeio.anytype.presentation.templates.TemplateView
|
|||
fun ObjectWrapper.Basic.toTemplateView(
|
||||
objType: ObjectWrapper.Type,
|
||||
urlBuilder: UrlBuilder,
|
||||
coverImageHashProvider: CoverImageHashProvider,
|
||||
coverImageHashProvider: CoverImageHashProvider
|
||||
): TemplateView.Template {
|
||||
val coverContainer = if (coverType != CoverType.NONE) {
|
||||
BasicObjectCoverWrapper(this)
|
||||
|
@ -180,7 +180,7 @@ private suspend fun mapLimitObjectTypes(
|
|||
id = objType.id,
|
||||
key = objType.uniqueKey,
|
||||
title = fieldParser.getObjectName(objType),
|
||||
icon = objType.objectIcon(urlBuilder)
|
||||
icon = objType.objectIcon()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -313,7 +313,7 @@ class ObjectTypeViewModel(
|
|||
isEditable = objectPermissions.canEditDetails
|
||||
)
|
||||
uiIconState.value = UiIconState(
|
||||
icon = objType.objectIcon(urlBuilder),
|
||||
icon = objType.objectIcon(),
|
||||
isEditable = objectPermissions.canEditDetails
|
||||
)
|
||||
if (objectPermissions.canDelete) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue