Skip to content

Commit 3462c32

Browse files
authored
Round the Stars action buttons into capsules like the iOS client (#138)
1 parent e03785d commit 3462c32

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎packages/StarsUI/Sources/StarsUI/Star_AuctionListController.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ private final class RowView : GeneralContainableRowView {
116116
public required init(frame frameRect: NSRect) {
117117
super.init(frame: frameRect)
118118
addSubview(textView)
119-
layer?.cornerRadius = 10
119+
layer?.cornerRadius = 20
120120
scaleOnClick = true
121121
self.set(background: theme.colors.accent, for: .Normal)
122122

‎packages/StarsUI/Sources/StarsUI/Star_ListScreen.swift‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ private final class BalanceView: GeneralContainableRowView {
369369
addSubview(action)
370370
action.autohighlight = false
371371
action.scaleOnClick = true
372-
action.layer?.cornerRadius = 10
372+
action.layer?.cornerRadius = 20
373373

374374
balance.userInteractionEnabled = false
375375
info.userInteractionEnabled = false
@@ -464,7 +464,7 @@ private final class BalanceView: GeneralContainableRowView {
464464
}
465465
current.autohighlight = false
466466
current.scaleOnClick = true
467-
current.layer?.cornerRadius = 10
467+
current.layer?.cornerRadius = 20
468468

469469
current.setSingle(handler: { [weak item] _ in
470470
item?.stats()

‎packages/StarsUI/Sources/StarsUI/Star_PurchaseInApp.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ private final class AcceptView : Control {
165165
public required init(frame frameRect: NSRect) {
166166
super.init(frame: frameRect)
167167
addSubview(textView)
168-
layer?.cornerRadius = 10
168+
layer?.cornerRadius = 20
169169
scaleOnClick = true
170170
self.set(background: theme.colors.accent, for: .Normal)
171171

‎packages/StarsUI/Sources/StarsUI/Star_ReactionsController.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ private final class AcceptView : Control {
258258
required init(frame frameRect: NSRect) {
259259
super.init(frame: frameRect)
260260
addSubview(textView)
261-
layer?.cornerRadius = 10
261+
layer?.cornerRadius = 20
262262
scaleOnClick = true
263263

264264
textView.userInteractionEnabled = false

0 commit comments

Comments
 (0)