enhance: adds bg to the hexcode text

This commit is contained in:
bun137 2024-11-17 21:45:32 +05:30
parent 20c592ad10
commit ac1b4f2418

View file

@ -429,6 +429,10 @@ void CHyprpicker::renderSurface(CLayerSurface* pSurface, bool forceInactive) {
char hexBuffer[8];
sprintf(hexBuffer, "#%02x%02x%02x", currentColor.r, currentColor.g, currentColor.b);
cairo_set_source_rgba(PCAIRO, 0.0, 0.0, 0.0, 0.5);
cairo_rectangle(PCAIRO, CLICKPOS.x, CLICKPOS.y + 20, 80, 30);
cairo_fill(PCAIRO);
cairo_set_source_rgba(PCAIRO, 1.0, 1.0, 1.0, 1.0);
cairo_select_font_face(PCAIRO, "monospace", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size(PCAIRO, 18);