Plugins/Development/Getting Started: rename CColor to CHyprColor (#911)

This commit is contained in:
Amaan Qureshi 2024-12-22 02:53:17 -05:00 committed by GitHub
parent b82f549a33
commit 8fc51f9db6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -85,7 +85,7 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
// mismatched header versions.
if (HASH != GIT_COMMIT_HASH) {
HyprlandAPI::addNotification(PHANDLE, "[MyPlugin] Mismatched headers! Can't proceed.",
CColor{1.0, 0.2, 0.2, 1.0}, 5000);
CHyprColor{1.0, 0.2, 0.2, 1.0}, 5000);
throw std::runtime_error("[MyPlugin] Version mismatch");
}