Gradient implementation

This commit is contained in:
NoM0Re
2025-03-01 17:14:36 +01:00
parent 46dac486c7
commit 2aea3b7a0d
4 changed files with 133 additions and 57 deletions
+22 -2
View File
@@ -138,13 +138,33 @@ local function createOptions(id, data)
name = L["Bar Color Settings"],
order = 39
},
enableGradient = {
type = "toggle",
width = WeakAuras.normalWidth,
name = L["Enable Gradient"],
order = 39.1
},
gradientOrientation = {
type = "select",
width = WeakAuras.normalWidth,
values = OptionsPrivate.Private.gradient_orientations,
name = L["Gradient Orientation"],
order = 39.2
},
barColor = {
type = "color",
width = WeakAuras.normalWidth,
name = L["Bar Color"],
name = L["Bar Color/Gradient Start"],
hasAlpha = true,
order = 39.3
},
barColor2 = {
type = "color",
width = WeakAuras.normalWidth,
name = L["Gradient End"],
hasAlpha = true,
order = 39.4
},
backgroundColor = {
type = "color",
width = WeakAuras.normalWidth,
@@ -870,4 +890,4 @@ end
OptionsPrivate.registerRegions = OptionsPrivate.registerRegions or {}
table.insert(OptionsPrivate.registerRegions, function()
OptionsPrivate.Private.RegisterRegionOptions("aurabar", createOptions, createIcon, L["Progress Bar"], createThumbnail, modifyThumbnail, L["Shows a progress bar with name, timer, and icon"], templates, GetAnchors);
end)
end)