public static MorphicResult <bool, MorphicUnit> GetHighContrastModeIsOn() { var getHighContrastInfoResult = DisplayUtils.GetHighContrastInfo(); if (getHighContrastInfoResult.IsError == true) { return(MorphicResult.ErrorResult()); } var highContrastInfo = getHighContrastInfoResult.Value !; return(MorphicResult.OkResult(highContrastInfo.FeatureIsOn)); }
// public static MorphicResult <String?, MorphicUnit> GetHighContrastModeDefaultColorScheme() { var getHighContrastInfoResult = DisplayUtils.GetHighContrastInfo(); if (getHighContrastInfoResult.IsError == true) { return(MorphicResult.ErrorResult()); } var highContrastInfo = getHighContrastInfoResult.Value !; return(MorphicResult.OkResult(highContrastInfo.DefaultColorScheme)); }