956383a - Update all libraries
[wowui.git] / libs / AceGUI-3.0 / widgets / AceGUIWidget-ColorPicker.lua
index f242437..05e2b57 100644 (file)
@@ -1,7 +1,7 @@
 --[[-----------------------------------------------------------------------------
 ColorPicker Widget
 -------------------------------------------------------------------------------]]
-local Type, Version = "ColorPicker", 21
+local Type, Version = "ColorPicker", 23
 local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
 if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
 
@@ -51,6 +51,7 @@ local function ColorSwatch_OnClick(frame)
        local self = frame.obj
        if not self.disabled then
                ColorPickerFrame:SetFrameStrata("FULLSCREEN_DIALOG")
+               ColorPickerFrame:SetFrameLevel(frame:GetFrameLevel() + 10)
                ColorPickerFrame:SetClampedToScreen(true)
 
                ColorPickerFrame.func = function()
@@ -145,7 +146,7 @@ local function Constructor()
        local texture = frame:CreateTexture(nil, "BACKGROUND")
        texture:SetWidth(16)
        texture:SetHeight(16)
-       texture:SetTexture(1, 1, 1)
+       texture:SetColorTexture(1, 1, 1)
        texture:SetPoint("CENTER", colorSwatch)
        texture:Show()