mirror of
https://github.com/hyprwm/hyprpicker.git
synced 2026-01-06 00:30:11 +01:00
enhance: adds bg to the hexcode text
This commit is contained in:
parent
20c592ad10
commit
ac1b4f2418
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue