Merge branch 'dsp' of https://github.com/kennypm/Waybar into dsp

This commit is contained in:
kennypm
2022-02-12 01:49:14 -05:00
4 changed files with 25 additions and 9 deletions

View File

@ -1,6 +1,7 @@
#pragma once
#include <fmt/format.h>
#include <glibmm/ustring.h>
class pow_format {
public:
@ -84,5 +85,15 @@ namespace fmt {
);
}
};
// Glib ustirng support
template <>
struct formatter<Glib::ustring> : formatter<std::string> {
template <typename FormatContext>
auto format(const Glib::ustring& value, FormatContext& ctx) {
return formatter<std::string>::format(value, ctx);
}
};
}