fix(mac): align cli button height
parent
80b3b9e00c
commit
2288ec7384
|
|
@ -272,10 +272,10 @@ struct GeneralSettings: View {
|
||||||
.opacity(self.isInstallingCLI ? 0 : 1)
|
.opacity(self.isInstallingCLI ? 0 : 1)
|
||||||
if self.isInstallingCLI {
|
if self.isInstallingCLI {
|
||||||
ProgressView()
|
ProgressView()
|
||||||
.controlSize(.small)
|
.controlSize(.mini)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(minWidth: 150, minHeight: 24)
|
.frame(minWidth: 150)
|
||||||
}
|
}
|
||||||
.disabled(self.isInstallingCLI)
|
.disabled(self.isInstallingCLI)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -133,9 +133,8 @@ struct OnboardingView: View {
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
VStack(spacing: 0) {
|
VStack(spacing: 0) {
|
||||||
GlowingClawdisIcon(size: 156)
|
GlowingClawdisIcon(size: 156, glowIntensity: 0.28)
|
||||||
.padding(.top, 10)
|
.offset(y: 8)
|
||||||
.padding(.bottom, 2)
|
|
||||||
.frame(height: 176)
|
.frame(height: 176)
|
||||||
|
|
||||||
GeometryReader { _ in
|
GeometryReader { _ in
|
||||||
|
|
@ -867,10 +866,10 @@ struct OnboardingView: View {
|
||||||
.opacity(self.installingCLI ? 0 : 1)
|
.opacity(self.installingCLI ? 0 : 1)
|
||||||
if self.installingCLI {
|
if self.installingCLI {
|
||||||
ProgressView()
|
ProgressView()
|
||||||
.controlSize(.small)
|
.controlSize(.mini)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.frame(minWidth: 120, minHeight: 28)
|
.frame(minWidth: 120)
|
||||||
}
|
}
|
||||||
.buttonStyle(.borderedProminent)
|
.buttonStyle(.borderedProminent)
|
||||||
.disabled(self.installingCLI)
|
.disabled(self.installingCLI)
|
||||||
|
|
@ -1485,6 +1484,8 @@ private struct GlowingClawdisIcon: View {
|
||||||
}
|
}
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
|
let glowBlurRadius: CGFloat = 18
|
||||||
|
let glowCanvasSize: CGFloat = self.size + 56
|
||||||
ZStack {
|
ZStack {
|
||||||
Circle()
|
Circle()
|
||||||
.fill(
|
.fill(
|
||||||
|
|
@ -1495,9 +1496,11 @@ private struct GlowingClawdisIcon: View {
|
||||||
],
|
],
|
||||||
startPoint: .topLeading,
|
startPoint: .topLeading,
|
||||||
endPoint: .bottomTrailing))
|
endPoint: .bottomTrailing))
|
||||||
.blur(radius: 22)
|
.frame(width: glowCanvasSize, height: glowCanvasSize)
|
||||||
.scaleEffect(self.breathe ? 1.12 : 0.95)
|
.padding(glowBlurRadius)
|
||||||
.opacity(0.9)
|
.blur(radius: glowBlurRadius)
|
||||||
|
.scaleEffect(self.breathe ? 1.08 : 0.96)
|
||||||
|
.opacity(0.84)
|
||||||
|
|
||||||
Image(nsImage: NSApp.applicationIconImage)
|
Image(nsImage: NSApp.applicationIconImage)
|
||||||
.resizable()
|
.resizable()
|
||||||
|
|
@ -1506,7 +1509,9 @@ private struct GlowingClawdisIcon: View {
|
||||||
.shadow(color: .black.opacity(0.18), radius: 14, y: 6)
|
.shadow(color: .black.opacity(0.18), radius: 14, y: 6)
|
||||||
.scaleEffect(self.breathe ? 1.02 : 1.0)
|
.scaleEffect(self.breathe ? 1.02 : 1.0)
|
||||||
}
|
}
|
||||||
.frame(width: self.size + 60, height: self.size + 60)
|
.frame(
|
||||||
|
width: glowCanvasSize + (glowBlurRadius * 2),
|
||||||
|
height: glowCanvasSize + (glowBlurRadius * 2))
|
||||||
.onAppear {
|
.onAppear {
|
||||||
guard self.enableFloating else { return }
|
guard self.enableFloating else { return }
|
||||||
withAnimation(Animation.easeInOut(duration: 3.6).repeatForever(autoreverses: true)) {
|
withAnimation(Animation.easeInOut(duration: 3.6).repeatForever(autoreverses: true)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue