summaryrefslogtreecommitdiff
path: root/src/render/decorations/CHyprDropShadowDecoration.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-04-26 15:16:36 +0100
committerGitHub <noreply@github.com>2026-04-26 15:16:36 +0100
commit5ba33f846129f3e6c0505b19f94634b24505e828 (patch)
treeaaacabe678006040c342935481a86607c66607fd /src/render/decorations/CHyprDropShadowDecoration.cpp
parent329b2b356dd92ac07f4e2aa69cbce82ee9ba9d19 (diff)
config/lua: init lua config manager, use lua if available (#13817)
Adds a new lua config manager, which will automatically be used if there is a lua config present.
Diffstat (limited to 'src/render/decorations/CHyprDropShadowDecoration.cpp')
-rw-r--r--src/render/decorations/CHyprDropShadowDecoration.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/render/decorations/CHyprDropShadowDecoration.cpp b/src/render/decorations/CHyprDropShadowDecoration.cpp
index 3085facb..8c681301 100644
--- a/src/render/decorations/CHyprDropShadowDecoration.cpp
+++ b/src/render/decorations/CHyprDropShadowDecoration.cpp
@@ -38,7 +38,7 @@ std::string CHyprDropShadowDecoration::getDisplayName() {
}
void CHyprDropShadowDecoration::damageEntire() {
- static auto PSHADOWS = CConfigValue<Hyprlang::INT>("decoration:shadow:enabled");
+ static auto PSHADOWS = CConfigValue<Config::INTEGER>("decoration:shadow:enabled");
if (*PSHADOWS != 1)
return; // disabled
@@ -88,7 +88,7 @@ void CHyprDropShadowDecoration::draw(PHLMONITOR pMonitor, float const& a) {
}
bool CHyprDropShadowDecoration::canRender(PHLMONITOR pMonitor) {
- static auto PSHADOWS = CConfigValue<Hyprlang::INT>("decoration:shadow:enabled");
+ static auto PSHADOWS = CConfigValue<Config::INTEGER>("decoration:shadow:enabled");
if (*PSHADOWS != 1)
return false; // disabled
@@ -115,9 +115,9 @@ SShadowRenderData CHyprDropShadowDecoration::getRenderData(PHLMONITOR pMonitor,
const auto PWINDOW = m_window.lock();
- static auto PSHADOWSIZE = CConfigValue<Hyprlang::INT>("decoration:shadow:range");
- static auto PSHADOWSCALE = CConfigValue<Hyprlang::FLOAT>("decoration:shadow:scale");
- static auto PSHADOWOFFSET = CConfigValue<Hyprlang::VEC2>("decoration:shadow:offset");
+ static auto PSHADOWSIZE = CConfigValue<Config::INTEGER>("decoration:shadow:range");
+ static auto PSHADOWSCALE = CConfigValue<Config::FLOAT>("decoration:shadow:scale");
+ static auto PSHADOWOFFSET = CConfigValue<Config::VEC2>("decoration:shadow:offset");
const auto BORDERSIZE = PWINDOW->getRealBorderSize();
const auto ROUNDINGBASE = PWINDOW->rounding();
@@ -200,7 +200,7 @@ eDecorationLayer CHyprDropShadowDecoration::getDecorationLayer() {
}
void CHyprDropShadowDecoration::drawShadowInternal(const CBox& box, int round, float roundingPower, int range, CHyprColor color, float a) {
- static auto PSHADOWSHARP = CConfigValue<Hyprlang::INT>("decoration:shadow:sharp");
+ static auto PSHADOWSHARP = CConfigValue<Config::INTEGER>("decoration:shadow:sharp");
if (box.w < 1 || box.h < 1)
return;