Theme font settings
Inheritance: INotifyPropertyChanged
		public TextAppearanceCategory(TextAppearanceCategoryDefinition def, ThemeFontSettings themeFontSettings) {
			if (def == null)
				throw new ArgumentNullException(nameof(def));
			if (themeFontSettings == null)
				throw new ArgumentNullException(nameof(themeFontSettings));
			this.def = def;
			ThemeFontSettings = themeFontSettings;
			themeFontSettings.PropertyChanged += ThemeFontSettings_PropertyChanged;
			UpdateActive();
		}
Example #2
0
		public FontSettingsImpl(ThemeFontSettings owner, Guid themeGuid, FontFamily fontFamily, double fontSize) {
			if (owner == null)
				throw new ArgumentNullException(nameof(owner));
			if (fontFamily == null)
				throw new ArgumentNullException(nameof(fontFamily));
			ThemeFontSettings = owner;
			ThemeGuid = themeGuid;
			this.fontFamily = fontFamily;
			FontSize = fontSize;
		}