예제 #1
0
        private static List <ToolStripItem> GetOptionsMenuItems()
        {
            List <ToolStripItem> items = new List <ToolStripItem>();

            items.Add(new ToolStripMenuItem(_("Select &Language..."), null, OnLanguageItemClick));
            items.Add(new ToolStripSeparator());

            items.Add(new ToolStripMenuItem(_("Edit Configuration File"), null, OnEditConfigFileClick));
            items.Add(new ToolStripMenuItem(_("Reload Configuration File"), null, OnReloadConfigFileClick));
            items.Add(new ToolStripSeparator());

            shuffleItem         = new ToolStripMenuItem(_("Shuffle wallpaper daily"), null, OnShuffleItemClick);
            shuffleItem.Checked = JsonConfig.settings.enableShuffle;
            items.Add(shuffleItem);

            fullScreenItem         = new ToolStripMenuItem(_("Pause while fullscreen apps running"), null, OnFullScreenItemClick);
            fullScreenItem.Checked = JsonConfig.settings.fullScreenPause;
            items.Add(fullScreenItem);

            if (BrightnessController.IsDDCSupported)
            {
                items.Add(new ToolStripSeparator());
                items.Add(new ToolStripMenuItem(_("Set Auto Brightness"), null, OnSetAutoBrightnessItemClick));
            }

            items.AddRange(SystemThemeChanger.GetMenuItems());
            items.AddRange(WallpaperCompressionChanger.GetMenuItems());
            items.AddRange(UpdateChecker.GetMenuItems());

            return(items);
        }
예제 #2
0
        private static List <ToolStripItem> GetOptionsMenuItems()
        {
            List <ToolStripItem> items = new List <ToolStripItem>();

            items.Add(new ToolStripMenuItem(_("Select &Language..."), null, OnLanguageItemClick));
            items.AddRange(SystemThemeChanger.GetMenuItems());
            items.AddRange(WallpaperCompressionChanger.GetMenuItems());
            items.AddRange(UpdateChecker.GetMenuItems());

            return(items);
        }
예제 #3
0
        private static List <ToolStripItem> GetOptionsMenuItems()
        {
            List <ToolStripItem> items = new List <ToolStripItem>();

            items.Add(new ToolStripMenuItem(_("Select &Language..."), null, OnLanguageItemClick));

            if (BrightnessController.IsDDCSupported)
            {
                items.Add(new ToolStripMenuItem(_("Set Auto Brightness"), null, OnSetAutoBrightnessItemClick));
            }

            items.Add(new ToolStripSeparator());
            items.AddRange(SystemThemeChanger.GetMenuItems());
            items.AddRange(WallpaperCompressionChanger.GetMenuItems());
            items.AddRange(UpdateChecker.GetMenuItems());

            return(items);
        }