fix: type consistency

This commit is contained in:
Keepo
2026-03-28 23:44:41 -04:00
parent 72d6a51fb7
commit a9aab4e356

View File

@@ -2,9 +2,16 @@
#include <string> #include <string>
/**
* Result of transforming 8-bit hex codes to rgba().
*/
struct TransformResult {
std::string css;
bool was_transformed;
};
/** /**
* Reads a CSS file, searches for 8-bit hex codes (#RRGGBBAA), * Reads a CSS file, searches for 8-bit hex codes (#RRGGBBAA),
* and transforms them into GTK-compatible rgba() syntax. * and transforms them into GTK-compatible rgba() syntax.
*/ */
TransformResult transform_8bit_to_hex(const std::string& file_path);
std::pair<std::string, bool> transform_8bit_to_hex(const std::string& file_path);