added single background for all frames

This commit is contained in:
Sumsebrum
2021-07-26 17:30:46 +02:00
parent f92b3a4964
commit 751e84c61d
2 changed files with 19 additions and 7 deletions

View File

@ -53,7 +53,8 @@ Gladdy.defaults = {
barWidth = 180,
bottomMargin = 2,
statusbarBorderOffset = 6,
timerFormat = Gladdy.TIMER_FORMAT.tenths
timerFormat = Gladdy.TIMER_FORMAT.tenths,
backgroundColor = {r = 0, g = 0, b = 0, a = 0},
},
}
@ -225,12 +226,6 @@ function Gladdy:SetupOptions()
desc = L["Toggle if frame can be moved"],
order = 1,
},
growUp = {
type = "toggle",
name = L["Grow frame upwards"],
desc = L["If enabled the frame will grow upwards instead of downwards"],
order = 2,
},
growDirection = {
type = "select",
name = L["Grow Direction"],
@ -304,6 +299,15 @@ function Gladdy:SetupOptions()
max = 200,
step = 1,
},
backgroundColor = {
type = "color",
name = L["Background color"],
desc = L["Background Color of the frame"],
order = 8,
hasAlpha = true,
get = getColorOpt,
set = setColorOpt,
},
}
},
cooldownGeneral = {