nice spotify notification

This commit is contained in:
2026-02-01 01:53:47 +01:00
parent caca94bc6a
commit dc325834c7
7 changed files with 256 additions and 167 deletions

View File

@@ -37,4 +37,11 @@ public:
tokens.push_back(input.substr(start));
return tokens;
}
static std::string trimToSize(const std::string &input, size_t maxSize) {
if (input.length() <= maxSize) {
return input;
}
return input.substr(0, maxSize) + "...";
}
};