Beispiel #1
0
 private void ResetColorRessources()
 {
     DrawingSheetAvatarViewModel.Get().modifColorOpenGL("Default");
     App.Current.Resources["UnselectedTabColor"]  = mainBackgroundColor;
     App.Current.Resources["SelectedTabColor"]    = mainTabColor;
     App.Current.Resources["GeneralTextColor"]    = mainFontColor;
     App.Current.Resources["FeedbackStreamColor"] = Color.FromArgb(255, 128, 128, 128);
     IconViewModel.get().setFFT((Color)App.Current.Resources["GeneralTextColor"], (Color)App.Current.Resources["UnselectedTabColor"]);
     DrawingSheetStreamViewModel.Get().changeColorFeedbacks();
     Main.session.fillPersoWithActual();
 }
Beispiel #2
0
        private void ChangeResourceColor(string resource)
        {
            ColorDialog dlg = new ColorDialog();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                App.Current.Resources[resource] = (System.Windows.Media.Color.FromArgb(dlg.Color.A, dlg.Color.R, dlg.Color.G, dlg.Color.B));
                if (resource == "FeedbackStreamColor")
                {
                    DrawingSheetStreamViewModel.Get().changeColorFeedbacks();
                }
                IconViewModel.get().setFFT((Color)App.Current.Resources["GeneralTextColor"], (Color)App.Current.Resources["UnselectedTabColor"]);

                Main.session.fillPersoWithSpecial(resource);
            }
        }