static void UpdateBackground(Theme theme, ColorType colorType) { var color = theme.GetColor(colorType).TextInheritedColor; App.Current.Resources[GetBackgroundResourceKey(colorType)] = GetBrush(color.Background); }