diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-05-08 15:31:02 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-08 15:31:02 +0100 |
| commit | b94f1498542be0e83fe8060a50bce5ff2d5a1c39 (patch) | |
| tree | 8bddcfc9f8504817d5778136ec8c7c05d881c852 /src/config/lua/bindings/LuaBindingsNotification.cpp | |
| parent | a6a0cc308c827557d04cb3e4c3b5d258de0411e6 (diff) | |
config: allow hashes for parsing colors (#14337)
Diffstat (limited to 'src/config/lua/bindings/LuaBindingsNotification.cpp')
| -rw-r--r-- | src/config/lua/bindings/LuaBindingsNotification.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config/lua/bindings/LuaBindingsNotification.cpp b/src/config/lua/bindings/LuaBindingsNotification.cpp index b7a54546..3ba14ce7 100644 --- a/src/config/lua/bindings/LuaBindingsNotification.cpp +++ b/src/config/lua/bindings/LuaBindingsNotification.cpp @@ -1,6 +1,7 @@ #include "LuaBindingsInternal.hpp" #include "../objects/LuaNotification.hpp" +#include "../../shared/parserUtils/ParserUtils.hpp" #include "../../../helpers/MiscFunctions.hpp" #include "../../../notification/NotificationOverlay.hpp" @@ -52,7 +53,7 @@ static std::optional<CHyprColor> parseColorArg(lua_State* L, int idx) { 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; |
