color change
This commit is contained in:
@@ -13,7 +13,9 @@ struct MenuBarButtonStyle: ButtonStyle {
|
||||
configuration.label
|
||||
.background(
|
||||
RoundedRectangle(cornerRadius: 6)
|
||||
.fill(configuration.isPressed ? Color.blue.opacity(0.2) : Color.gray.opacity(0.1))
|
||||
.fill(
|
||||
configuration.isPressed ? Color.blue.opacity(0.2) : Color.gray.opacity(0.1)
|
||||
)
|
||||
.opacity(configuration.isPressed ? 1 : 0)
|
||||
)
|
||||
.contentShape(Rectangle())
|
||||
@@ -28,7 +30,7 @@ struct MenuBarHoverButtonStyle: ButtonStyle {
|
||||
configuration.label
|
||||
.background(
|
||||
RoundedRectangle(cornerRadius: 6)
|
||||
.fill(isHovered ? Color.gray.opacity(0.15) : Color.clear)
|
||||
.fill(isHovered ? Color.blue.opacity(0.55) : Color.clear)
|
||||
)
|
||||
.contentShape(Rectangle())
|
||||
.onHover { hovering in
|
||||
|
||||
@@ -102,7 +102,7 @@ struct OnboardingContainerView: View {
|
||||
minWidth: 100, maxWidth: .infinity, minHeight: 44,
|
||||
maxHeight: 44, alignment: .center
|
||||
)
|
||||
.foregroundColor(.white)
|
||||
.foregroundColor(.black)
|
||||
}
|
||||
.glassEffect(.regular.interactive(), in: .rect(cornerRadius: 10))
|
||||
}
|
||||
@@ -126,7 +126,9 @@ struct OnboardingContainerView: View {
|
||||
)
|
||||
.foregroundColor(.white)
|
||||
}
|
||||
.glassEffect(.regular.tint(currentPage == 5 ? .green : .blue).interactive(), in: .rect(cornerRadius: 10))
|
||||
.glassEffect(
|
||||
.regular.tint(currentPage == 5 ? .green : .blue).interactive(),
|
||||
in: .rect(cornerRadius: 10))
|
||||
}
|
||||
.padding(.horizontal, 40)
|
||||
.padding(.bottom, 20)
|
||||
|
||||
Reference in New Issue
Block a user