Theme resize optimization

Windows applied with the UI theme have modern-looking 2D borders, however, the default border (1-pixel wide) makes it very difficult to grab and resize the window.

Now the border is re-designed to increase the size of grab area without changing the size and look of borders.

  • For MDI sheets

    When border = 1 (default value), border <= 0, or border > 8 (pixels), the border line will always be 1-pixel wide, and the grab area will be increased from 1-pixel wide to 4-pixel wide.

    When border >= 2 and <= 8, the border line will always be 1-pixel wide, while the grab area will use the specified number as the width (for example, when border = 3, then the border line will be 1-pixel wide and the grab area will be 3-pixel wide).

  • For other windows

    When border = 1 (default value), border <= 0, or border > 8 (pixels), the border line will always be 1-pixel wide, and the grab area will be increased from 1-pixel wide to 6-pixel wide.

    When border >= 2 and <= 8, the border line will always be 1-pixel wide, while the grab area will use the specified number as the width (for example, when border = 3, then the border line will be 1-pixel wide and the grab area will be 3-pixel wide).