diff options
| author | vaxerski <vaxry@vaxry.net> | 2023-01-20 19:19:07 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2023-01-20 19:19:07 +0100 |
| commit | d345804cd51aa5757f93dfcf7ff32f209be3f27b (patch) | |
| tree | c3b26976278e326fbcf2caf852cec70eca00fb48 /src/hyprerror/HyprError.cpp | |
| parent | fb2679d5ef1e35358808b336711ad49cb7359717 (diff) | |
fix font color in hyprerror
Diffstat (limited to 'src/hyprerror/HyprError.cpp')
| -rw-r--r-- | src/hyprerror/HyprError.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hyprerror/HyprError.cpp b/src/hyprerror/HyprError.cpp index c5b5dbbf..697690ef 100644 --- a/src/hyprerror/HyprError.cpp +++ b/src/hyprerror/HyprError.cpp @@ -39,7 +39,7 @@ void CHyprError::createQueued() { cairo_fill(CAIRO); // draw the text with a common font - const CColor textColor = m_cQueued.r * m_cQueued.g * m_cQueued.b < 0.5f ? CColor(1.0, 1.0, 1.0, 1.0) : CColor(0, 0, 0, 1.0); + const CColor textColor = m_cQueued.r + m_cQueued.g + m_cQueued.b < 0.2f ? CColor(1.0, 1.0, 1.0, 1.0) : CColor(0, 0, 0, 1.0); cairo_select_font_face(CAIRO, "Noto Sans", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL); cairo_set_font_size(CAIRO, FONTSIZE); |
