summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-03-27 10:08:56 -0400
committerGitHub <noreply@github.com>2026-03-27 14:08:56 +0000
commit2c4852e31f1cc974164fdd1bf383a67c26cafe44 (patch)
treec248ef256b6ff1d8de9fe031ff2bf33b67e85dde /src/config
parent2fde538e0fa5663ac99f631fcfee6742e09368f6 (diff)
renderer/deco: add glow decoration (#13862)
Diffstat (limited to 'src/config')
-rw-r--r--src/config/legacy/ConfigManager.cpp5
-rw-r--r--src/config/shared/animation/AnimationTree.cpp1
-rw-r--r--src/config/supplementary/ConfigDescriptions.hpp30
3 files changed, 36 insertions, 0 deletions
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
@@ -310,6 +310,36 @@ namespace Config::Supplementary {
.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",
.type = CONFIG_OPTION_BOOL,