mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-03 11:10:29 +01:00
tools: debug-gui: change the tablet color
Grey isn't pretty enough Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
f954cb29e4
commit
e0008d3dc2
1 changed files with 2 additions and 2 deletions
|
|
@ -436,7 +436,7 @@ draw_tablet(struct window *w, cairo_t *cr)
|
|||
|
||||
/* tablet tool, square for prox-in location */
|
||||
cairo_save(cr);
|
||||
cairo_set_source_rgb(cr, .8, .8, .8);
|
||||
cairo_set_source_rgb(cr, .2, .6, .6);
|
||||
if (w->tool.x_in && w->tool.y_in) {
|
||||
cairo_rectangle(cr, w->tool.x_in - 15, w->tool.y_in - 15, 30, 30);
|
||||
cairo_stroke(cr);
|
||||
|
|
@ -453,7 +453,7 @@ draw_tablet(struct window *w, cairo_t *cr)
|
|||
}
|
||||
|
||||
if (w->tool.pressure)
|
||||
cairo_set_source_rgb(cr, .8, .8, .2);
|
||||
cairo_set_source_rgb(cr, .2, .8, .8);
|
||||
|
||||
cairo_translate(cr, w->tool.x, w->tool.y);
|
||||
cairo_scale(cr, 1.0 + w->tool.tilt_x/30.0, 1.0 + w->tool.tilt_y/30.0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue