#22736: request - adjust windows' corner handles

I've tweaked the contrast of the corner widgets to be a little bit more contrasty and seem a bit more tactile by making the lines fade out from brighter bands to dimmer bands. 

Hopefully this will make them more easily discernable without being too loud.
This commit is contained in:
Joshua Leung 2010-07-05 03:02:57 +00:00
parent 0a62388bfb
commit 02b0188c16

@ -177,14 +177,18 @@ static void area_draw_azone(short x1, short y1, short x2, short y2)
float dx= 0.3f*(xmax-xmin);
float dy= 0.3f*(ymax-ymin);
glColor4ub(255, 255, 255, 80);
glColor4ub(255, 255, 255, 180);
fdrawline(xmin, ymax, xmax, ymin);
glColor4ub(255, 255, 255, 130);
fdrawline(xmin, ymax-dy, xmax-dx, ymin);
glColor4ub(255, 255, 255, 80);
fdrawline(xmin, ymax-2*dy, xmax-2*dx, ymin);
glColor4ub(0, 0, 0, 150);
glColor4ub(0, 0, 0, 210);
fdrawline(xmin, ymax+1, xmax+1, ymin);
glColor4ub(0, 0, 0, 180);
fdrawline(xmin, ymax-dy+1, xmax-dx+1, ymin);
glColor4ub(0, 0, 0, 150);
fdrawline(xmin, ymax-2*dy+1, xmax-2*dx+1, ymin);
}