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