Lines Matching refs:theme

75         # Each theme element key is its display name.
475 concerned. Any theme can be used as the base for a new custom
476 theme, stored in .idlerc/config-highlight.cfg.
478 Function load_theme_cfg() initializes tk variables and theme
480 for the current theme. Radiobuttons builtin_theme_on and
482 current set of colors are from a builtin or custom theme.
487 Function paint_theme_sample() applies the colors from the theme
500 paint_theme_sample() (theme is changed or load_cfg is called), and
504 a custom theme from idleConf.userCfg['highlight'] and changes.
506 get_new_theme_name() and create_new() to save a custom theme
520 the color attributes of the current theme and changes for those tags.
531 shown in set_color_sample() for the current theme. Button set_color
539 builtin_name: Menu variable for built-in theme.
540 custom_name: Menu variable for custom theme.
543 theme_source: Selector for built-in or custom theme.
560 create_new: Combine theme with changes and save.
564 save_new: Save to userCfg['theme'] (is function).
723 """Load current configuration settings for the theme options.
725 Based on the theme_source toggle, the theme is set as
742 # Set current theme type radiobutton.
745 # Set current theme.
747 # Load available theme option menus.
748 if self.theme_source.get(): # Default theme selected.
759 else: # User theme selected.
767 # Load theme element option menu.
775 """Process new builtin theme selection.
777 Add the changed theme's name to the changed_items and recreate
778 the sample with the values from the selected theme.
786 self.theme_message['text'] = 'New theme, see Help'
794 """Process new custom theme selection.
796 If a new custom theme is selected, add the name to the
797 changed_items and apply the theme to the sample.
805 """Process toggle between builtin and custom theme.
808 selected theme type.
826 """Set available screen options based on builtin or custom theme.
856 If a new color is selected while using a builtin theme, a
857 name must be supplied to create a custom theme.
879 if self.theme_source.get(): # Current theme is a built-in.
883 if not new_theme: # User cancelled custom theme creation.
885 else: # Create new custom theme based on previously active theme.
888 else: # Current theme is user defined.
898 theme = self.custom_name.get()
900 changes.add_option('highlight', theme, theme_element, new_color)
903 "Return name of new theme from query popup."
911 """Prompt for new theme name and create the theme.
922 """Create a new custom theme with the given name.
924 Create the new theme based on the previously active theme
926 activate the new theme.
947 # Apply any of the old theme's unsaved changes to the new theme.
952 # Save the new theme.
954 # Change GUI over to the new theme.
1016 """Apply the theme colors to each element tag in the sample text.
1025 highlight_sample: Set the tag elements to the theme.
1035 if self.theme_source.get(): # Default theme
1036 theme = self.builtin_name.get()
1037 else: # User theme
1038 theme = self.custom_name.get()
1041 colors = idleConf.GetHighlight(theme, element)
1044 theme, 'normal')['background']
1045 # Handle any unsaved changes to this theme.
1046 if theme in changes['highlight']:
1047 theme_dict = changes['highlight'][theme]
1055 def save_new(self, theme_name, theme):
1056 """Save a newly created theme to idleConf.
1058 theme_name - string, the name of the new theme
1059 theme - dictionary containing the new theme
1062 for element in theme:
1063 value = theme[element]
1071 """Handle event to delete custom theme.
1073 The current theme is deactivated and the default theme is
1074 activated. The custom theme is permanently removed from
1093 delmsg = 'Are you sure you wish to delete the theme %r ?'
1098 # Remove theme from changes, config, and file.
1100 # Reload user theme list.
1108 # Revert to default theme.
1295 if self.keyset_source.get(): # Default theme selected.
2313 The IDLE Dark color theme is new in October 2015. It can only
2315 theme, with a different name.