@@ -21,7 +21,6 @@ enum OpenClawRadius {
2121 static let xs : CGFloat = 8
2222 static let sm : CGFloat = 10
2323 static let md : CGFloat = 12
24- static let lg : CGFloat = 16
2524}
2625
2726struct OpenClawProBackground : View {
@@ -561,62 +560,6 @@ struct OpenClawStatusBadge: View {
561560 }
562561}
563562
564- struct OpenClawPrimaryButtonStyle : ButtonStyle {
565- @Environment ( \. isEnabled) private var isEnabled
566-
567- func makeBody( configuration: Configuration ) -> some View {
568- configuration. label
569- . font ( OpenClawType . headline)
570- . foregroundStyle ( self . isEnabled ? Color . white : OpenClawBrand . textSecondary)
571- . frame ( maxWidth: . infinity, minHeight: 48 )
572- . background {
573- RoundedRectangle ( cornerRadius: OpenClawRadius . sm, style: . continuous)
574- . fill (
575- !self . isEnabled
576- ? Color ( uiColor: . tertiarySystemFill)
577- : configuration. isPressed
578- ? OpenClawBrand . accentPressed
579- : OpenClawBrand . accent)
580- }
581- . animation ( . easeOut( duration: 0.15 ) , value: configuration. isPressed)
582- . animation ( . easeOut( duration: 0.15 ) , value: self . isEnabled)
583- }
584- }
585-
586- struct OpenClawSecondaryButtonStyle : ButtonStyle {
587- @Environment ( \. isEnabled) private var isEnabled
588-
589- func makeBody( configuration: Configuration ) -> some View {
590- configuration. label
591- . font ( OpenClawType . headline)
592- . foregroundStyle ( self . isEnabled ? OpenClawBrand . textPrimary : OpenClawBrand . textSecondary. opacity ( 0.68 ) )
593- . frame ( maxWidth: . infinity, minHeight: 48 )
594- . background {
595- RoundedRectangle ( cornerRadius: OpenClawRadius . sm, style: . continuous)
596- . fill ( Color ( uiColor: self . isEnabled ? . secondarySystemBackground : . tertiarySystemFill) )
597- . overlay {
598- RoundedRectangle ( cornerRadius: OpenClawRadius . sm, style: . continuous)
599- . strokeBorder (
600- Color ( uiColor: . separator) . opacity ( self . isEnabled ? 0.35 : 0.20 ) ,
601- lineWidth: 1 )
602- }
603- }
604- . opacity ( !self . isEnabled ? 0.74 : configuration. isPressed ? 0.82 : 1 )
605- . animation ( . easeOut( duration: 0.15 ) , value: configuration. isPressed)
606- . animation ( . easeOut( duration: 0.15 ) , value: self . isEnabled)
607- }
608- }
609-
610- extension View {
611- func openClawPrimaryButton( ) -> some View {
612- self . buttonStyle ( OpenClawPrimaryButtonStyle ( ) )
613- }
614-
615- func openClawSecondaryButton( ) -> some View {
616- self . buttonStyle ( OpenClawSecondaryButtonStyle ( ) )
617- }
618- }
619-
620563struct ProStatusDot : View {
621564 var color : Color
622565
0 commit comments