How to modify Keypad.qml

I would like to have background of phone dialer button rounded instead of rectangle.
I modified it in the part of attributes but with no results.
Any hint?
The file is in /usr/lib64/qt5/qml/Sailfish/Silica

You have one element called Rectangle with id: pressedButtonBackground in that file.

If you add the property radius: width/2 (instead of radius: 4) to that rectangle, then you should get a round background on button press.

4 Likes

Thanks! It worked perfectly

Aah but it’s not a perfect circle! :slight_smile:

Maybe Math.min(width, height) /2 fixes that.