Skip to content

Commit

Permalink
update input borders
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-dydx committed Jan 3, 2024
1 parent 32dac7c commit 20fa625
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion PlatformUI/PlatformUI/Components/ComboBox/ComboBox.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class ComboBoxModel: PlatformViewModel {
trailing: trailing)
.createView(parentStyle: style)
.themeColor(background: .layer4)
.cornerRadius(12)
.borderAndClip(style: .cornerRadius(12), borderColor: .borderDefault, lineWidth: 1)
.onTapGesture { [weak self] in
self?.onTapAction?()
}
Expand Down
3 changes: 1 addition & 2 deletions dydx/dydxViews/dydxViews/_v4/Receipt/dydxReceiptView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@ public class dydxReceiptViewModel: PlatformViewModel {
.frame(maxWidth: .infinity)
.padding()
.themeColor(background: .layer3)
.cornerRadius(8)
.border(cornerRadius: 8)
.borderAndClip(style: .cornerRadius(12), borderColor: .borderDefault, lineWidth: 1)
.padding(.horizontal, -8)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ public class dydxTradeInputSizeViewModel: PlatformTextInputViewModel {

private func createTopView(inputView: PlatformView, parentStyle: ThemeStyle) -> some View {
inputView
.themeColor(background: .layer4)
.cornerRadius(12)
.makeInput()
}

private func createBottomView(parentStyle: ThemeStyle) -> some View {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ struct TradeInputModifier: ViewModifier {
func body(content: Content) -> some View {
content
.themeColor(background: .layer4)
.cornerRadius(12)
.borderAndClip(style: .cornerRadius(12), borderColor: .borderDefault, lineWidth: 1)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ public class dydxTransferOutViewModel: PlatformViewModel {
VStack(spacing: 12) {
self.chainsComboBox?.createView(parentStyle: style)
self.addressInput?.createView(parentStyle: style)
.themeColor(background: .layer4)
.cornerRadius(12)
.makeInput()
self.tokensComboBox?.createView(parentStyle: style)
self.amountBox?.createView(parentStyle: style)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ public class dydxTransferWithdrawalViewModel: PlatformViewModel {
VStack(spacing: 12) {
HStack {
self.addressInput?.createView(parentStyle: style)
.themeColor(background: .layer4)
.cornerRadius(12)
.makeInput()

self.chainsComboBox?.createView(parentStyle: style)
}
Expand Down

0 comments on commit 20fa625

Please sign in to comment.