mirror of
https://github.com/elementary/gala.git
synced 2024-12-26 02:33:27 +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.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 ();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user