def __init__(self, renderer, fontFace="comic sans ms", fontSize=10, fontFlags=0): ThemeBase.__init__(self, renderer, fontFace, fontSize, fontFlags) # theme colors alpha = 185 self.fgColor = self.renderer.packColor(0, 0, 0, alpha) self.bgColor1 = self.renderer.packColor(255, 255, 0, alpha) self.bgColor2 = self.renderer.packColor(255, 255, 120, alpha) self.bgColor3 = self.renderer.packColor(255, 255, 185, alpha) self.bgSelect = self.renderer.packColor(255, 255, 185, alpha) self.titleColor = self.renderer.packColor(210, 210, 255, alpha) #255,128,0) self.buttonUpA = self.renderer.packColor(255, 190, 120, alpha) self.buttonUpB = self.renderer.packColor(255, 130, 100, alpha) self.buttonRoA = self.renderer.packColor(255, 120, 80, alpha) self.buttonTextColor = self.renderer.packColor(0, 255, 255, alpha) self.titleFont = renderer.createFont( fontFace, int(fontSize * 1.5), pyui.locals.BOLD | pyui.locals.ITALIC) (self.titleTextWidth, self.titleTextHeight) = self.renderer.getTextSize( "M", self.titleFont) # customize some sizes self.frameBorderTop = self.titleTextHeight + 4 self.tabsHeight = int(self.titleTextHeight * 1.3) self.scrollerSize = 16
def __init__(self, renderer, fontFace="microsoft sans serif", fontSize=10, fontFlags=0): ThemeBase.__init__(self, renderer, fontFace, fontSize, fontFlags) # theme colors self.fgColor = renderer.packColor(0,0,0) self.bgSelect = renderer.packColor(200,224,216) self.bgColor1 = renderer.packColor(200,224,216) self.bgColor2 = renderer.packColor(136,192,184) self.bgColor3 = renderer.packColor(220,210,222) self.listSelect = renderer.packColor(1,9,131) self.bgMenuBar = self.bgColor2 self.bgMenuPanel = self.bgColor2 self.bgMenuSelect = self.listSelect self.black = renderer.packColor(0,0,0) self.white = renderer.packColor(255,255,255) self.shadeHi0 = renderer.packColor(255,255,255,0) self.shadeHi1 = renderer.packColor(255,255,255,255) self.shadeLo0 = renderer.packColor(0,0,0,0) self.shadeLo1 = renderer.packColor(0,0,0,255) self.buttonUpA = renderer.packColor(210,200,215) self.buttonUpB = renderer.packColor(190,180,180) self.buttonRoA = renderer.packColor(150,196,189) self.buttonRoB = renderer.packColor(180,190,200) self.buttonDnA = renderer.packColor(170,170,170) self.buttonDnB = renderer.packColor(180,180,200) self.buttonFocus = renderer.packColor(128,192,255,128) self.captionA = renderer.packColor(0,0,100) self.captionB = renderer.packColor(24,180,192) self.frameColor = renderer.packColor(120,120,140) self.shadowMedium = renderer.packColor(0,0,0,128) self.scrollerSize = 14
def __init__(self, renderer, fontFace="times", fontSize=12, fontFlags=0): ThemeBase.__init__(self, renderer, fontFace, fontSize, fontFlags) # theme colors self.fgColor = renderer.packColor(255,255,255) self.bgSelect = renderer.packColor(150,160,140) self.bgColor1 = renderer.packColor(150,140,150,224) self.bgColor2 = renderer.packColor(60,40,50,128) self.bgColor3 = renderer.packColor(60,50,50,128) self.bgMenuBar = renderer.packColor(60,60,60) self.bgMenuPanel = renderer.packColor(60,60,70,224) self.bgMenuSelect = renderer.packColor(125,120,120) self.black = renderer.packColor(0,0,0) self.white = renderer.packColor(255,255,255) self.shadeHi0 = renderer.packColor(255,255,255,0) self.shadeHi1 = renderer.packColor(255,255,255,255) self.shadeLo0 = renderer.packColor(0,0,0,0) self.shadeLo1 = renderer.packColor(0,0,0,255) self.buttonUpA = renderer.packColor(210,200,215) self.buttonUpB = renderer.packColor(150,150,160) self.buttonRoA = renderer.packColor(230,240,250) self.buttonRoB = renderer.packColor(180,190,200) self.buttonDnA = renderer.packColor(100,110,120) self.buttonDnB = renderer.packColor(180,180,200) self.buttonFocus = renderer.packColor(128,192,255,128) self.captionA = renderer.packColor(40,40,50) self.captionB = renderer.packColor(130,130,140) self.frameColor = renderer.packColor(120,120,140) self.shadowLight = renderer.packColor(0,0,0,64) self.shadowMedium = renderer.packColor(0,0,0,128) self.shadowDark = renderer.packColor(0,0,0,192)
def __init__(self, renderer, fontFace="times", fontSize=17, fontFlags=0): ThemeBase.__init__(self, renderer, fontFace, fontSize, fontFlags) # theme colors self.fgColor = renderer.packColor(255, 255, 255) self.bgSelect = renderer.packColor(150, 160, 140) self.bgColor1 = renderer.packColor(150, 140, 150, 224) self.bgColor2 = renderer.packColor(60, 40, 50, 128) self.bgColor3 = renderer.packColor(60, 50, 50, 128) self.bgMenuBar = renderer.packColor(60, 60, 60) self.bgMenuPanel = renderer.packColor(60, 60, 70, 224) self.bgMenuSelect = renderer.packColor(125, 120, 120) self.black = renderer.packColor(0, 0, 0) self.white = renderer.packColor(255, 255, 255) self.shadeHi0 = renderer.packColor(255, 255, 255, 0) self.shadeHi1 = renderer.packColor(255, 255, 255, 255) self.shadeLo0 = renderer.packColor(0, 0, 0, 0) self.shadeLo1 = renderer.packColor(0, 0, 0, 255) self.buttonUpA = renderer.packColor(210, 200, 215) self.buttonUpB = renderer.packColor(150, 150, 160) self.buttonRoA = renderer.packColor(230, 240, 250) self.buttonRoB = renderer.packColor(180, 190, 200) self.buttonDnA = renderer.packColor(100, 110, 120) self.buttonDnB = renderer.packColor(180, 180, 200) self.buttonFocus = renderer.packColor(128, 192, 255, 128) self.captionA = renderer.packColor(40, 40, 50) self.captionB = renderer.packColor(130, 130, 140) self.frameColor = renderer.packColor(120, 120, 140) self.shadowLight = renderer.packColor(0, 0, 0, 64) self.shadowMedium = renderer.packColor(0, 0, 0, 128) self.shadowDark = renderer.packColor(0, 0, 0, 192)
def __init__(self, renderer, fontFace="arial", fontSize=12, fontFlags=0): ThemeBase.__init__(self, renderer, fontFace, fontSize, fontFlags) # theme colors self.fgColor = renderer.packColor(0, 0, 0) self.bgSelect = renderer.packColor(200, 224, 216) self.bgColor1 = renderer.packColor(200, 224, 216) self.bgColor2 = renderer.packColor(136, 192, 184) self.bgColor3 = renderer.packColor(220, 210, 222) self.listSelect = renderer.packColor(1, 9, 131) self.bgMenuBar = self.bgColor2 self.bgMenuPanel = self.bgColor2 self.bgMenuSelect = self.listSelect self.black = renderer.packColor(0, 0, 0) self.white = renderer.packColor(255, 255, 255) self.shadeHi0 = renderer.packColor(255, 255, 255, 0) self.shadeHi1 = renderer.packColor(255, 255, 255, 255) self.shadeLo0 = renderer.packColor(0, 0, 0, 0) self.shadeLo1 = renderer.packColor(0, 0, 0, 255) self.buttonUpA = renderer.packColor(210, 200, 215) self.buttonUpB = renderer.packColor(190, 180, 180) self.buttonRoA = renderer.packColor(150, 196, 189) self.buttonRoB = renderer.packColor(180, 190, 200) self.buttonDnA = renderer.packColor(170, 170, 170) self.buttonDnB = renderer.packColor(180, 180, 200) self.buttonFocus = renderer.packColor(128, 192, 255, 128) self.captionA = renderer.packColor(0, 0, 100) self.captionB = renderer.packColor(24, 180, 192) self.frameColor = renderer.packColor(120, 120, 140) self.shadowMedium = renderer.packColor(0, 0, 0, 128) self.scrollerSize = 14
def __init__(self, renderer): ThemeBase.__init__(self, renderer, "courier", 10, 0) self.frameBorderLeft = 1 self.frameBorderRight = 1 self.frameBorderBottom = 1 self.green = renderer.packColor(0,255,0) self.black = renderer.packColor(0,0,0)
def __init__(self, renderer, fontFace=myFont, fontSize=11, fontFlags=0): ThemeBase.__init__(self, renderer, fontFace, fontSize, fontFlags) # theme colors self.fgColor = renderer.packColor(255, 255, 255) # main text color self.fgColor1 = renderer.packColor(255, 255, 10) # label1 color self.fgColor2 = renderer.packColor(0, 0, 0) # label2 color self.bgSelect = renderer.packColor(0, 126, 255, 0) # sliderbar self.bgColor1 = renderer.packColor(0, 126, 255, 224) self.bgColor2 = renderer.packColor(0, 126, 255, 128) self.bgColor3 = renderer.packColor(200, 0, 0, 128) #? self.bgMenuBar = renderer.packColor(60, 60, 220) self.bgMenuPanel = renderer.packColor(160, 60, 70, 224) self.bgMenuSelect = renderer.packColor(125, 120, 120) self.black = renderer.packColor(0, 0, 0) self.white = renderer.packColor(255, 255, 255) self.shadeHi0 = renderer.packColor(255, 255, 255, 0) self.shadeHi1 = renderer.packColor(255, 255, 255, 255) self.shadeLo0 = renderer.packColor(0, 0, 0, 0) self.shadeLo1 = renderer.packColor(0, 0, 0, 255) self.buttonUpA = renderer.packColor(20, 20, 120) self.buttonUpB = renderer.packColor(20, 20, 220) self.buttonRoA = renderer.packColor(240, 240, 20) self.buttonRoB = renderer.packColor(140, 140, 20) self.buttonDnA = renderer.packColor(0, 0, 0) self.buttonDnB = renderer.packColor(0, 0, 0) self.buttonFocus = renderer.packColor(0, 200, 0, 128) #? self.captionA = renderer.packColor(20, 120, 20) # frame caption main color self.captionB = renderer.packColor(20, 220, 20) # frame caption color blend self.frameColor = renderer.packColor(120, 120, 140) self.shadowLight = renderer.packColor(0, 0, 0, 64) self.shadowMedium = renderer.packColor(0, 0, 0, 128) self.shadowDark = renderer.packColor(0, 0, 0, 192) self.defaultFont = renderer.createFont(myFont, 12, 0) # default font self.scrollerSize = 20
def __init__(self, renderer, fontFace="comic sans ms", fontSize=10, fontFlags=0): ThemeBase.__init__(self, renderer, fontFace, fontSize, fontFlags) # theme colors alpha = 185 self.fgColor = self.renderer.packColor(0,0,0, alpha) self.bgColor1 = self.renderer.packColor(255,255,0,alpha) self.bgColor2 = self.renderer.packColor(255,255,120,alpha) self.bgColor3 = self.renderer.packColor(255,255,185, alpha) self.bgSelect = self.renderer.packColor(255,255,185, alpha) self.titleColor = self.renderer.packColor(210,210,255,alpha) #255,128,0) self.buttonUpA = self.renderer.packColor(255,190,120,alpha) self.buttonUpB = self.renderer.packColor(255,130,100,alpha) self.buttonRoA = self.renderer.packColor(255,120,80,alpha) self.buttonTextColor = self.renderer.packColor(0,255,255,alpha) self.titleFont = renderer.createFont(fontFace, int(fontSize*1.5), pyui.locals.BOLD | pyui.locals.ITALIC) (self.titleTextWidth, self.titleTextHeight) = self.renderer.getTextSize("M", self.titleFont) # customize some sizes self.frameBorderTop = self.titleTextHeight + 4 self.tabsHeight = int(self.titleTextHeight * 1.3) self.scrollerSize = 16
def drawLabel(self, rect, title, color = None, font = None, shadow=0, align=0 ): return ThemeBase.drawLabel(self, rect, title, color, font, shadow, align)
def drawLabel(self, rect, title, color=None, font=None, shadow=0, align=0): return ThemeBase.drawLabel(self, rect, title, color, font, shadow, align)