コード例 #1
0
            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));
            }
コード例 #2
0
            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));
            }