2026-03-28 21:10:15 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
2026-03-28 23:44:41 -04:00
|
|
|
/**
|
|
|
|
|
* Result of transforming 8-bit hex codes to rgba().
|
|
|
|
|
*/
|
|
|
|
|
struct TransformResult {
|
|
|
|
|
std::string css;
|
|
|
|
|
bool was_transformed;
|
|
|
|
|
};
|
|
|
|
|
|
2026-03-28 21:10:15 -04:00
|
|
|
/**
|
|
|
|
|
* Reads a CSS file, searches for 8-bit hex codes (#RRGGBBAA),
|
|
|
|
|
* and transforms them into GTK-compatible rgba() syntax.
|
|
|
|
|
*/
|
2026-03-28 23:44:41 -04:00
|
|
|
TransformResult transform_8bit_to_hex(const std::string& file_path);
|