# Path: e3d/gui/BaseControlClass.py
# class GradientTypesEnum(object):
#     noGradient = -1
#     Vertical = 0
#     Horizontal = 1
#     RightCorner = 2
#     LeftCorner = 3
#     CenterVertical = 4
#     CenterHorizontal = 5
#     Diagonal1 = 6
#     Diagonal2 = 7
#     Radial = 8


from ...Colors import *
from ..BaseControlClass import GradientTypesEnum
from copy import copy
from json import dump, load
                if not att.startswith('_'):
                    vals[att] = getattr(self, att)
            dump(vals, file, indent=4)

    @staticmethod
    def readFromFile(path):
        style = DefaultStyle()
        with open(path) as file:
            vals = load(file)
            for att in vals.keys:
                setattr(style, att, vals[att])

        return style

    @property
    def baseColor(self):
        return self._baseColor

    @baseColor.setter
    def baseColor(self, value):
        baseColor = vec4(value)
        self._baseColor = value
        self.backgroundColor = vec4(baseColor)
        self.fontColor = WHITE
        self.fontOutlineColor = BLUE
        self.fontSize = 10
        self.borderSize = 1
        self.borderColor = fromRGB1_A(baseColor / 4.0, 1)
        self.focusBorderColor = ORANGE
        self.hoverBorderColor = GREEN

# Path: e3d/gui/BaseControlClass.py
# class GradientTypesEnum(object):
#     noGradient = -1
#     Vertical = 0
#     Horizontal = 1
#     RightCorner = 2
#     LeftCorner = 3
#     CenterVertical = 4
#     CenterHorizontal = 5
#     Diagonal1 = 6
#     Diagonal2 = 7
#     Radial = 8


# Path: e3d/gui/Styling/StyleClass.py
from ...Colors import *
from ..BaseControlClass import GradientTypesEnum
from copy import copy
from json import dump, load

                if not att.startswith('_'):
                    vals[att] = getattr(self, att)
            dump(vals, file, indent=4)

    @staticmethod
    def readFromFile(path):
        style = DefaultStyle()
        with open(path) as file:
            vals = load(file)
            for att in vals.keys:
                setattr(style, att, vals[att])

        return style

    @property
    def baseColor(self):
        return self._baseColor

    @baseColor.setter
    def baseColor(self, value):
        baseColor = vec4(value)
        self._baseColor = value
        self.backgroundColor = vec4(baseColor)
        self.fontColor = WHITE
        self.fontOutlineColor = BLUE
        self.fontSize = 10
        self.borderSize = 1
        self.borderColor = fromRGB1_A(baseColor / 4.0, 1)
        self.focusBorderColor = ORANGE
        self.hoverBorderColor = GREEN

        self.gradientType = GradientTypesEnum.noGradient