diff options
Diffstat (limited to 'src/render/decorations/CHyprDropShadowDecoration.cpp')
| -rw-r--r-- | src/render/decorations/CHyprDropShadowDecoration.cpp | 12 |
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; |
