From 2c4852e31f1cc974164fdd1bf383a67c26cafe44 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Fri, 27 Mar 2026 10:08:56 -0400 Subject: renderer/deco: add glow decoration (#13862) --- src/config/legacy/ConfigManager.cpp | 5 +++++ src/config/shared/animation/AnimationTree.cpp | 1 + src/config/supplementary/ConfigDescriptions.hpp | 30 +++++++++++++++++++++++++ 3 files changed, 36 insertions(+) (limited to 'src/config') diff --git a/src/config/legacy/ConfigManager.cpp b/src/config/legacy/ConfigManager.cpp index 31da257c..70a15754 100644 --- a/src/config/legacy/ConfigManager.cpp +++ b/src/config/legacy/ConfigManager.cpp @@ -626,6 +626,11 @@ CConfigManager::CConfigManager() { registerConfigVar("decoration:shadow:sharp", Hyprlang::INT{0}); registerConfigVar("decoration:shadow:color", Hyprlang::INT{0xee1a1a1a}); registerConfigVar("decoration:shadow:color_inactive", Hyprlang::INT{-1}); + registerConfigVar("decoration:glow:enabled", Hyprlang::INT{0}); + registerConfigVar("decoration:glow:range", Hyprlang::INT{10}); + registerConfigVar("decoration:glow:render_power", Hyprlang::INT{3}); + registerConfigVar("decoration:glow:color", Hyprlang::INT{0xee33ccff}); + registerConfigVar("decoration:glow:color_inactive", Hyprlang::INT{0x0033ccff}); registerConfigVar("decoration:dim_inactive", Hyprlang::INT{0}); registerConfigVar("decoration:dim_modal", Hyprlang::INT{1}); registerConfigVar("decoration:dim_strength", {0.5f}); diff --git a/src/config/shared/animation/AnimationTree.cpp b/src/config/shared/animation/AnimationTree.cpp index 39f7620a..bd763a70 100644 --- a/src/config/shared/animation/AnimationTree.cpp +++ b/src/config/shared/animation/AnimationTree.cpp @@ -39,6 +39,7 @@ void CAnimationTreeController::reset() { m_animationTree.createNode("fadeOut", "fade"); m_animationTree.createNode("fadeSwitch", "fade"); m_animationTree.createNode("fadeShadow", "fade"); + m_animationTree.createNode("fadeGlow", "fade"); m_animationTree.createNode("fadeDim", "fade"); m_animationTree.createNode("fadeLayers", "fade"); m_animationTree.createNode("fadeLayersIn", "fadeLayers"); diff --git a/src/config/supplementary/ConfigDescriptions.hpp b/src/config/supplementary/ConfigDescriptions.hpp index 90ac0031..6a287d43 100644 --- a/src/config/supplementary/ConfigDescriptions.hpp +++ b/src/config/supplementary/ConfigDescriptions.hpp @@ -309,6 +309,36 @@ namespace Config::Supplementary { .type = CONFIG_OPTION_FLOAT, .data = SConfigOptionDescription::SFloatData{1, 0, 1}, }, + SConfigOptionDescription{ + .value = "decoration:glow:enabled", + .description = "enable inner glow on windows", + .type = CONFIG_OPTION_BOOL, + .data = SConfigOptionDescription::SBoolData{false}, + }, + SConfigOptionDescription{ + .value = "decoration:glow:range", + .description = "glow range (size) in layout px", + .type = CONFIG_OPTION_INT, + .data = SConfigOptionDescription::SRangeData{10, 0, 100}, + }, + SConfigOptionDescription{ + .value = "decoration:glow:render_power", + .description = "in what power to render the falloff (more power, the faster the falloff) [1 - 4]", + .type = CONFIG_OPTION_INT, + .data = SConfigOptionDescription::SRangeData{3, 1, 4}, + }, + SConfigOptionDescription{ + .value = "decoration:glow:color", + .description = "glow's color. Alpha dictates glow's opacity.", + .type = CONFIG_OPTION_COLOR, + .data = SConfigOptionDescription::SColorData{0xee33ccff}, + }, + SConfigOptionDescription{ + .value = "decoration:glow:color_inactive", + .description = "inactive glow color. (if not set, will fall back to decoration:glow:color)", + .type = CONFIG_OPTION_COLOR, + .data = SConfigOptionDescription::SColorData{0x0033ccff}, + }, SConfigOptionDescription{ .value = "decoration:dim_modal", .description = "enables dimming of parents of modal windows", -- cgit v1.2.3