mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-24 22:11:07 +01:00
Button fixes
This commit is contained in:
parent
8e8713886a
commit
556eb15fb4
@ -177,6 +177,7 @@ struct StatusRowActionsView: View {
|
|||||||
.padding(.vertical, 6)
|
.padding(.vertical, 6)
|
||||||
}
|
}
|
||||||
.menuStyle(.button)
|
.menuStyle(.button)
|
||||||
|
.buttonStyle(.borderless)
|
||||||
.foregroundStyle(.secondary)
|
.foregroundStyle(.secondary)
|
||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
.accessibilityLabel("status.action.context-menu")
|
.accessibilityLabel("status.action.context-menu")
|
||||||
@ -226,10 +227,10 @@ struct StatusRowActionsView: View {
|
|||||||
.contentShape(Rectangle())
|
.contentShape(Rectangle())
|
||||||
}
|
}
|
||||||
.buttonStyle(
|
.buttonStyle(
|
||||||
.statusAction(
|
.statusAction(
|
||||||
isOn: action.isOn(dataController: statusDataController),
|
isOn: action.isOn(dataController: statusDataController),
|
||||||
tintColor: action.tintColor(theme: theme)
|
tintColor: action.tintColor(theme: theme)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.disabled(action == .boost &&
|
.disabled(action == .boost &&
|
||||||
(viewModel.status.visibility == .direct || viewModel.status.visibility == .priv && viewModel.status.account.id != currentAccount.account?.id))
|
(viewModel.status.visibility == .direct || viewModel.status.visibility == .priv && viewModel.status.account.id != currentAccount.account?.id))
|
||||||
|
Loading…
Reference in New Issue
Block a user