Skip to content

Commit 036c744

Browse files
committed
Theming tweaks
1 parent 5cde6a7 commit 036c744

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

FileDiff/AppSettings.cs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ public static Brush FolderFullMatchForeground
203203
field = value;
204204
field.Freeze();
205205
CurrentTheme.FolderFullMatchForeground = ((SolidColorBrush)value).Color.ToString();
206+
NotifyStaticPropertyChanged(nameof(FolderFullMatchForeground));
206207
}
207208
}
208209

@@ -214,6 +215,7 @@ public static Brush FolderFullMatchBackground
214215
field = value;
215216
field.Freeze();
216217
CurrentTheme.FolderFullMatchBackground = ((SolidColorBrush)value).Color.ToString();
218+
NotifyStaticPropertyChanged(nameof(FolderFullMatchBackground));
217219
}
218220
}
219221

@@ -225,6 +227,7 @@ public static Brush FolderPartialMatchForeground
225227
field = value;
226228
field.Freeze();
227229
CurrentTheme.FolderPartialMatchForeground = ((SolidColorBrush)value).Color.ToString();
230+
NotifyStaticPropertyChanged(nameof(FolderPartialMatchForeground));
228231
}
229232
}
230233

@@ -236,6 +239,7 @@ public static Brush FolderPartialMatchBackground
236239
field = value;
237240
field.Freeze();
238241
CurrentTheme.FolderPartialMatchBackground = ((SolidColorBrush)value).Color.ToString();
242+
NotifyStaticPropertyChanged(nameof(FolderPartialMatchBackground));
239243
}
240244
}
241245

@@ -247,6 +251,7 @@ public static Brush FolderDeletedForeground
247251
field = value;
248252
field.Freeze();
249253
CurrentTheme.FolderDeletedForeground = ((SolidColorBrush)value).Color.ToString();
254+
NotifyStaticPropertyChanged(nameof(FolderDeletedForeground));
250255
}
251256
}
252257

@@ -258,6 +263,7 @@ public static Brush FolderDeletedBackground
258263
field = value;
259264
field.Freeze();
260265
CurrentTheme.FolderDeletedBackground = ((SolidColorBrush)value).Color.ToString();
266+
NotifyStaticPropertyChanged(nameof(FolderDeletedBackground));
261267
}
262268
}
263269

@@ -269,6 +275,7 @@ public static Brush FolderNewForeground
269275
field = value;
270276
field.Freeze();
271277
CurrentTheme.FolderNewForeground = ((SolidColorBrush)value).Color.ToString();
278+
NotifyStaticPropertyChanged(nameof(FolderNewForeground));
272279
}
273280
}
274281

@@ -280,6 +287,7 @@ public static Brush FolderNewBackground
280287
field = value;
281288
field.Freeze();
282289
CurrentTheme.FolderNewBackground = ((SolidColorBrush)value).Color.ToString();
290+
NotifyStaticPropertyChanged(nameof(FolderNewBackground));
283291
}
284292
}
285293

@@ -291,6 +299,7 @@ public static Brush FolderIgnoredForeground
291299
field = value;
292300
field.Freeze();
293301
CurrentTheme.FolderIgnoredForeground = ((SolidColorBrush)value).Color.ToString();
302+
NotifyStaticPropertyChanged(nameof(FolderIgnoredForeground));
294303
}
295304
}
296305

@@ -302,6 +311,7 @@ public static Brush FolderIgnoredBackground
302311
field = value;
303312
field.Freeze();
304313
CurrentTheme.FolderIgnoredBackground = ((SolidColorBrush)value).Color.ToString();
314+
NotifyStaticPropertyChanged(nameof(FolderIgnoredBackground));
305315
}
306316
}
307317

@@ -315,6 +325,7 @@ public static Brush FullMatchForeground
315325
field = value;
316326
field.Freeze();
317327
CurrentTheme.FullMatchForeground = ((SolidColorBrush)value).Color.ToString();
328+
NotifyStaticPropertyChanged(nameof(FullMatchForeground));
318329
}
319330
}
320331

@@ -326,6 +337,7 @@ public static Brush FullMatchBackground
326337
field = value;
327338
field.Freeze();
328339
CurrentTheme.FullMatchBackground = ((SolidColorBrush)value).Color.ToString();
340+
NotifyStaticPropertyChanged(nameof(FullMatchBackground));
329341
}
330342
}
331343

@@ -337,6 +349,7 @@ public static Brush PartialMatchForeground
337349
field = value;
338350
field.Freeze();
339351
CurrentTheme.PartialMatchForeground = ((SolidColorBrush)value).Color.ToString();
352+
NotifyStaticPropertyChanged(nameof(PartialMatchForeground));
340353
}
341354
}
342355

@@ -348,6 +361,7 @@ public static Brush PartialMatchBackground
348361
field = value;
349362
field.Freeze();
350363
CurrentTheme.PartialMatchBackground = ((SolidColorBrush)value).Color.ToString();
364+
NotifyStaticPropertyChanged(nameof(PartialMatchBackground));
351365
}
352366
}
353367

@@ -359,6 +373,7 @@ public static Brush DeletedForeground
359373
field = value;
360374
field.Freeze();
361375
CurrentTheme.DeletedForeground = ((SolidColorBrush)value).Color.ToString();
376+
NotifyStaticPropertyChanged(nameof(DeletedForeground));
362377
}
363378
}
364379

@@ -370,6 +385,7 @@ public static Brush DeletedBackground
370385
field = value;
371386
field.Freeze();
372387
CurrentTheme.DeletedBackground = ((SolidColorBrush)value).Color.ToString();
388+
NotifyStaticPropertyChanged(nameof(DeletedBackground));
373389
}
374390
}
375391

@@ -381,6 +397,7 @@ public static Brush NewForeground
381397
field = value;
382398
field.Freeze();
383399
CurrentTheme.NewForeground = ((SolidColorBrush)value).Color.ToString();
400+
NotifyStaticPropertyChanged(nameof(NewForeground));
384401
}
385402
}
386403

@@ -392,6 +409,7 @@ public static Brush NewBackground
392409
field = value;
393410
field.Freeze();
394411
CurrentTheme.NewBackground = ((SolidColorBrush)value).Color.ToString();
412+
NotifyStaticPropertyChanged(nameof(NewBackground));
395413
}
396414
}
397415

@@ -403,6 +421,7 @@ public static Brush IgnoredForeground
403421
field = value;
404422
field.Freeze();
405423
CurrentTheme.IgnoredForeground = ((SolidColorBrush)value).Color.ToString();
424+
NotifyStaticPropertyChanged(nameof(IgnoredForeground));
406425
}
407426
}
408427

@@ -414,6 +433,7 @@ public static Brush IgnoredBackground
414433
field = value;
415434
field.Freeze();
416435
CurrentTheme.IgnoredBackground = ((SolidColorBrush)value).Color.ToString();
436+
NotifyStaticPropertyChanged(nameof(IgnoredBackground));
417437
}
418438
}
419439

@@ -425,6 +445,7 @@ public static Brush MovedFromBackground
425445
field = value;
426446
field.Freeze();
427447
CurrentTheme.MovedFromBackground = ((SolidColorBrush)value).Color.ToString();
448+
NotifyStaticPropertyChanged(nameof(MovedFromBackground));
428449
}
429450
}
430451

@@ -436,6 +457,7 @@ public static Brush MovedToBackground
436457
field = value;
437458
field.Freeze();
438459
CurrentTheme.MovedToBackground = ((SolidColorBrush)value).Color.ToString();
460+
NotifyStaticPropertyChanged(nameof(MovedToBackground));
439461
}
440462
}
441463

@@ -447,6 +469,7 @@ public static Brush WhiteSpaceForeground
447469
field = value;
448470
field.Freeze();
449471
CurrentTheme.WhiteSpaceForeground = ((SolidColorBrush)value).Color.ToString();
472+
NotifyStaticPropertyChanged(nameof(WhiteSpaceForeground));
450473
}
451474
}
452475

@@ -460,6 +483,7 @@ public static Brush LineNumberColor
460483
field = value;
461484
field.Freeze();
462485
CurrentTheme.LineNumberColor = ((SolidColorBrush)value).Color.ToString();
486+
NotifyStaticPropertyChanged(nameof(LineNumberColor));
463487
}
464488
}
465489

@@ -471,6 +495,7 @@ public static Brush CurrentDiffColor
471495
field = value;
472496
field.Freeze();
473497
CurrentTheme.CurrentDiffColor = ((SolidColorBrush)value).Color.ToString();
498+
NotifyStaticPropertyChanged(nameof(CurrentDiffColor));
474499
}
475500
}
476501

@@ -482,6 +507,7 @@ public static Brush SnakeColor
482507
field = value;
483508
field.Freeze();
484509
CurrentTheme.SnakeColor = ((SolidColorBrush)value).Color.ToString();
510+
NotifyStaticPropertyChanged(nameof(SnakeColor));
485511
}
486512
}
487513

@@ -493,6 +519,7 @@ public static Brush SelectionBackground
493519
field = value;
494520
field.Freeze();
495521
CurrentTheme.SelectionBackground = ((SolidColorBrush)value).Color.ToString();
522+
NotifyStaticPropertyChanged(nameof(SelectionBackground));
496523
}
497524
}
498525

0 commit comments

Comments
 (0)