/// <summary>
        /// Set color theme
        /// </summary>
        public void SetColorTheme(Theme theme)
        {
            Resources.MergedDictionaries.Remove(this.themeResourceDictionaty);
            this.themeResourceDictionaty = new ResourceDictionary()
            {
                Source = Brushes[theme]
            };
            Resources.MergedDictionaries.Add(this.themeResourceDictionaty);
            HollowHighlightDriver.ClearAllHighlighters();

            // give the window a border if in high contrast mode
            if (theme == Theme.HighContrast)
            {
                App.Current.MainWindow.BorderThickness = new Thickness(4);
            }
            else
            {
                App.Current.MainWindow.BorderThickness = new Thickness(0);
            }
        }