aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/hyprerror
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-12-03 18:58:24 +0000
committerGitHub <[email protected]>2024-12-03 18:58:24 +0000
commit320144ae7288fe23686935ebb235d9fe0c900862 (patch)
tree351b04e228926f98c12c340284c25450bb1fed4f /src/hyprerror
parent92186898c0ca1b3f72922b72c4af1723f0d9b888 (diff)
downloadHyprland-320144ae7288fe23686935ebb235d9fe0c900862.tar.gz
Hyprland-320144ae7288fe23686935ebb235d9fe0c900862.zip
core: move colorspace handling to oklab (#8635)
* Meson: add hyprgraphics * Nix: add hyprgraphics * CI/setup_base: get hyprgraphics-git --------- Co-authored-by: Mihai Fufezan <[email protected]>
Diffstat (limited to 'src/hyprerror')
-rw-r--r--src/hyprerror/HyprError.cpp6
-rw-r--r--src/hyprerror/HyprError.hpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/hyprerror/HyprError.cpp b/src/hyprerror/HyprError.cpp
index 4761346e..74a3030c 100644
--- a/src/hyprerror/HyprError.cpp
+++ b/src/hyprerror/HyprError.cpp
@@ -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);
diff --git a/src/hyprerror/HyprError.hpp b/src/hyprerror/HyprError.hpp
index a553614c..042dccd0 100644
--- a/src/hyprerror/HyprError.hpp
+++ b/src/hyprerror/HyprError.hpp
@@ -11,7 +11,7 @@ class CHyprError {
CHyprError();
~CHyprError();
- void queueCreate(std::string message, const CColor& color);
+ void queueCreate(std::string message, const CHyprColor& color);
void draw();
void destroy();
@@ -21,7 +21,7 @@ class CHyprError {
private:
void createQueued();
std::string m_szQueued = "";
- CColor m_cQueued;
+ CHyprColor m_cQueued;
bool m_bQueuedDestroy = false;
bool m_bIsCreated = false;
SP<CTexture> m_pTexture;