• Home
  • Raw
  • Download

Lines Matching +full:theme +full:- +full:one +full:- +full:dark

53             parent - parent of this dialog
54 title - string which is the title of this popup dialog
55 _htest - bool, change box location when running htest
56 _utest - bool, don't wait_window when running unittest
75 # Each theme element key is its display name.
86 # self.bind('<Alt-a>', self.Apply) #apply changes, save
219 # config must be done - remove the previous keybindings.
256 # # Define tab-specific behavior.
325 (*)fontlist: ListBox - font_name
329 (*)sizelist: DynOptionMenu - font_size
330 (*)bold_toggle: Checkbutton - font_bold
350 self.fontlist.bind('<ButtonRelease-1>', self.on_fontlist_select)
351 self.fontlist.bind('<KeyRelease-Up>', self.on_fontlist_select)
352 self.fontlist.bind('<KeyRelease-Down>', self.on_fontlist_select)
397 # Set sorted no-duplicate editor font selection list and font_name.
422 When one font attribute changes, save them all, as they are
429 changes.add_option('main', 'EditorWindow', 'font-size', value)
431 changes.add_option('main', 'EditorWindow', 'font-bold', value)
473 complete listings called themes. Built-in themes in
474 idlelib/config-highlight.def are fixed as far as the dialog is
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
514 tags applied to Python source within IDLE. Selecting one of the
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).
571 (*)targetlist: DynOptionMenu - highlight_target
573 (*)fg_on: Radiobutton - fg_bg_toggle
574 (*)bg_on: Radiobutton - fg_bg_toggle
578 (*)builtin_theme_on: Radiobutton - theme_source
579 (*)custom_theme_on: Radiobutton - theme_source
580 (*)builtinlist: DynOptionMenu - builtin_name
581 (*)customlist: DynOptionMenu - custom_name
620 text=' Highlighting Theme ')
629 text.bind('<Double-Button-1>', lambda e: 'break')
630 text.bind('<B1-Motion>', lambda e: 'break')
661 self.theme_elements[element][0], '<ButtonPress-1>', tem)
681 frame_custom, text='Save as New Custom Theme',
687 command=self.set_theme_type, text='a Built-in Theme')
690 command=self.set_theme_type, text='a Custom Theme')
696 frame_theme, text='Delete Custom Theme',
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.
744 'main', 'Theme', 'default', type='bool', default=1))
745 # Set current theme.
747 # Load available theme option menus.
748 if self.theme_source.get(): # Default theme selected.
756 self.custom_name.set('- no custom themes -')
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.
783 if idleConf.GetOption('main', 'Theme', 'name') not in old_themes:
784 changes.add_option('main', 'Theme', 'name', old_themes[0])
785 changes.add_option('main', 'Theme', 'name2', value)
786 self.theme_message['text'] = 'New theme, see Help'
788 changes.add_option('main', 'Theme', 'name', value)
789 changes.add_option('main', 'Theme', 'name2', '')
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.
800 if value != '- no custom themes -':
801 changes.add_option('main', 'Theme', 'name', value)
805 """Process toggle between builtin and custom theme.
808 selected theme type.
811 changes.add_option('main', 'Theme', 'default', value)
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.
880 message = ('Your changes will be saved as a new Custom Theme. '
881 'Enter a name for your new Custom Theme below.')
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()
899 theme_element = sample_element + '-' + plane
900 changes.add_option('highlight', theme, theme_element, new_color)
903 "Return name of new theme from query popup."
907 self, 'New Custom Theme', message, used_names).result
911 """Prompt for new theme name and create the theme.
917 new_theme_name = self.get_new_theme_name('New Theme Name:')
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]
1048 if element + '-foreground' in theme_dict:
1049 colors['foreground'] = theme_dict[element + '-foreground']
1050 if element + '-background' in theme_dict:
1051 colors['background'] = theme_dict[element + '-background']
1055 def save_new(self, theme_name, theme): argument
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 ?'
1095 'Delete Theme', delmsg % theme_name, parent=self):
1098 # Remove theme from changes, config, and file.
1100 # Reload user theme list.
1105 self.customlist.SetMenu(item_list, '- no custom themes -')
1108 # Revert to default theme.
1109 self.theme_source.set(idleConf.defaultCfg['main'].Get('Theme', 'default'))
1110 self.builtin_name.set(idleConf.defaultCfg['main'].Get('Theme', 'name'))
1133 keysets. Built-in keysets in idlelib/config-keys.def are fixed
1135 base for a new custom keyset, stored in .idlerc/config-keys.cfg.
1155 of one or more key combinations to bind to the same event.
1191 (*)builtin_keyset_on: Radiobutton - var keyset_source
1192 (*)custom_keyset_on: Radiobutton - var keyset_source
1193 (*)builtinlist: DynOptionMenu - var builtin_name,
1195 (*)customlist: DynOptionMenu - var custom_name,
1199 (*)button_delete_custom_keys: Button - delete_custom_keys
1200 (*)button_save_custom_keys: Button - save_as_new_key_set
1206 (*)bindingslist: ListBox - on_bindingslist_select
1207 (*)button_new_keys: Button - get_new_keys & ..._name
1227 target_title = Label(frame_target, text='Action - Key(s)')
1232 self.bindingslist.bind('<ButtonRelease-1>',
1246 command=self.set_keys_type, text='Use a Built-in Key Set')
1295 if self.keyset_source.get(): # Default theme selected.
1303 self.custom_name.set('- no custom keys -')
1341 if value != '- no custom keys -':
1403 if self.keyset_source.get(): # Current key set is a built-in.
1414 self.bindingslist.insert(list_index, bind_name+' - '+new_keys)
1453 event_name = event[2:-2] # Trim off the angle brackets.
1485 bind_name = bind_name[2:-2] # Trim off the angle brackets.
1490 self.bindingslist.insert(END, bind_name+' - '+key)
1504 keyset_name - string, the name of the new key set
1505 keyset - dictionary containing the new keybindings
1536 self.customlist.SetMenu(item_list, '- no custom keys -')
1561 digits_or_empty_re = re.compile(r'[0-9]*')
1609 IntVar(self), ('main', 'General', 'editor-on-startup'))
1615 StringVar(self), ('main', 'Indent', 'num-spaces'))
1617 BooleanVar(self), ('main', 'EditorWindow', 'cursor-blink'))
1623 StringVar(self), ('extensions', 'ParenMatch', 'flash-delay'))
1627 StringVar(self), ('extensions', 'FormatParagraph', 'max-width'))
1740 'main', 'General', 'editor-on-startup', type='bool'))
1746 'main', 'Indent', 'num-spaces', type='int'))
1748 'main', 'EditorWindow', 'cursor-blink', type='bool'))
1754 'extensions', 'ParenMatch', 'flash-delay', type='int'))
1758 'extensions', 'FormatParagraph', 'max-width', type='int'))
1771 digits_or_empty_re = re.compile(r'[0-9]*')
1790 (*)auto_squeeze_min_lines_int: Entry -
1795 (*)save_ask_on: Radiobutton - autosave
1796 (*)save_auto_on: Radiobutton - autosave
1799 (*)format_width_int: Entry - format_width
1802 (*)line_numbers_default_bool: Checkbutton - line_numbers_default
1805 (*)context_int: Entry - context_lines
1809 StringVar(self), ('main', 'PyShell', 'auto-squeeze-min-lines'))
1815 ('main', 'EditorWindow', 'line-numbers-default'))
1827 text='Auto-Squeeze Min. Lines:')
1861 Label(self).pack() # Spacer -- better solution?
1884 'main', 'PyShell', 'auto-squeeze-min-lines', type='int'))
1889 'main', 'EditorWindow', 'line-numbers-default', type='bool'))
1923 create_extension_frame: Hold widgets for one extension.
1970 # Former built-in extensions are already filtered out.
2028 """Create a frame holding the widgets to configure one extension"""
2048 # Limit size to fit non-expanding space with larger font.
2124 self.helplist.bind('<ButtonRelease-1>', self.help_source_selected)
2193 self.set_add_delete_state() # Selected will be un-selected
2212 ';'.join(self.user_helplist[num-1][:2]))
2250 or a tuple with IdleConf config-type, section, and
2313 The IDLE Dark color theme is new in October 2015. It can only
2315 theme, with a different name.
2330 FormatParagraph: Max-width is max chars in lines after re-formatting.
2334 'opener' - opener '({[' corresponding to closer; 'parens' - both chars;
2335 'expression' (default) - also everything in between. Flash-delay is how
2341 Shell Preferences: Auto-Squeeze Min. Lines is the minimum number of lines
2348 will be active on. For this extension, z-text is the text that will be