Boolean TryGetDefaultForeground(out UInt32 result) { ThreadHelper.ThrowIfNotOnUIThread(); if (Services.TryGetThemeColor(m_parent.CategoryGuid, Name, __THEMEDCOLORTYPE.TCT_Foreground, out result)) { return(true); } return(VsColor.TryGetValue(DefaultForeground, out result)); }
Color GetForegroundColor() { ThreadHelper.ThrowIfNotOnUIThread(); if (Services.TryGetThemeColor(m_parent.CategoryGuid, Name, __THEMEDCOLORTYPE.TCT_Foreground, out var result)) { return(Services.CreateWpfColor(result)); } if (VsColor.TryGetValue(FallbackForeground, out result)) { return(Services.CreateWpfColor(result)); } return(Services.CreateWpfColor(0)); }