summaryrefslogtreecommitdiff
path: root/src/config/lua/objects/LuaNotification.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-05-08 15:31:02 +0100
committerGitHub <noreply@github.com>2026-05-08 15:31:02 +0100
commitb94f1498542be0e83fe8060a50bce5ff2d5a1c39 (patch)
tree8bddcfc9f8504817d5778136ec8c7c05d881c852 /src/config/lua/objects/LuaNotification.cpp
parenta6a0cc308c827557d04cb3e4c3b5d258de0411e6 (diff)
config: allow hashes for parsing colors (#14337)
Diffstat (limited to 'src/config/lua/objects/LuaNotification.cpp')
-rw-r--r--src/config/lua/objects/LuaNotification.cpp5
1 files changed, 4 insertions, 1 deletions
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 <optional>
#include <string_view>
+#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<uint64_t>(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;