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 ButtonMouseOverAnim(Brush brush, bool transparent = false, bool alpha = false)
 {
     if (transparent)
     {
         AnimationHelper.MouseOverColorEvent(0, 0, 0, 0, brush, alpha);
     }
     else
     {
         AnimationHelper.MouseOverColorEvent(
             mainColor.A,
             mainColor.R,
             mainColor.G,
             mainColor.B,
             brush,
             alpha
             );
     }
 }
Exemple #3
0
        internal static void AltInterfaceMouseOver(Brush foreground, Brush background, Brush border)
        {
            ccAnim.From = (Color)Application.Current.Resources["IconColor"];
            ccAnim.To   = AnimationHelper.GetPrefferedColorOver();

            foreground.BeginAnimation(SolidColorBrush.ColorProperty, ccAnim);

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

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