Esempio n. 1
0
 def set_theme(self, theme):
     for style in self.styles:
         # Papers
         paper = data.QColor(getattr(theme.Paper.Python, style))
         self.setPaper(paper, self.styles[style])
         # Fonts
         lexers.set_font(self, style, getattr(theme.Font.Python, style))
Esempio n. 2
0
File: awk.py Progetto: Mr-ZBin/ExCo
 def set_theme(self, theme):
     for style in self.styles:
         # Papers
         self.setPaper(data.QColor(theme.Paper.AWK.Default),
                       self.styles[style])
         # Fonts
         lexers.set_font(self, style, getattr(theme.Font.AWK, style))
Esempio n. 3
0
File: text.py Progetto: Mr-ZBin/ExCo
 def set_theme(self, theme):
     # Papers
     self.setPaper(data.QColor(theme.Paper.Python.Default),
                   self.styles["Default"])
     # Fonts
     lexers.set_font(self, "Default", theme.Font.Python.Default)