Give each corner its own radius
Border Radius supplies the overall curve. The four corner fields can inherit that value or override it independently. All amounts are in design pixels.
| Corner value | Meaning |
|---|---|
| -1 | Use the overall Border Radius for this corner. |
| 0 | Make this corner square. |
| A positive number | Use that curve size for this corner. |
1. Add or select a Panel and open Visual Style.
2. Set Border Radius to 12.
3. Set Top Left Radius to 50 and Bottom Right Radius to 35.
4. Set Top Right Radius and Bottom Left Radius to 0.
5. Check the panel at normal size, then save the project.
Figure 17. The example panel has two rounded corners and two square corners. An override affects only its named corner.
Use this for a speech-panel edge, a notebook card or a deliberately uneven menu shape. If one corner does not respond to the overall value, check whether it still has its own positive override.
The outer surface and background shape can be rounded. Video/model content and some shader output are not automatically masked into the same rounded shape. Grid widgets also have separate internal surfaces; those are only introduced in Chapter 20.
