blob: 7ca74caabfc9d784b8973b71f89fda7945e8a508 [file] [log] [blame]
Guido van Rossum7de69751999-04-20 15:45:30 +00001# Created on 4/15/99 by Loren Luke
2#
3# Color Prefs for idle
4
5class ColorPrefs:
6 CNormal = "yellow", None
7 CKeyword = "medium sea green", None
8 CComment = "white", None
9 CString = "DarkOrange1", None
10 CDefinition = "wheat1", None
11 CHilite = "#000068", "#006868"
12 CSync = "yellow", None
13 CTodo = "aquamarine4", None
14 CBreak = "white", None
15 CHit = "#000068", None
16 CStdIn = "yellow", None
17 CStdOut = "yellow", None
18 CStdErr = "firebrick3", None
19 CConsole = "yellow", None
20 CError = "white", "red"
21 CCursor = None, "yellow"
22
23 def __init__(self, fg="yellow", bg="DodgerBlue4", ud=1):
24 self.Default = fg, bg
25
26 # Use Default Colors?
27 if ud == 1:
28 # Use Default fg, bg Colors
29 # Define Screen Colors...
30 # format: x = (fg, bg)
31 self.CBreak = "white", "#680000"
32 self.CComment = "white", self.Default[1]
33 self.CConsole = self.Default
34 self.CCursor = None, self.Default[0]
35 self.CDefinition = "wheat1", self.Default[1]
36 self.CError = "white", "red"
37 self.CHilite = "#000068", "#006868"
38 self.CHit = "#000068", "#006868"
39 self.CKeyword = "medium sea green", self.Default[1]
40 self.CNormal = "yellow", self.Default[1]
41 self.CStdErr = "firebrick3", self.Default[1]
42 self.CStdIn = self.Default
43 self.CStdOut = self.Default
44 self.CString = "DarkOrange1", self.Default[1]
45 self.CSync = self.Default
46 self.CTodo = "aquamarine4", self.Default[1]
47 else:
48 #Define Screen Colors...
49 # format: x = (fg, bg)
50 self.CBreak = "white", None
51 self.CComment = "white", None
52 self.CConsole = "yellow", None
53 self.CCursor = None, "yellow"
54 self.CDefinition = "wheat1", None
55 self.CError = "white", "red"
56 self.CHilite = "#000068", "#006868"
57 self.CHit = "#000068", None
58 self.CKeyword = "medium sea green", None
59 self.CNormal = "yellow", None
60 self.CStdErr = "firebrick3", None
61 self.CStdIn = "yellow", None
62 self.CStdOut = "yellow", None
63 self.CString = "DarkOrange1", None
64 self.CSync = "yellow", None
65 self.CTodo = "aquamarine4", None