# Path: apps/pw_multiScriptEditor/widgets/pythonSyntax/design.py
# def getColors(theme=False):
# def editorStyle(theme=None):
# def applyColorToEditorStyle(colors=None):
# 
# Path: apps/pw_multiScriptEditor/widgets/pythonSyntax/syntaxHighLighter.py
# class PythonHighlighterClass (QSyntaxHighlighter):
#     def __init__(self, document, colors=None):
#     def getStyle(self, color, bold=False):
#     def highlightBlock(self, text):
#     def match_multiline(self, text, delimiter, in_state, style):


from PySide.QtCore import *
from PySide.QtGui import *
from .pythonSyntax import design
from .pythonSyntax import syntaxHighLighter
from . import inputWidget
import themeEditor_UIs as ui
import settingsManager
import os
import icons_rcs


    def fillUI(self, restore=None):
        if restore is None:
            restore = self.themeList_cbb.currentText()
        settings = self.s.readSettings()
        self.themeList_cbb.clear()
        self.themeList_cbb.addItem('default')
        if settings.get('colors'):
            for x in settings.get('colors'):
                self.themeList_cbb.addItem(x)
        if not restore:
            restore = settings.get('theme')
        if restore:
            index = self.themeList_cbb.findText(restore)
            self.themeList_cbb.setCurrentIndex(index)
        self.updateExample()


    def updateColors(self):
        curTheme = self.themeList_cbb.currentText()
        if curTheme == 'default':
            self.del_btn.setEnabled(0)
            colors = design.defaultColors
        else:
            self.del_btn.setEnabled(1)
            settings = self.s.readSettings()
            allThemes = settings.get('colors')
            if allThemes and curTheme in allThemes:
                colors = allThemes.get(curTheme)

# Path: apps/pw_multiScriptEditor/widgets/pythonSyntax/design.py
# def getColors(theme=False):
# def editorStyle(theme=None):
# def applyColorToEditorStyle(colors=None):
# 
# Path: apps/pw_multiScriptEditor/widgets/pythonSyntax/syntaxHighLighter.py
# class PythonHighlighterClass (QSyntaxHighlighter):
#     def __init__(self, document, colors=None):
#     def getStyle(self, color, bold=False):
#     def highlightBlock(self, text):
#     def match_multiline(self, text, delimiter, in_state, style):


# Path: apps/pw_multiScriptEditor/widgets/themeEditor.py
from PySide.QtCore import *
from PySide.QtGui import *
from .pythonSyntax import design
from .pythonSyntax import syntaxHighLighter
from . import inputWidget
import themeEditor_UIs as ui
import settingsManager
import os
import icons_rcs



    def fillUI(self, restore=None):
        if restore is None:
            restore = self.themeList_cbb.currentText()
        settings = self.s.readSettings()
        self.themeList_cbb.clear()
        self.themeList_cbb.addItem('default')
        if settings.get('colors'):
            for x in settings.get('colors'):
                self.themeList_cbb.addItem(x)
        if not restore:
            restore = settings.get('theme')
        if restore:
            index = self.themeList_cbb.findText(restore)
            self.themeList_cbb.setCurrentIndex(index)
        self.updateExample()


    def updateColors(self):
        curTheme = self.themeList_cbb.currentText()
        if curTheme == 'default':
            self.del_btn.setEnabled(0)
            colors = design.defaultColors
        else:
            self.del_btn.setEnabled(1)
            settings = self.s.readSettings()
            allThemes = settings.get('colors')
            if allThemes and curTheme in allThemes:
                colors = allThemes.get(curTheme)

                for k, v in design.getColors().items():