using PicView.WPF.Animations;
using PicView.Core.Config;
using static PicView.WPF.Animations.MouseOverAnimations;

namespace PicView.WPF.Views.UserControls.Buttons;

public partial class LinkButton
{
    public LinkButton()
    {
        InitializeComponent();

        Loaded += delegate
        {
            TheButton.MouseEnter += (s, x) => ButtonMouseOverAnim(CopyButtonBrush, true);
            TheButton.MouseLeave += (s, x) => ButtonMouseLeaveAnimBgColor(CopyButtonBrush);

            if (!SettingsHelper.Settings.Theme.Dark)
            {
                AnimationHelper.LightThemeMouseEvent(this, IconBrush);
            }
        };
    }
}