# 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

class DefaultStyle(object):
    def __init__(self, baseColor=None):
        if baseColor is None:
            baseColor = RGBA255(30, 30, 30, 255)

        self._baseColor = vec4(0)
        self.activeColor = RGB1(.8, .4, 0)
        self.name = 'Default'
        self.raisedGradientColor0 = WHITE
        self.raisedGradientColor1 = BLACK
        self.sunkenGradientColor0 = BLACK
        self.sunkenGradientColor1 = WHITE
        self.pressedGradientColor0 = BLACK
        self.pressedGradientColor1 = WHITE
        self.hoverGradientColor0 = WHITE
        self.hoverGradientColor1 = BLACK
        self.autoRaiseGradientColor0 = WHITE
        self.autoRaiseGradientColor1 = BLACK
        self.baseColor = baseColor

    def _buildGradients(self):
        baseColor = self._baseColor
        color0 = (baseColor + WHITE / 2.0) / 2.0
        color0.w = baseColor.w
        color1 = baseColor / 4.0
        color1.w = baseColor.w
        color2 = (baseColor + WHITE / 3.0) / 2.0
        color2.w = baseColor.w
        color3 = baseColor / 6.0

# 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


class DefaultStyle(object):
    def __init__(self, baseColor=None):
        if baseColor is None:
            baseColor = RGBA255(30, 30, 30, 255)

        self._baseColor = vec4(0)
        self.activeColor = RGB1(.8, .4, 0)
        self.name = 'Default'
        self.raisedGradientColor0 = WHITE
        self.raisedGradientColor1 = BLACK
        self.sunkenGradientColor0 = BLACK
        self.sunkenGradientColor1 = WHITE
        self.pressedGradientColor0 = BLACK
        self.pressedGradientColor1 = WHITE
        self.hoverGradientColor0 = WHITE
        self.hoverGradientColor1 = BLACK
        self.autoRaiseGradientColor0 = WHITE
        self.autoRaiseGradientColor1 = BLACK
        self.baseColor = baseColor

    def _buildGradients(self):
        baseColor = self._baseColor
        color0 = (baseColor + WHITE / 2.0) / 2.0
        color0.w = baseColor.w
        color1 = baseColor / 4.0
        color1.w = baseColor.w
        color2 = (baseColor + WHITE / 3.0) / 2.0
        color2.w = baseColor.w
        color3 = baseColor / 6.0

        color3.w = baseColor.w