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))
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))
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)