Exemple #1
0
        private static Brush GetWindowGlassBrush()
        {
            var colorizationParams = new Core.Native.DWMCOLORIZATIONPARAMS();

            Core.Native.DwmGetColorizationParameters(ref colorizationParams);
            var frameColor = ToColor(colorizationParams.ColorizationColor);

            return(new SolidColorBrush(frameColor));
        }
Exemple #2
0
        private static Brush GetBalancedWindowGlassBrush()
        {
            var colorizationParams = new Core.Native.DWMCOLORIZATIONPARAMS();

            Core.Native.DwmGetColorizationParameters(ref colorizationParams);
            var frameColor   = ToColor(colorizationParams.ColorizationColor);
            var blendedColor = BlendColor(frameColor, WindowBaseColor, 100f - colorizationParams.ColorizationColorBalance);

            return(new SolidColorBrush(blendedColor));
        }