@@ -188,7 +188,6 @@ public void Save()
188188 } ;
189189
190190 // Create a text block for name
191- // TODO: Move to resource
192191 var name = new TextBlock ( )
193192 {
194193 Text = attributes . Label ,
@@ -200,16 +199,14 @@ public void Save()
200199 TextBlock ? desc = null ;
201200 if ( attributes . Description != null )
202201 {
203- // TODO: Move to resource
204202 desc = new TextBlock ( )
205203 {
206204 Text = attributes . Description ,
207- FontSize = 12 ,
208205 VerticalAlignment = VerticalAlignment . Center ,
209- Margin = new ( 0 , 2 , 0 , 0 ) ,
210206 TextWrapping = TextWrapping . WrapWithOverflow
211207 } ;
212- desc . SetResourceReference ( TextBlock . ForegroundProperty , "Color04B" ) ; // for theme change
208+
209+ desc . SetResourceReference ( TextBlock . StyleProperty , "SettingPanelTextBlockDescriptionStyle" ) ; // for theme change
213210 }
214211
215212 // Add the name and description to the panel
@@ -446,15 +443,9 @@ Settings[attributes.Name] is bool isChecked
446443 }
447444 case "seperator" :
448445 {
449- // TODO: Move to resource
450- var sep = new Separator
451- {
452- VerticalAlignment = VerticalAlignment . Top ,
453- Margin = new ( - 70 , 13.5 , - 18 , 13.5 ) ,
454- Height = 1
455- } ;
446+ var sep = new Separator ( ) ;
456447
457- sep . SetResourceReference ( Separator . BackgroundProperty , "Color03B " ) ;
448+ sep . SetResourceReference ( Separator . StyleProperty , "SettingPanelSeperatorStyle " ) ;
458449
459450 contentControl = sep ;
460451
0 commit comments