Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ struct TransactionDetailsScreen: View {
// here.
router.push(.tipConversationForUser(userID))
}
.buttonStyle(.filled)
.padding(.top, 4)
.buttonStyle(.filled05)
}
}
.padding(.horizontal, 20)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,18 @@ extension ButtonStyle where Self == FilledButtonStyle {
)
}

/// A full-width filled button at 5% action color opacity — the same tint the
/// row and card surfaces carry, for an action that reads as one of them.
public static var filled05: FilledButtonStyle {
.init(
textColor: .textMain,
textDisabledColor: .textMain.opacity(0.2),
overlayColor: .action.opacity(0.05),
overlayDisabledColor: .action.opacity(0.05),
isCompact: false
)
}

/// A full-width filled button at 20% action color opacity (compact variant).
public static var filled20Compact: FilledButtonStyle {
.init(
Expand Down
Loading