Example #1
0
 private void HandleHotKey()
 {
     // opens the default theme
     if (OptionsData.EnableDefaultThemeHotkey)
     {
         WallpaperData.SaveData(WallpaperPathing.ActiveWallpaperTheme);
         WallpaperData.LoadDefaultTheme();
     }
 }
Example #2
0
        private void buttonSaveTheme_Click(object sender, EventArgs e)
        {
            using (SaveFileDialog dialog = new SaveFileDialog())
            {
                dialog.Title  = "Save data to json";
                dialog.Filter = "Wallpaper Data JSON (*.json) | *.json";

                if (dialog.ShowDialog() == DialogResult.OK)
                {
                    WallpaperData.SaveData(dialog.FileName);
                }
            }
        }
Example #3
0
 private void buttonUpdateTheme_Click(object sender, EventArgs e)
 {
     WallpaperData.EvaluateImageFolders(); // scans for new images
     WallpaperData.SaveData(WallpaperPathing.ActiveWallpaperTheme);
 }