Esempio n. 1
0
        private CTheme CreateNewThemeObject()
        {
            CTheme Theme;

            switch (config.ThemeType)
            {
            case CConfiguration.ArtType.atBackground_gnome:
            case CConfiguration.ArtType.atBackground_other:
            case CConfiguration.ArtType.atBackground_nature:
            case CConfiguration.ArtType.atBackground_abstract:
                Theme = new CBackgroundTheme(config); break;

            case CConfiguration.ArtType.atGdmGreeter:
                Theme = new CGdmTheme(config); break;

            case CConfiguration.ArtType.atGtkEngine:
                Theme = new CGtkTheme(config); break;

            case CConfiguration.ArtType.atIcon:
                Theme = new CIconTheme(config); break;

            case CConfiguration.ArtType.atSplash:
                Theme = new CSplashTheme(config); break;

            case CConfiguration.ArtType.atApplication:
                Theme = new CApplicationTheme(config); break;

            case CConfiguration.ArtType.atWindowDecoration:
                Theme = new CWindowDecorationTheme(config); break;

            default: Theme = new CBackgroundTheme(config); break;
            }
            return(Theme);
        }
 private CTheme CreateNewThemeObject()
 {
     CTheme Theme;
     switch (config.ThemeType) {
         case CConfiguration.ArtType.atBackground_gnome:
         case CConfiguration.ArtType.atBackground_other:
         case CConfiguration.ArtType.atBackground_nature:
         case CConfiguration.ArtType.atBackground_abstract:
             Theme=new CBackgroundTheme(config);break;
         case CConfiguration.ArtType.atGdmGreeter:
             Theme=new CGdmTheme(config);break;
         case CConfiguration.ArtType.atGtkEngine:
             Theme=new CGtkTheme(config);break;
         case CConfiguration.ArtType.atIcon:
             Theme=new CIconTheme(config);break;
         case CConfiguration.ArtType.atSplash:
             Theme=new CSplashTheme(config); break;
         case CConfiguration.ArtType.atApplication:
             Theme=new CApplicationTheme(config); break;
         case CConfiguration.ArtType.atWindowDecoration:
             Theme=new CWindowDecorationTheme(config); break;
     default:Theme=new CBackgroundTheme(config); break;
     }
     return Theme;
 }