@@ -38,6 +38,7 @@ struct AdvancedPreferencePane: View {
3838 }
3939 Text ( " InstallPathDescription " )
4040 . font ( . footnote)
41+ . foregroundStyle ( . secondary)
4142 . fixedSize ( horizontal: false , vertical: true )
4243 }
4344 }
@@ -73,6 +74,7 @@ struct AdvancedPreferencePane: View {
7374 }
7475 Text ( " LocalCachePathDescription " )
7576 . font ( . footnote)
77+ . foregroundStyle ( . secondary)
7678 . fixedSize ( horizontal: false , vertical: true )
7779 }
7880 }
@@ -94,6 +96,7 @@ struct AdvancedPreferencePane: View {
9496
9597 Text ( appState. onSelectActionType. detailedDescription)
9698 . font ( . footnote)
99+ . foregroundStyle ( . secondary)
97100 . fixedSize ( horizontal: false , vertical: true )
98101 Spacer ( )
99102 . frame ( height: 20 )
@@ -102,6 +105,7 @@ struct AdvancedPreferencePane: View {
102105 . disabled ( appState. createSymLinkOnSelectDisabled)
103106 Text ( " AutomaticallyCreateSymbolicLinkDescription " )
104107 . font ( . footnote)
108+ . foregroundStyle ( . secondary)
105109 . fixedSize ( horizontal: false , vertical: true )
106110 }
107111 . fixedSize ( horizontal: false , vertical: true )
@@ -114,6 +118,7 @@ struct AdvancedPreferencePane: View {
114118 . disabled ( appState. createSymLinkOnSelectDisabled)
115119 Text ( " ShowOpenInRosettaDescription " )
116120 . font ( . footnote)
121+ . foregroundStyle ( . secondary)
117122 . fixedSize ( horizontal: false , vertical: true )
118123 }
119124 . groupBoxStyle ( PreferencesGroupBoxStyle ( ) )
@@ -128,16 +133,18 @@ struct AdvancedPreferencePane: View {
128133 case . installed:
129134 Text ( " HelperInstalled " )
130135 case . notInstalled:
131- HStack {
132- Text ( " HelperNotInstalled " )
136+ VStack ( alignment: . leading) {
133137 Button ( " InstallHelper " ) {
134138 appState. installHelperIfNecessary ( )
135139 }
140+ Text ( " HelperNotInstalled " )
141+ . font ( . footnote)
136142 }
137143 }
138144
139145 Text ( " PrivilegedHelperDescription " )
140146 . font ( . footnote)
147+ . foregroundStyle ( . secondary)
141148 . fixedSize ( horizontal: false , vertical: true )
142149
143150 Spacer ( )
@@ -153,21 +160,18 @@ struct AdvancedPreferencePane_Previews: PreviewProvider {
153160 Group {
154161 AdvancedPreferencePane ( )
155162 . environmentObject ( AppState ( ) )
156- . frame ( maxWidth: 500 )
163+ . frame ( maxWidth: 600 )
157164 }
158- . frame ( width: 500 , height: 700 , alignment: . center)
165+ . frame ( width: 600 , height: 700 , alignment: . center)
159166 }
160167}
161168
162169// A group style for the preferences
163170struct PreferencesGroupBoxStyle : GroupBoxStyle {
164171 func makeBody( configuration: Configuration ) -> some View {
165172 HStack ( alignment: . top, spacing: 20 ) {
166- HStack {
167- Spacer ( )
168- configuration. label
169- }
170- . frame ( width: 120 )
173+ configuration. label
174+ . frame ( width: 180 , alignment: . trailing)
171175
172176 VStack ( alignment: . leading) {
173177 configuration. content
0 commit comments