Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Theme change animation #140

Closed
GliczDev opened this issue Apr 20, 2022 · 1 comment
Closed

[Feature request] Theme change animation #140

GliczDev opened this issue Apr 20, 2022 · 1 comment

Comments

@GliczDev
Copy link

Hi, i think that handycontrols should have theme change animation like winui, because now it's only changing color without any effect, and it looks really bad.

ghost1372 added a commit that referenced this issue Mar 19, 2023
@ghost1372
Copy link
Owner

ghost1372 commented Mar 19, 2023

tnx Added
use like this:

internal void UpdateSkin(ApplicationTheme theme)
        {
            ThemeAnimationHelper.AnimateTheme(HandyControlDemo.MainWindow.Instance, ThemeAnimationHelper.SlideDirection.Top, 0.3, 1, 0.5);

            ThemeManager.Current.ApplicationTheme = theme;


            ThemeAnimationHelper.AnimateTheme(HandyControlDemo.MainWindow.Instance, ThemeAnimationHelper.SlideDirection.Bottom, 0.3, 0.5, 1);

        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants