• Home
  • Raw
  • Download

Lines Matching full:theme

42         #Theme Elements. Each theme element key is its display name.
197 text=' Highlighting Theme ')
247 frameCustom, text='Save as New Custom Theme',
253 command=self.SetThemeType, text='a Built-in Theme')
256 command=self.SetThemeType, text='a Custom Theme')
262 frameTheme, text='Delete Custom Theme',
535 if idleConf.GetOption('main', 'Theme', 'name') != 'IDLE New':
536 self.AddChangedItem('main', 'Theme', 'name', 'IDLE Classic')
537 self.AddChangedItem('main', 'Theme', 'name2', value)
538 self.new_custom_theme.config(text='New theme, see Help',
541 self.AddChangedItem('main', 'Theme', 'name', value)
542 self.AddChangedItem('main', 'Theme', 'name2', '')
549 self.AddChangedItem('main', 'Theme', 'name', value)
554 self.AddChangedItem('main', 'Theme', 'default', value)
732 #save the new theme
795 delmsg = 'Are you sure you wish to delete the theme %r ?'
797 'Delete Theme', delmsg % themeName, parent=self):
800 #remove theme from config
806 #reload user theme list
814 #revert to default theme
815 self.themeIsBuiltin.set(idleConf.defaultCfg['main'].Get('Theme', 'default'))
816 self.builtinTheme.set(idleConf.defaultCfg['main'].Get('Theme', 'name'))
830 if self.themeIsBuiltin.get(): #current theme is a built-in
831 message = ('Your changes will be saved as a new Custom Theme. '
832 'Enter a name for your new Custom Theme below.')
834 if not newTheme: #user cancelled custom theme creation
836 else: #create new custom theme based on previously active theme
839 else: #current theme is user defined
848 theme = self.customTheme.get()
850 self.AddChangedItem('highlight', theme, themeElement, newColour)
856 self, 'New Custom Theme', message, usedNames).result
860 newThemeName = self.GetNewThemeName('New Theme Name:')
865 #creates new custom theme based on the previously active theme,
866 #and makes the new theme active
874 #apply any of the old theme's unsaved changes to the new theme
879 #save the new theme
881 #change gui over to the new theme
922 if self.themeIsBuiltin.get(): #a default theme
923 theme = self.builtinTheme.get()
924 else: #a user theme
925 theme = self.customTheme.get()
928 colours = idleConf.GetHighlight(theme, element)
931 theme, 'normal', fgBg='bg')
932 #handle any unsaved changes to this theme
933 if theme in self.changedItems['highlight']:
934 themeDict = self.changedItems['highlight'][theme]
1029 ##current theme type radiobutton
1031 'main', 'Theme', 'default', type='bool', default=1))
1032 ##currently set theme
1034 ##load available theme option menus
1035 if self.themeIsBuiltin.get(): #default theme selected
1046 else: #user theme selected
1054 ##load theme element option menu
1068 if self.keysAreBuiltin.get(): #default theme selected
1140 def SaveNewTheme(self, themeName, theme): argument
1142 save a newly created theme.
1143 themeName - string, the name of the new theme
1144 theme - dictionary containing the new theme
1148 for element in theme:
1149 value = theme[element]
1391 The IDLE Dark color theme is new in October 2015. It can only
1393 theme, with a different name.