From b94f1498542be0e83fe8060a50bce5ff2d5a1c39 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Fri, 8 May 2026 15:31:02 +0100 Subject: config: allow hashes for parsing colors (#14337) --- src/config/lua/objects/LuaNotification.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/config/lua/objects/LuaNotification.cpp') diff --git a/src/config/lua/objects/LuaNotification.cpp b/src/config/lua/objects/LuaNotification.cpp index f116e2eb..99382bf6 100644 --- a/src/config/lua/objects/LuaNotification.cpp +++ b/src/config/lua/objects/LuaNotification.cpp @@ -8,6 +8,9 @@ #include #include +#include "../../shared/parserUtils/ParserUtils.hpp" + +using namespace Config; using namespace Config::Lua; static constexpr const char* MT = "HL.Notification"; @@ -23,7 +26,7 @@ namespace { return CHyprColor(sc(lua_tonumber(L, idx))); if (lua_isstring(L, idx)) { - auto parsed = configStringToInt(lua_tostring(L, idx)); + auto parsed = ParserUtils::parseColor(lua_tostring(L, idx)); if (!parsed) return std::nullopt; -- cgit v1.2.3