Skip to content

Commit 065e867

Browse files
authored
Dim disabled boost and quote actions (#2340)
1 parent e4f236e commit 065e867

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Packages/StatusKit/Sources/StatusKit/Row/Subviews/StatusActionButton.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ struct StatusActionButton: View {
3636
.offset(x: -8)
3737
#endif
3838
.disabled(isDisabled)
39+
.opacity(isDisabled ? 0.35 : 1)
3940
.accessibilityElement(children: .combine)
4041
.accessibilityLabel(
4142
configuration.display.accessibilityLabel(
@@ -63,6 +64,7 @@ struct StatusActionButton: View {
6364
}
6465
}
6566
.disabled(isQuoteDisabled)
67+
.opacity(isQuoteDisabled ? 0.35 : 1)
6668
} label: {
6769
HStack(spacing: 2) {
6870
actionImage(for: configuration.display)

Packages/StatusKit/Sources/StatusKit/Row/Subviews/StatusRowContextMenu.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ struct StatusRowContextMenu: View {
7272
boostLabel
7373
}
7474
.disabled(isBoostDisabled)
75+
.opacity(isBoostDisabled ? 0.35 : 1)
7576

7677
Button {
7778
Task {

0 commit comments

Comments
 (0)