Skip to content

Commit

Permalink
fix(editor): use setColor instead only color
Browse files Browse the repository at this point in the history
  • Loading branch information
teixeira0x committed Dec 12, 2024
1 parent 4708b3a commit c7b3573
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ open class EditorActionsMenu(val editor: IDEEditor) :
val drawable = GradientDrawable()
drawable.shape = GradientDrawable.RECTANGLE
drawable.cornerRadius = SizeUtils.dp2px(28f).toFloat() // Recommeneded size is 28dp
drawable.color = editor.context.resolveAttr(R.attr.colorSurface)
drawable.setColor(editor.context.resolveAttr(R.attr.colorSurface))
drawable.setStroke(SizeUtils.dp2px(1f), editor.context.resolveAttr(R.attr.colorOutline))
list.background = drawable
}
Expand Down

0 comments on commit c7b3573

Please sign in to comment.