mirror of
https://github.com/anyproto/anytype-kotlin.git
synced 2025-06-10 10:00:44 +09:00
parent
ba0a325f5d
commit
d327bcb7eb
2 changed files with 3 additions and 29 deletions
|
@ -394,11 +394,7 @@ abstract class BlockActionToolbar : Fragment() {
|
|||
ActionItemType.Divider,
|
||||
ActionItemType.Duplicate,
|
||||
ActionItemType.Divider,
|
||||
ActionItemType.MoveTo,
|
||||
ActionItemType.DividerExtended,
|
||||
ActionItemType.Color,
|
||||
ActionItemType.Divider,
|
||||
ActionItemType.Background
|
||||
ActionItemType.MoveTo
|
||||
)
|
||||
|
||||
val TEXT = listOf(
|
||||
|
@ -410,11 +406,7 @@ abstract class BlockActionToolbar : Fragment() {
|
|||
ActionItemType.Divider,
|
||||
ActionItemType.MoveTo,
|
||||
ActionItemType.DividerExtended,
|
||||
ActionItemType.Style,
|
||||
ActionItemType.Divider,
|
||||
ActionItemType.Color,
|
||||
ActionItemType.Divider,
|
||||
ActionItemType.Background
|
||||
ActionItemType.Style
|
||||
)
|
||||
|
||||
val CHECKBOX_CHECKED = listOf(
|
||||
|
@ -426,9 +418,7 @@ abstract class BlockActionToolbar : Fragment() {
|
|||
ActionItemType.Divider,
|
||||
ActionItemType.MoveTo,
|
||||
ActionItemType.DividerExtended,
|
||||
ActionItemType.Style,
|
||||
ActionItemType.Divider,
|
||||
ActionItemType.Background
|
||||
ActionItemType.Style
|
||||
)
|
||||
|
||||
val VIDEO_PICTURE = listOf(
|
||||
|
|
|
@ -1064,22 +1064,6 @@ class PageViewModel(
|
|||
ActionItemType.MoveTo -> {
|
||||
_error.value = "Move To not implemented"
|
||||
}
|
||||
ActionItemType.Color -> {
|
||||
controlPanelInteractor.onEvent(
|
||||
ControlPanelMachine.Event.OnBlockActionToolbarTextColorClicked(
|
||||
target = blocks.first { it.id == orchestrator.stores.focus.current().id }
|
||||
)
|
||||
)
|
||||
dispatch(Command.PopBackStack)
|
||||
}
|
||||
ActionItemType.Background -> {
|
||||
controlPanelInteractor.onEvent(
|
||||
ControlPanelMachine.Event.OnBlockActionToolbarBackgroundColorClicked(
|
||||
target = blocks.first { it.id == orchestrator.stores.focus.current().id }
|
||||
)
|
||||
)
|
||||
dispatch(Command.PopBackStack)
|
||||
}
|
||||
ActionItemType.Style -> {
|
||||
controlPanelInteractor.onEvent(
|
||||
ControlPanelMachine.Event.OnBlockActionToolbarStyleClicked(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue