
Config = {}

--shortcuts config
Config.shortcuts = {}

Config.shortcuts["select"] = {key = "Q"}
Config.shortcuts["move"] = {key = "W"}
Config.shortcuts["rotate"] = {key = "E"}
Config.shortcuts["scale"] = {key = "R"}
Config.shortcuts["frame selected"] = {key = "F"}

--polyEditor shortcuts

--model
Config.shortcuts["new quad"] = {key = "N"}
Config.shortcuts["extrude"] = {key = "X"}
Config.shortcuts["split vertical"] = {key = "V"}
Config.shortcuts["split horizontal"] = {key = "H"}
Config.shortcuts["mirror"] = {key = "M"}
Config.shortcuts["flip normal"] = {key = "F", modifier = "LEFT_CONTROL"}
Config.shortcuts["sharp normal"] = {key = ""}
Config.shortcuts["smooth normal"] = {key = ""}

--texture
Config.shortcuts["move UV"] = {key = "W"}
Config.shortcuts["rotate UV"] = {key = "E"}
Config.shortcuts["scale UV"] = {key = "R"}
Config.shortcuts["pencil"] = {key = "A"}
Config.shortcuts["pick color"] = {key = "S"}
Config.shortcuts["line"] = {key = "L"}
Config.shortcuts["bucket"] = {key = "K"}
Config.shortcuts["rect fill"] = {key = "J"}
Config.shortcuts["stamp"] = {key = "H"}
Config.shortcuts["gradient"] = {key = "G"}
Config.shortcuts["magnified region ON/OFF"] = {key = "M"}

--animEditor
Config.shortcuts["play"] = {key = "SPACE"}

--levelEditor
Config.shortcuts["clone"] = {key = "C"}
Config.shortcuts["rotate 90"] = {key = "T"}

--palette config

--https://lospec.com/palette-list/mail-24
Config.palette = {
	vec4(255, 255, 255, 255),
	vec4(178, 188, 194, 255),
	vec4(120, 132, 171, 255),
	vec4(62, 55, 92, 255),
	vec4(255, 128, 170, 255),
	vec4(191, 63, 179, 255),
	vec4(104, 43, 130, 255),
	vec4(110, 238, 255, 255),
	vec4(56, 152, 255, 255),
	vec4(36, 59, 97, 255),
	vec4(104, 255, 160, 255),
	vec4(131, 224, 76, 255),
	vec4(57, 133, 90, 255),
	vec4(255, 209, 171, 255),
	vec4(207, 121, 87, 255),
	vec4(117, 57, 57, 255),
	vec4(255, 242, 117, 255),
	vec4(255, 191, 54, 255),
	vec4(196, 77, 41, 255),
	vec4(255, 160, 112, 255),
	vec4(255, 65, 65, 255),
	vec4(122, 33, 58, 255),
	vec4(55, 37, 56, 255),
	vec4(23, 17, 26, 255)
}

Config.paletteNames = {}
Config.paletteNames.white = Config.palette[1]
Config.paletteNames.greyLight = Config.palette[2]
Config.paletteNames.grey = Config.palette[3]
Config.paletteNames.greyDark = Config.palette[4]
Config.paletteNames.purpleLight = Config.palette[5]
Config.paletteNames.purple = Config.palette[6]
Config.paletteNames.purpleDark = Config.palette[7]
Config.paletteNames.blueLight = Config.palette[8]
Config.paletteNames.blue = Config.palette[9]
Config.paletteNames.blueDark = Config.palette[10]
Config.paletteNames.greenLight = Config.palette[11]
Config.paletteNames.green = Config.palette[12]
Config.paletteNames.greenDark = Config.palette[13]
Config.paletteNames.brownLight = Config.palette[14]
Config.paletteNames.brown = Config.palette[15]
Config.paletteNames.brownDark = Config.palette[16]
Config.paletteNames.yellow = Config.palette[17]
Config.paletteNames.orange = Config.palette[18]
Config.paletteNames.orangeDark = Config.palette[19]
Config.paletteNames.redLight = Config.palette[20]
Config.paletteNames.red = Config.palette[21]
Config.paletteNames.redDark = Config.palette[22]
Config.paletteNames.blackLight = Config.palette[23]
Config.paletteNames.black = Config.palette[24]

-- main
Config.uiColors = {}
Config.uiColors.background = Config.paletteNames.greyLight
Config.uiColors.text = Config.paletteNames.white
Config.uiColors.pageButton = Config.paletteNames.black
Config.uiColors.panel = Config.paletteNames.greyDark
Config.uiColors.panelLight = Config.paletteNames.grey
Config.uiColors.descPanel = Config.paletteNames.blackLight
Config.uiColors.handle = Config.paletteNames.grey
Config.uiColors.windowBar = Config.paletteNames.grey
Config.uiColors.icon = Config.paletteNames.white
Config.uiColors.accent = Config.paletteNames.greenLight
Config.uiColors.viewButton = Config.paletteNames.greenDark
Config.uiColors.downloadButton = Config.paletteNames.greyDark
Config.uiColors.trashButton = Config.paletteNames.greyDark
Config.uiColors.button = Config.paletteNames.grey
Config.uiColors.tab = Config.paletteNames.grey
Config.uiColors.tabIcon = Config.paletteNames.brownLight
Config.uiColors.file = Config.paletteNames.black
Config.uiColors.fileIcon = Config.paletteNames.greyDark
Config.uiColors.fileIconTextBackground = Config.paletteNames.black
Config.uiColors.fileIconText = Config.paletteNames.white
Config.uiColors.mainTooltip = Config.paletteNames.yellow
Config.uiColors.mainTooltipText = Config.paletteNames.grey
Config.uiColors.userProgramsMenu = Config.paletteNames.green

-- polyEditor
Config.uiColors.modelLayer = Config.paletteNames.grey
Config.uiColors.polyEditorBackground = Config.paletteNames.greyDark
Config.uiColors.polyEditorViewport = Config.paletteNames.black
Config.uiColors.polyEditorOverlayWireframe = Config.paletteNames.grey
Config.uiColors.polyEditorVertex = Config.paletteNames.purple
Config.uiColors.polyEditorVertexHighlight = Config.paletteNames.yellow
Config.uiColors.polyEditorVertexSelected = Config.paletteNames.blue
Config.uiColors.polyEditorVertexSelectedInactive = Config.paletteNames.blueDark
Config.uiColors.polyEditorGrid = Config.paletteNames.greyDark
Config.uiColors.polyEditorWireframe = Config.paletteNames.white
Config.uiColors.textField = Config.paletteNames.white
Config.uiColors.textFieldText = Config.paletteNames.brownDark
Config.uiColors.textFieldCursor = Config.paletteNames.brown
Config.uiColors.textFieldSelected = Config.paletteNames.blue

-- levelEditor
Config.uiColors.levelEditorBackground = Config.paletteNames.greyDark
Config.uiColors.levelEditorViewport = Config.paletteNames.black
Config.uiColors.levelEditorGrid = Config.paletteNames.greyDark
Config.uiColors.levelEditorPickHighlight = Config.paletteNames.yellow
Config.uiColors.levelEditorSelected = Config.paletteNames.blue
Config.uiColors.levelEditorWireframe = Config.paletteNames.white
Config.uiColors.levelEditorInactiveBounds = Config.paletteNames.grey
Config.uiColors.levelEditorPropFieldText = Config.paletteNames.blueDark
Config.uiColors.levelEditorPropFieldTextActive = Config.paletteNames.white

-- animEditor
Config.uiColors.animEditorBackground = Config.paletteNames.greyDark
Config.uiColors.animEditorViewport = Config.paletteNames.black
Config.uiColors.animEditorTimelineBackground = Config.paletteNames.greyLight
Config.uiColors.animEditorTimelineFrame = Config.paletteNames.white
Config.uiColors.animEditorCurrentFrame = Config.paletteNames.blueLight
Config.uiColors.animEditorKeyframe = Config.paletteNames.greenLight
Config.uiColors.animEditorKeyframeAtCurrentTime = Config.paletteNames.purpleLight
Config.uiColors.animEditorControlBar = Config.paletteNames.blue
Config.uiColors.animEditorControlBarTimestamp = Config.paletteNames.white
Config.uiColors.animEditorPropFieldText = Config.paletteNames.blueDark
Config.uiColors.animEditorPropFieldTextActive = Config.paletteNames.white
Config.uiColors.animEditorWaveField = Config.paletteNames.greyDark + 20
Config.uiColors.animEditorWaveFieldText = Config.paletteNames.grey
Config.uiColors.animEditorControlBar = Config.paletteNames.blue
Config.uiColors.animEditorPickHighlight = Config.paletteNames.yellow
Config.uiColors.animEditorSelected = Config.paletteNames.blue

-- modelVisualizer
Config.uiColors.modelVisualizerBackground = Config.paletteNames.greyLight

-- memory
Config.uiColors.memoryVisualizerBackground = Config.paletteNames.black
Config.uiColors.memoryVisualizerBackgroundInactive = Config.paletteNames.blueDark
Config.uiColors.memoryVisualizerBackgroundPage = Config.paletteNames.orange
Config.uiColors.memoryVisualizerBackgroundMemSlot = Config.paletteNames.purpleLight
Config.uiColors.memoryVisualizerBackgroundMemSlotAsset = Config.paletteNames.purple
Config.uiColors.memoryVisualizerBackgroundOccupancy = Config.paletteNames.blue
Config.uiColors.memoryVisualizerBackgroundTextColor = Config.paletteNames.greyLight
