mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	Restored the original IDLE color scheme.
This commit is contained in:
		
							parent
							
								
									7de697597e
								
							
						
					
					
						commit
						a670d0c97b
					
				
					 1 changed files with 15 additions and 61 deletions
				
			
		| 
						 | 
					@ -1,65 +1,19 @@
 | 
				
			||||||
# Created on 4/15/99 by Loren Luke
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
# Color Prefs for idle
 | 
					# Color Prefs for idle
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class ColorPrefs:
 | 
					class ColorPrefs:
 | 
				
			||||||
    CNormal     = "yellow", None
 | 
					    CNormal     = "black", "white"      # "purple", "white"
 | 
				
			||||||
    CKeyword    = "medium sea green", None
 | 
					    CKeyword    = "#ff7700", None
 | 
				
			||||||
    CComment    = "white", None
 | 
					    CComment    = "#dd0000", None
 | 
				
			||||||
    CString     = "DarkOrange1", None
 | 
					    CString     = "#00aa00", None
 | 
				
			||||||
    CDefinition = "wheat1", None
 | 
					    CDefinition = "#0000ff", None
 | 
				
			||||||
    CHilite     = "#000068", "#006868"
 | 
					    CHilite     = "#000068", "#006868"
 | 
				
			||||||
    CSync       = "yellow", None
 | 
					    CSync       = None, None            # None, "#ffff00"
 | 
				
			||||||
    CTodo       = "aquamarine4", None
 | 
					    CTodo       = None, None            # None, "#cccccc"
 | 
				
			||||||
    CBreak      = "white", None
 | 
					    CBreak      = "#ff7777", None
 | 
				
			||||||
    CHit        = "#000068", None
 | 
					    CHit        = "#ffffff", "#000000"
 | 
				
			||||||
    CStdIn      = "yellow", None
 | 
					    CStdIn      = None, None            # None, "yellow"
 | 
				
			||||||
    CStdOut     = "yellow", None
 | 
					    CStdOut     = "blue", None
 | 
				
			||||||
    CStdErr     = "firebrick3", None
 | 
					    CStdErr     = "#007700", None
 | 
				
			||||||
    CConsole    = "yellow", None
 | 
					    CConsole    = "#770000", None
 | 
				
			||||||
    CError      = "white", "red"
 | 
					    CError      = None, "#ff7777"
 | 
				
			||||||
    CCursor     = None, "yellow"
 | 
					    CCursor     = None, "black"
 | 
				
			||||||
    
 | 
					 | 
				
			||||||
    def __init__(self, fg="yellow", bg="DodgerBlue4", ud=1):
 | 
					 | 
				
			||||||
        self.Default = fg, bg
 | 
					 | 
				
			||||||
        
 | 
					 | 
				
			||||||
        # Use Default Colors?
 | 
					 | 
				
			||||||
        if ud == 1:
 | 
					 | 
				
			||||||
            # Use Default fg, bg Colors
 | 
					 | 
				
			||||||
            # Define Screen Colors...
 | 
					 | 
				
			||||||
            # format: x = (fg, bg)
 | 
					 | 
				
			||||||
            self.CBreak      = "white", "#680000"
 | 
					 | 
				
			||||||
            self.CComment    = "white", self.Default[1]
 | 
					 | 
				
			||||||
            self.CConsole    = self.Default
 | 
					 | 
				
			||||||
            self.CCursor     = None, self.Default[0]
 | 
					 | 
				
			||||||
            self.CDefinition = "wheat1", self.Default[1]
 | 
					 | 
				
			||||||
            self.CError      = "white", "red"
 | 
					 | 
				
			||||||
            self.CHilite     = "#000068", "#006868"
 | 
					 | 
				
			||||||
            self.CHit        = "#000068", "#006868"
 | 
					 | 
				
			||||||
            self.CKeyword    = "medium sea green", self.Default[1]
 | 
					 | 
				
			||||||
            self.CNormal     = "yellow", self.Default[1]
 | 
					 | 
				
			||||||
            self.CStdErr     = "firebrick3", self.Default[1]
 | 
					 | 
				
			||||||
            self.CStdIn      = self.Default
 | 
					 | 
				
			||||||
            self.CStdOut     = self.Default
 | 
					 | 
				
			||||||
            self.CString     = "DarkOrange1", self.Default[1]
 | 
					 | 
				
			||||||
            self.CSync       = self.Default
 | 
					 | 
				
			||||||
            self.CTodo       = "aquamarine4", self.Default[1]
 | 
					 | 
				
			||||||
        else:
 | 
					 | 
				
			||||||
            #Define Screen Colors...
 | 
					 | 
				
			||||||
            # format: x = (fg, bg)
 | 
					 | 
				
			||||||
            self.CBreak      = "white", None
 | 
					 | 
				
			||||||
            self.CComment    = "white", None
 | 
					 | 
				
			||||||
            self.CConsole    = "yellow", None
 | 
					 | 
				
			||||||
            self.CCursor     = None, "yellow"
 | 
					 | 
				
			||||||
            self.CDefinition = "wheat1", None
 | 
					 | 
				
			||||||
            self.CError      = "white", "red"
 | 
					 | 
				
			||||||
            self.CHilite     = "#000068", "#006868"
 | 
					 | 
				
			||||||
            self.CHit        = "#000068", None
 | 
					 | 
				
			||||||
            self.CKeyword    = "medium sea green", None
 | 
					 | 
				
			||||||
            self.CNormal     = "yellow", None
 | 
					 | 
				
			||||||
            self.CStdErr     = "firebrick3", None
 | 
					 | 
				
			||||||
            self.CStdIn      = "yellow", None
 | 
					 | 
				
			||||||
            self.CStdOut     = "yellow", None
 | 
					 | 
				
			||||||
            self.CString     = "DarkOrange1", None
 | 
					 | 
				
			||||||
            self.CSync       = "yellow", None
 | 
					 | 
				
			||||||
            self.CTodo       = "aquamarine4", None
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue