Button fixes

This commit is contained in:
Thomas Ricouard 2024-01-08 21:21:32 +01:00
parent 8e8713886a
commit 556eb15fb4

View File

@ -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))