18 lines
364 B
C++
18 lines
364 B
C++
#pragma once
|
|
|
|
#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),
|
|
* and transforms them into GTK-compatible rgba() syntax.
|
|
*/
|
|
TransformResult transform_8bit_to_hex(const std::string& file_path);
|