@@ -38,8 +38,9 @@ struct WidgetView: View {
3838 }
3939 }
4040 . overlay {
41- let minimumLineWidth : Double = 4
42- let lineWidth = ( 1 - processingProgress) * 28 + minimumLineWidth
41+ let minimumLineWidth : Double = 3
42+ let lineWidth = ( 1 - processingProgress) *
43+ ( Style . widgetWidth - minimumLineWidth / 2 ) + minimumLineWidth
4344 let scale = max ( processingProgress * 1 , 0.0001 )
4445 let empty = panelViewModel. content == nil && chatWindowViewModel. chat == nil
4546
@@ -49,7 +50,7 @@ struct WidgetView: View {
4950 Color ( nsColor: . darkGray) ,
5051 style: . init( lineWidth: minimumLineWidth)
5152 )
52- . padding ( 2 )
53+ . padding ( minimumLineWidth / 2 )
5354
5455 // how do I stop the repeatForever animation without removing the view?
5556 // I tried many solutions found on stackoverflow but non of them works.
@@ -59,7 +60,7 @@ struct WidgetView: View {
5960 Color . accentColor,
6061 style: . init( lineWidth: lineWidth)
6162 )
62- . padding ( 2 )
63+ . padding ( minimumLineWidth / 2 )
6364 . scaleEffect ( x: scale, y: scale)
6465 . opacity ( !empty || viewModel. isProcessing ? 1 : 0 )
6566 . animation (
@@ -72,7 +73,7 @@ struct WidgetView: View {
7273 Color . accentColor,
7374 style: . init( lineWidth: lineWidth)
7475 )
75- . padding ( 2 )
76+ . padding ( minimumLineWidth / 2 )
7677 . scaleEffect ( x: scale, y: scale)
7778 . opacity ( !empty || viewModel. isProcessing ? 1 : 0 )
7879 . animation ( . easeInOut( duration: 1 ) , value: processingProgress)
0 commit comments