GNOME Bugzilla – Bug 352781
rounded corners
Last modified: 2007-03-27 22:32:20 UTC
The keyboard drawing code ignores the rounded corners that XKB geometry allows to specify. I have a patch which implements this only for axis-aligned rectangles (not for rotated rectangles or general polygons), but that is already enough to drastically improve the appearance of many layouts. The patch probably depends on the patches in bug 352776, bug 352778
Created attachment 71561 [details] [review] patch
Created attachment 71727 [details] [review] second attempt, handle general polygons with rounded corners
Matthias, this is really impressive, I must admit. I will play with it and see how it works. Anyway, it is too late for 2.16
Sergey, any news on this?
Ugh, dind't mean to close it
The patch needs to be ported to libgnomekbd.
Unfortunately currently I cannot test it - since Ubuntu broken the preview functionality (their xlib has XGetKeyboard broken)
Is there a chance to get the patch ported to libgnomekbd?
Created attachment 84810 [details] [review] patch against libgnomekbd Sorry, I had forgotten to attach the new patch here.
Matthias, thanks for your patch. It had 2 minor problems: 1. Unused static function "draw" - I removed it 2. You did not scale the radius. I applied gdouble (new) version of xkb_to_pixmap function - so the image looks more realistic now. Anyway, thanks a lot for your patch. The image is really more sexy now.