Exemple #1
0
        internal static void AltInterfacePreviewMouseOver(Brush foreground, Brush border)
        {
            var alpha = AnimationHelper.GetPrefferedColorOver();

            ccAnim.From = alpha;
            ccAnim.To   = AnimationHelper.GetPrefferedColorDown();
            foreground.BeginAnimation(SolidColorBrush.ColorProperty, ccAnim);
            AnimationHelper.MouseOverColorEvent(alpha.A, alpha.R, alpha.G, alpha.B, border, true);
        }
Exemple #2
0
        internal static void AltInterfaceMouseLeave(Brush foreground, Brush background, Brush border)
        {
            ccAnim.From = AnimationHelper.GetPrefferedColorOver();
            ccAnim.To   = (Color)Application.Current.Resources["IconColor"];

            foreground.BeginAnimation(SolidColorBrush.ColorProperty, ccAnim);

            ccAnim2.From = (Color)Application.Current.Resources["AltInterfaceW"];
            ccAnim2.To   = (Color)Application.Current.Resources["AltInterface"];

            background.BeginAnimation(SolidColorBrush.ColorProperty, ccAnim2);
            AnimationHelper.MouseLeaveColorEvent(
                borderBrush.Color.A,
                borderBrush.Color.R,
                borderBrush.Color.G,
                borderBrush.Color.B,
                border,
                true);
        }