public UIFontPreference()
 {
     preference = new Preference <double> ("ui.font.size", 15);
 }
 void HandlePreferenceChange(Preference <bool> pref, NSButton checkButton)
 => checkButton.State = pref.GetValue() ? NSCellStateValue.On : NSCellStateValue.Off;