Esempio n. 1
0
        public override void UpdateTheme()
        {
            SettingsManager.ApplyImmersiveDarkTheme(this, IsHandleCreated);

            tsMain.Renderer = new ToolStripCustomRenderer();

            cmTray.Renderer = new ToolStripCustomRenderer();
            cmTray.Opacity  = SettingsManager.MainFormSettings.contextMenuOpacity;

            imageDisplayContextMenu.Renderer = new ToolStripCustomRenderer();
            imageDisplayContextMenu.Opacity  = SettingsManager.MainFormSettings.contextMenuOpacity;

            listViewContextMenu.Renderer = new ToolStripCustomRenderer();
            listViewContextMenu.Opacity  = SettingsManager.MainFormSettings.contextMenuOpacity;

            ApplicationStyles.ApplyCustomThemeToControl(this.panel1);
            // ApplicationStyles.ApplyCustomThemeToControl(this.panel2);
            // ApplicationStyles.ApplyCustomThemeToControl(scMain.Panel2);
            Refresh();
        }