mirror of
https://github.com/elementary/gala.git
synced 2024-11-28 04:05:22 +03:00
draw highlight on half pixels to decrease impression of 1px rounded corners
This commit is contained in:
parent
6697265dd9
commit
7e07b4dc7e
@ -48,7 +48,7 @@ namespace Gala
|
|||||||
Cogl.Path.stroke ();
|
Cogl.Path.stroke ();
|
||||||
|
|
||||||
Cogl.set_source_color4ub (255, 255, 255, 25);
|
Cogl.set_source_color4ub (255, 255, 255, 25);
|
||||||
Cogl.Path.rectangle (1, 1, width - 2, height - 2);
|
Cogl.Path.rectangle (0.5f, 0.5f, width - 1, height - 1);
|
||||||
Cogl.Path.stroke ();
|
Cogl.Path.stroke ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user