Пример #1
0
 public void updateCheckbox()
 {
     if (createShortcut)
     {
         if (DarkMode.GetWindowsTheme() == DarkMode.WindowsTheme.Dark)
         {
             DesktopLnkCheckImage.Source = new BitmapImage(new Uri("pack://application:,,,/dot Installer;component/Assets/checkbox_dark_checked.png"));
         }
         else
         {
             DesktopLnkCheckImage.Source = new BitmapImage(new Uri("pack://application:,,,/dot Installer;component/Assets/checkbox_light_checked.png"));
         }
     }
     else
     {
         if (DarkMode.GetWindowsTheme() == DarkMode.WindowsTheme.Dark)
         {
             DesktopLnkCheckImage.Source = new BitmapImage(new Uri("pack://application:,,,/dot Installer;component/Assets/checkbox_dark.png"));
         }
         else
         {
             DesktopLnkCheckImage.Source = new BitmapImage(new Uri("pack://application:,,,/dot Installer;component/Assets/checkbox_light.png"));
         }
     }
 }
Пример #2
0
        public MainWindow()
        {
            if (DarkMode.GetWindowsTheme() == DarkMode.WindowsTheme.Dark)
            {
                this.Resources["BackgroundColor"]    = new SolidColorBrush(Color.FromRgb(47, 49, 54));
                this.Resources["BackgroundBoxColor"] = new SolidColorBrush(Color.FromRgb(70, 74, 82));
                this.Resources["ForegroundColor"]    = Brushes.White;
                this.Resources["Border"]             = new SolidColorBrush(Color.FromRgb(74, 74, 74));
            }
            InitializeComponent();
            Splash_Screen.Visibility = Visibility.Visible;
            ScreenOne.Visibility     = Visibility.Hidden;
            ScreenTwo.Visibility     = Visibility.Hidden;
            CustomPathInputBox.Text  = InstallationPath;
            updateCheckbox();

            splash();
        }