From 5ba33f846129f3e6c0505b19f94634b24505e828 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sun, 26 Apr 2026 15:16:36 +0100 Subject: 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. --- src/render/decorations/CHyprDropShadowDecoration.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/render/decorations/CHyprDropShadowDecoration.cpp') 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("decoration:shadow:enabled"); + static auto PSHADOWS = CConfigValue("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("decoration:shadow:enabled"); + static auto PSHADOWS = CConfigValue("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("decoration:shadow:range"); - static auto PSHADOWSCALE = CConfigValue("decoration:shadow:scale"); - static auto PSHADOWOFFSET = CConfigValue("decoration:shadow:offset"); + static auto PSHADOWSIZE = CConfigValue("decoration:shadow:range"); + static auto PSHADOWSCALE = CConfigValue("decoration:shadow:scale"); + static auto PSHADOWOFFSET = CConfigValue("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("decoration:shadow:sharp"); + static auto PSHADOWSHARP = CConfigValue("decoration:shadow:sharp"); if (box.w < 1 || box.h < 1) return; -- cgit v1.2.3