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/desktop/rule/windowRule/WindowRule.cpp | |
| parent | a6a0cc308c827557d04cb3e4c3b5d258de0411e6 (diff) | |
config: allow hashes for parsing colors (#14337)
Diffstat (limited to 'src/desktop/rule/windowRule/WindowRule.cpp')
| -rw-r--r-- | src/desktop/rule/windowRule/WindowRule.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/desktop/rule/windowRule/WindowRule.cpp b/src/desktop/rule/windowRule/WindowRule.cpp index 5bbf2abe..0262697a 100644 --- a/src/desktop/rule/windowRule/WindowRule.cpp +++ b/src/desktop/rule/windowRule/WindowRule.cpp @@ -6,6 +6,7 @@ #include "../../../managers/TokenManager.hpp" #include "../../../desktop/state/FocusState.hpp" #include "../../../protocols/types/ContentType.hpp" +#include "../../../config/shared/parserUtils/ParserUtils.hpp" #include <hyprutils/string/Numeric.hpp> #include <hyprutils/string/String.hpp> @@ -45,7 +46,7 @@ static std::expected<float, std::string> parseFloat(std::string_view effectName, } static std::expected<CHyprColor, std::string> parseBorderColorToken(const std::string& raw, const std::string& token) { - auto parsed = configStringToInt(token); + auto parsed = Config::ParserUtils::parseColor(token); if (!parsed) return std::unexpected(std::format(R"(border_color rule "{}" has invalid color "{}": {})", raw, token, parsed.error())); |
