Exemplo n.º 1
0
        private void Window_KeyDown(object sender, KeyEventArgs e)
        {
            if (Keyboard.IsKeyDown(Key.LeftCtrl))
            {
                if (Keyboard.IsKeyDown(Key.Q))
                {
                    ThemeManager.Config_SetTheme(ThemeManager.Theme.Light);
                }
                if (Keyboard.IsKeyDown(Key.E))
                {
                    ThemeManager.Config_SetTheme(ThemeManager.Theme.Dark);
                }

                if (Keyboard.IsKeyDown(Key.D0))
                {
                    ThemeManager.Config_SetAccent(ThemeManager.Accent.Teal);
                }
                if (Keyboard.IsKeyDown(Key.D1))
                {
                    ThemeManager.Config_SetAccent(ThemeManager.Accent.Blue);
                }
                if (Keyboard.IsKeyDown(Key.D2))
                {
                    ThemeManager.Config_SetAccent(ThemeManager.Accent.Green);
                }
                if (Keyboard.IsKeyDown(Key.D3))
                {
                    ThemeManager.Config_SetAccent(ThemeManager.Accent.Orange);
                }
                if (Keyboard.IsKeyDown(Key.D4))
                {
                    ThemeManager.Config_SetAccent(ThemeManager.Accent.Pink);
                }
                if (Keyboard.IsKeyDown(Key.D5))
                {
                    ThemeManager.Config_SetAccent(ThemeManager.Accent.Purple);
                }

                //titleBar.Theme = ThemeManager.CurrentTheme;
            }
        }