mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 00:45:58 +01:00
hyprerror: minor stylistic changes
This commit is contained in:
parent
592b4a709c
commit
1fa4b7d79b
1 changed files with 3 additions and 3 deletions
|
@ -88,14 +88,14 @@ void CHyprError::createQueued() {
|
||||||
cairo_arc(CAIRO, X + RADIUS, Y + RADIUS, RADIUS, 180 * DEGREES, 270 * DEGREES);
|
cairo_arc(CAIRO, X + RADIUS, Y + RADIUS, RADIUS, 180 * DEGREES, 270 * DEGREES);
|
||||||
cairo_close_path(CAIRO);
|
cairo_close_path(CAIRO);
|
||||||
|
|
||||||
cairo_set_source_rgba(CAIRO, m_cQueued.r, m_cQueued.g, m_cQueued.b, m_cQueued.a);
|
cairo_set_source_rgba(CAIRO, 0.06, 0.06, 0.06, 1.0);
|
||||||
cairo_fill_preserve(CAIRO);
|
cairo_fill_preserve(CAIRO);
|
||||||
cairo_set_source_rgba(CAIRO, 0, 0, 0, 1);
|
cairo_set_source_rgba(CAIRO, m_cQueued.r, m_cQueued.g, m_cQueued.b, m_cQueued.a);
|
||||||
cairo_set_line_width(CAIRO, 2);
|
cairo_set_line_width(CAIRO, 2);
|
||||||
cairo_stroke(CAIRO);
|
cairo_stroke(CAIRO);
|
||||||
|
|
||||||
// draw the text with a common font
|
// draw the text with a common font
|
||||||
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);
|
const CColor textColor = CColor(0.9, 0.9, 0.9, 1.0);
|
||||||
cairo_set_source_rgba(CAIRO, textColor.r, textColor.g, textColor.b, textColor.a);
|
cairo_set_source_rgba(CAIRO, textColor.r, textColor.g, textColor.b, textColor.a);
|
||||||
|
|
||||||
static auto fontFamily = CConfigValue<std::string>("misc:font_family");
|
static auto fontFamily = CConfigValue<std::string>("misc:font_family");
|
||||||
|
|
Loading…
Reference in a new issue