modules/custom: Allow json fields as format specifiers

This commit is contained in:
2023-08-30 06:36:50 +02:00
parent b665843085
commit 165814a57f
2 changed files with 41 additions and 24 deletions

View File

@ -1,6 +1,7 @@
#pragma once
#include <fmt/format.h>
#include <fmt/args.h>
#include <csignal>
#include <string>
@ -34,6 +35,7 @@ class Custom : public ALabel {
std::string alt_;
std::string tooltip_;
std::vector<std::string> class_;
fmt::dynamic_format_arg_store<fmt::format_context> fields_;
int percentage_;
FILE* fp_;
int pid_;