core: move colorspace handling to oklab (#8635)

* Meson: add hyprgraphics

* Nix: add hyprgraphics

* CI/setup_base: get hyprgraphics-git

---------

Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
This commit is contained in:
Vaxry 2024-12-03 18:58:24 +00:00 committed by GitHub
parent 92186898c0
commit 320144ae72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
40 changed files with 492 additions and 173 deletions

View file

@ -33,7 +33,7 @@ CHyprError::~CHyprError() {
m_fFadeOpacity.unregister();
}
void CHyprError::queueCreate(std::string message, const CColor& color) {
void CHyprError::queueCreate(std::string message, const CHyprColor& color) {
m_szQueued = message;
m_cQueued = color;
}
@ -98,7 +98,7 @@ void CHyprError::createQueued() {
cairo_stroke(CAIRO);
// draw the text with a common font
const CColor textColor = CColor(0.9, 0.9, 0.9, 1.0);
const CHyprColor textColor = CHyprColor(0.9, 0.9, 0.9, 1.0);
cairo_set_source_rgba(CAIRO, textColor.r, textColor.g, textColor.b, textColor.a);
static auto fontFamily = CConfigValue<std::string>("misc:font_family");
@ -160,7 +160,7 @@ void CHyprError::createQueued() {
m_bIsCreated = true;
m_szQueued = "";
m_cQueued = CColor();
m_cQueued = CHyprColor();
g_pHyprRenderer->damageMonitor(PMONITOR);