Skip to reading
The GUI Designer

Give each corner its own radius

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView illustrations

Border Radius supplies the overall curve. The four corner fields can inherit that value or override it independently. All amounts are in design pixels.

Source table from Give each corner its own radius, page 22
Corner valueMeaning
-1Use the overall Border Radius for this corner.
0Make this corner square.
A positive numberUse 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.

Page 22 of 57Permalink
Go to page